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 / manesh

Mandrita , There is a typo in ur answer.

Its should be <%! //the method%>. not

Regards,
Manesh A. K.

>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 ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are jsp elements?

911


What are the three tags used in jsp bean development?

832


What are the different scopes an object can have in a jsp page?

936


Can we use jstl in html?

827


What is jsp and why is it needed?

871


Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme

1681


What is jstl?

884


What is jsp net?

867


What is the standard action?

979


What are the different scope values for the tag?

840


What is contextpath?

841


How do you comment out in jsp?

945


What is server context?

865


Is jsp page extensible true false?

880


Can a constructor be used in place of init() method to initialize a servlet?

890