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

How do I view jsp files in my browser?

511


What is the difference between jsp and php?

487


In the servlet 2.4 specification singlethreadmodel has been deprecated, why?

510


What is jsp technology?

529


Which one is better jsp or servlet?

477






Explain the jspdestroy() method?

598


Explain handling of runtime exceptions.

649


Can we override jspinit method?

489


What is include directive in jsp?

506


How to forward a request to another source?

528


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

560


How do I use comments within a jsp page?

550


What is the jspinit() method?

520


Is jsp better than servlet?

491


How to disable session in jsp?

530