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
Why is jstl used?
How to disable scripting?
What are scripting elements?
How jsp is compiled?
Why jsp is used in java?
How to send data from jsp to jsp?
How do I use comments within a jsp page?
How to print java variable in jsp?
What is jsp-config in deployment descriptor?
What is jstl (jsp standard tag library)?
What is the difference between "JTable" and "JTGrid"? can they be used interchangeably?
How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)
What are the different jsp element types?
write a program in javasacript to shake the window
What are custom tags in jsp?