Explain Jsp Expressions
By Ramakrishna on Oct 3, 2008 in Explain Jsp Expression
Jsp Expression:-
As part of Jsp’s we can provide the Jsp Expressions using the Syntax:
<%=
java expression
%>
For Ex:-
<% int i=10;
int j=20;
String s1=”xxx” ,s2=”yyy”;
%>
<%= i+j %>
<% new java.util.Date() %> <br>
<%= s1.equals(s2) %> <br>
<%= request.getHeader(“User_Agent “) %> <br>
<%= application.getInitParameter(“cpone”) %>
Jsp Expressions is nothing but showing the values of the variable as the output on the browser.
