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

How to deploy Jar, War files in J2EE?

2694


Can I use multiple html form elements with the same name?

1052


Do you think that java should have had pointers?

1049


Explain what is synchronization?

1094


What are transaction attributes?

1109


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3003


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

2242


What are the types of scaling?

1086


What do you know about seam?

1051


Describe activation process?

2657


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

1240


What value does readline() return when it has reached the end of a file?

1082


What is the purpose of the notifyall() method?

1043


Which javutil classes and interfaces support event handling?

1043


What are the steps to write p-to-p model application?

2481