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

Can we use methods in JSP? If so where the methods are
stored in servlet class file?

Answer Posted / mandrita sinha choudhuri

Yes we can write java methods inside jsp files within
the "declarations" tag <!%//the method%>.

This part of the code is compiled by the servlet engine and
inserted outside the _jspservice() method in the generated
servlet class.

Is This Answer Correct ?    38 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three tags used in jsp bean development?

832


Give the use of session object.

968


Differentiate between jsp scriptlet tag and declaration tag.

988


Which jsp implicit objects are thread safe?

878


What is the purpose of jsp?

939


How does a jsp work?

840


Mention the scope values for tag.

868


What are the primary differences between the jsp custom tags and java beans?

826


Explain implicit objects in jsp?

959


What is difference between jspwriter and servlet printwriter?

934


What is the difference between servletcontext and pagecontext?

921


What are the two ways to include the result of another page?

2260


How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.

2040


What do you mean by custom tag in jsp?

928


What is client scripting?

897