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
Define the lifecycle for executing a jsp page.
why we should override only no-agrs init() method.
What is the difference between servlet and jsp?
Why the container loads server at the application startup and how?
Define the life cycle of a servlets.
Explain servlet life cycle?
Define servlet mapping?
Which is the methods of generated servlet?
What are different ways for authentication of servlet?
Which event is fired at the time of session creation and destroy?
What do you mean by cgi?
Explain the war file?
What do you mean by chaining in servlet?
The code in a finally clause will never fail to execute, right?
Explain their methods? Tell me their parameter names also have you used threads in servlet?