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 difference between servlet and cgi?
What are different methods of session management in servlets?
What do you understand by mime type?
What is the type of method for sending request from http server?
What are the mechanisms used by a servlet container for maintaining session information?
What is pure servlet?
What are the new features added to servlet 2.5?
How the typical servlet code look like ?
How to get the current httpsession object?
What is the difference between jsp and servlet life cycle?
What is the process to implement doget and dopost methods?
How do you get the ip address of the client in servlet?
What is the difference between the http servlet and generic servlet?
Explain web application directory arrangement?
Which event is fired at the time of session creation and destroy?