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
How do you delete a cookie within a jsp?
What are the literals used in jsp?
What is called jsp directive?
Can a jsp page instantiate a serialized bean?
Can we write java code in jsp?
Give a sample jsp configuration in the deployment descriptor.
How many types of jsp tags are there?
What is dynamic web project?
Explain lifecycle methods.
What is client scripting?
What is jsp application?
Why is jsp used?
How many tags are there in jsp?
What are the components that make up a tag library in jsp?
What is difference between include directive and jsp:include action?