over 5 years ago
JSP Expression Tag : In JSP the Expression tag is used to print in the output stream.So whenever you have some data to print into the screen or can say browser you can use the JSP Expression Tag.
The java code '<% out.println(msg); %>' can be replaced with the Expression tag <%= msg%>.
Syntax of the Expression Tag :
<%= Java Expression %>
Example of the Expression Tag : Here is the simple code to show how you can use the JSP Expression tag.
<title>Simple JSP Page</title>
int x = 15;
int y = 20;
Sum of x and y is : <%= (x+y) %>
Output : Sum of x and y is : 35
As you can see in the JSP expression tag we don't need to use the semicolon (;) at the end of the expression.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using