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
Define jsp declaration?
What is taglib uri in jsp?
What are the possible values for language directive?
How to create menu in jsp with example?
What is jsp param?
How can we forward the request from jsp page to the servlet?
When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]
How do we print “
creates a new line in html” in jsp?
How can information from one JSP be passed to another JSP?
Why do we need custom tags?
How does jsp engines instantiate tag handler classes instances?
What is session object in jsp?
What is the use of jsp and servlet?
How to access java variable in jsp?
What is client side technology?