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
What is translation phase?
What is jsp net?
What is jsp servlet?
Why use of scripting elements in jsp is discouraged?
How to find out the name of the http method using jsp el?
in jsf page i use two dropdown list.i.e state & district.if state dropdown is selected then & then district is enable.what should be my code.
What are the two kinds of comments in jsp and what's the difference between them ?
What is session scope?
Why is it not recommended to use script elements in jsp?
Differentiate between include directive and include action.
How to disable session in jsp?
How does response sendredirect work?
List the various action tags used in jsp.
Explain the action.
What is jsp and how it works?