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 you disable the caching on the back button of a particular browser?
Which jsp method cannot be overridden?
Can we override jspinit method?
Explain the steps for creating custom tags in jsp?
Can a jsp page instantiate a serialized bean?
What are the events in jsp page?
Explain jsp and tell its uses?
What are the advantages of jstl?
What is difference between jsp and jstl?
difference betwwn 16 bit and 32 bit
Why don’t we need to configure jsp standard tags in web.xml?
What is a javaserver pages (jsp)?
How can I declare methods within my jsp page?
Why are jsp pages the preferred api for creating a web-based client program?
What is jsp tag?