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
Explain get and post.
What is servlet used for?
How to create war file?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
How do cookies work in servlets?
Why do you use session tracking in httpservlet?
When Servlet is unloaded?
What is the need of servlet filters?
What is servlet and how it works?
What is the purpose of dispatcherservlet properties?
What is the difference between genericservlet and httpservlet
What is meant by a web application
What is the difference between servlet and jsp?
What is called Session Tracking?
What is servlet name in web xml?