Can we use methods in JSP? If so where the methods are
stored in servlet class file?

Answer Posted / madhu

YES We can Write the our own methods or java methods inside
the "JSP Declarations"
Syntax:<%! .................%>

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a declaration?

510


Differentiate between and <%@include file=…>.

501


What is difference between jsp and jstl?

452


What is context url?

465


Define jsp declaration?

549






Which one is better jsp or servlet?

450


How we can include the result of another page in jsp?

487


What is jsp tag?

456


How to delete a cookie in a jsp?

490


How to pass information from jsp to included jsp?

495


List out some advantages of using jsp.

510


A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?

635


How we can use javascript with jsp pages?

475


Is there a way I can set the inactivity lease period on a per-session basis?

463


How can we use beans in jsp?

495