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 the differences between the jsp custom tags and java beans?

734


What are the two kinds of comments in jsp and what's the difference between them ?

774


What is jsp? Explain

717


What is jsp technology?

707


Give uses of object cloning?

740


What are custom tags in jsp?

720


How can a thread safe JSP page be implemented?

776


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]

1928


How is jsp used in the mvc model?

789


Give an example where you need jsp custom tag?

688


What is jsp custom tag and what are it’s components?

693


What is a hidden comment in jsp?

697


Why jsp and servlets are used?

695


What are the ways to insert java code into jsp page?

750


Explain the difference between servletcontext and pagecontext in jsp?

684