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


Please Help Members By Posting Answers For Below Questions

Explain the difference between servlet and cgi?

794


What are different methods of session management in servlets?

991


What do you understand by mime type?

775


What is the type of method for sending request from http server?

776


What are the mechanisms used by a servlet container for maintaining session information?

754


What is pure servlet?

888


What are the new features added to servlet 2.5?

812


How the typical servlet code look like ?

852


How to get the current httpsession object?

859


What is the difference between jsp and servlet life cycle?

928


What is the process to implement doget and dopost methods?

707


How do you get the ip address of the client in servlet?

737


What is the difference between the http servlet and generic servlet?

851


Explain web application directory arrangement?

773


Which event is fired at the time of session creation and destroy?

1092