how can we create object to a class in a jsp file?
Answer Posted / samuel.j
use the page import tag to import ur class and execute
methods of the class
< % @ page import = packageName.Classname %>
<%
ImportedClass object = new ImportedClass();
object.executeMethods();
%>
Please check for some documentation as to including XSLT in
JSP
| Is This Answer Correct ? | 60 Yes | 24 No |
Post New Answer View All Answers
What are Servlets?
Is it good idea to create servlet constructor?
What if we pass negative value in load-on-startup?
What is the GenericServlet class?
What is called a session?
Describe servlet?
Explain the difference between generic servlet and http servlet?
How can we invoke another servlet in a different application?
What is the use of welcome-file-list?
What is http servlet? Explain with the help of an example.
What is servlet name in web xml?
What is the difference between Servlets and Applets?
What do you mean by cgi in servlet?
What’s the difference between sendredirect and forward methods
What is Servlet API used for connecting database?