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
Is that servlet is pure java object or not?
What is the difference between the http servlet and generic servlet?
What are the different session tracking techniques?
What is a servlet-to-servlet communcation?
Explain the war file?
Explain Action Servlet?
What is the difference between sendredirect() and forward() in a servlet?
What are the steps that are required to handle the multi-threading?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are important features of Servlet 3?
Why are http servlets used in programming?
When should you prefer to use doget() over dopost()?
Define servlet mapping?
Explain request dispatcher and its methods.
Is servlet a server side scripting language?