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 differences between jsp and servlet.

623


Explain how to improve Servlet Performance?

690


What is the difference between servlet and filter?

613


What is a servlet?

697


What is servletconfig?

637






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

980


What is setattribute in servlet?

634


Which http method is said to be non-idempotent and idempotent?

700


How can we achieve transport layer security for our web application?

663


What do you mean by annotations in servlet?

674


Describe in brief RequestDespatcher?

677


How can we invoke another servlet in a different application?

790


What do you mean by cgi in servlet?

714


What is a generic servlet?

598


How do we go with database connection and log4j integration in servlet?

790