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
Why do we have servlet wrapper classes?
Can a jsp be called using a servlet?
Explain the jar and war files in servlet?
What is java servlet?
What do you mean by web applications?
What is session?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
How do you invoke a servelt?
Is servlet a controller?
What is a servlet-to-servlet communcation?
What is servlet and its life cycle?
What is the
What's the difference between servlets and applets?
Difference between forward() method and sendredirect() method ?
What is URL Encoding?