If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?
Submitted by: AdministratorIt 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Advanced Java Job Interview Questions And Answers
Top Advanced Java Questions
☺ | In spring bean class uses singleton or prototype? |
☺ | What is jsp life cycle? |
☺ | What is prototype? |
☺ | Explain servlet life cycle? |
☺ | What is AOP(assepct oriented programing)? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |