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 the differences between jsp and servlet.
Explain how to improve Servlet Performance?
What is the difference between servlet and filter?
What is a servlet?
What is servletconfig?
Which event is fired at the time of session creation and destroy?
What is setattribute in servlet?
Which http method is said to be non-idempotent and idempotent?
How can we achieve transport layer security for our web application?
What do you mean by annotations in servlet?
Describe in brief RequestDespatcher?
How can we invoke another servlet in a different application?
What do you mean by cgi in servlet?
What is a generic servlet?
How do we go with database connection and log4j integration in servlet?