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 are the features of jsp?
What do you mean by context initialization parameters?
What do you mean by jsp?
What are the advantages and disadvantages of thread-safe jsp page?
What is pagecontext?
What language is jsp?
Can we override jspinit method?
Why are implicit objects not available in a regular jsp page?
Can a jsp page instantiate a serialized bean?
What is client scripting?
How can my application get to know when a httpsession is removed?
What's the difference between javabeans and taglib directives?
Explain some jsp life-cycle methods that can be overridden.
What is an api with example?
Explain the