If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?
Answer Posted / prs01
It will give compilation error. In order to define a method
in JSP, it should be defined in the JSP declarations <%!..%
>, and it can be called in the JSP expression.
On translation, the method will be added outside all
methods in the servlet class.
| Is This Answer Correct ? | 35 Yes | 1 No |
Post New Answer View All Answers
What is mdb and what is the special feature of that?
What value does readline() return when it has reached the end of a file?
How is a java object message delivered to a non-java client?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
How would you create a button with rounded edges?
Is “abc” a primitive value?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is ripple effect?
Define aop(assepct oriented programing)?
What restrictions are placed on the location of a package statement within a source code file?
What must a class do to implement an interface?
Write a singleton program?
What are the design considerations while making a choice between using interface and abstract class?
Explain what is orm?
What is the purpose of the wait() method?