Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Define the lifecycle for executing a jsp page.

1138


why we should override only no-agrs init() method.

1186


What is the difference between servlet and jsp?

1170


Why the container loads server at the application startup and how?

1115


Define the life cycle of a servlets.

1121


Explain servlet life cycle?

1186


Define servlet mapping?

1221


Which is the methods of generated servlet?

1294


What are different ways for authentication of servlet?

1161


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

1443


What do you mean by cgi?

1012


Explain the war file?

1117


What do you mean by chaining in servlet?

1078


The code in a finally clause will never fail to execute, right?

1147


Explain their methods? Tell me their parameter names also have you used threads in servlet?

1094