How does the Jsp Expressions works ? What happens at the
back?
Answer Posted / nowsheen tariq
jsp expressions is a normal java expression , when we write
the jsp expression in our jsp page like
<%=some expression%> then in the servlet ie generated by
jsp compiler the jsp expression will be placed without" "
in out.printmethod.
for example :
<%
int i=10,j=20,k=30;%>
k----> <%=k%>
in the servlet equivalent to above jsp page
out.print("k---->");
out.print(k);
like that at the back the jsp expression will be placed in
the out.print()without " " so that the value of the
expresssion will be evaluated and printed.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can we define a class in a jsp page?
What are the jsp standard actions?
What are the implicit, internal objects and methods on the jsp page?
What are jsp action tags?
HOW CAN WE COMPARE TWO PDF FILES USING JSP ?
Can you disable jsp scripting?
Differentiate between jsp scriptlet tag and declaration tag.
What is session setattribute?
How can I override the jspinit() and jspdestroy() methods within a jsp page?
What are the jsp tag?
What are different implicit objects of jsp?
How is jsp better than servlet technology?
How does a jsp engine work?
What is the difference between java servlet and jsp?
What is < jsp:forward> tag for?