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...

If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?

Answer Posted / prs01

It will give compilation error. In order to define a method
in JSP, it should be defined in the JSP declarations <%!..%
>, and it can be called in the JSP expression.
On translation, the method will be added outside all
methods in the servlet class.

Is This Answer Correct ?    35 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different types of memory used by jvm?

1204


What if the static modifier is removed from the signature of the main method?

1306


Where can I find seam examples and documentation?

1151


What’s jboss cache in short?

1190


What is Stream Tokenizer?

2325


Is a class a subclass of itself?

1318


which book is better for jdbc ,servlets and jsp

2145


What is ripple effect?

1132


Why does the tag url-encode javascript and mailto links?

1070


What class is used to create Server side object ?

2318


What is the purpose of the wait() method?

1290


what are the activation groupworks?

2254


What are the purpose of introspection?

1264


What is the difference between RMI registry and OS Agent?

1198


To what value is a variable of the string type automatically initialized?

1176