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 the types of directives in jsp?

900


Which jsp lifecycle methods can be overridden?

903


How can I extend the functionality of jsp?

915


What is the difference between a scrollbar and a scrollpane in jsp?

853


What is the default value of session attribute in jsp?

836


How to disable session in jsp?

938


How to send data from one page to another in jsp?

840


What are the elements of jsp?

934


What is expression language injection?

882


How to access java variable in jsp?

879


What are the jsp tags?

840


How to connect jsp and java file?

960


What are the different types of jstl tags?

872


What is a scriptlet?

935


Explain handling of runtime exceptions.

1126