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
How do you get the ip address of the client in servlet?
Explain how to improve Servlet Performance?
What is the use of send redirect () method?
Write a command to get actual path of a servlet to the server?
What is the difference between servlet and jsp?
What do you mean by request dispatcher in servlet? Also explain its methods.
Why is http protocol called as a stateless protocol?
What is session tracking?
What's the advantages using servlets than using cgi?
How can I send user authentication information while making URL Connection?
When a servlet accepts a call from a client, it receives two objects. What are they?
Why do we need servlet filter?
Describe the phases of servlet lifecycle?
What are all the ways for session tracking?
Who is responsible to create the object of servlet?