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


we cant Override Jsp Service method?Why?

Answers were Sorted based on User's Feedback



we cant Override Jsp Service method?Why?..

Answer / deepti

_jspService() method will be written by the container hence
any methods which are not to be overridden by the end user
are typically written starting with an '_'. This is the
reason why we don't override _jspService() method in any
JSP page.

Is This Answer Correct ?    51 Yes 22 No

we cant Override Jsp Service method?Why?..

Answer / gunarathinam

My concern is as previous answer _jspServeice() is wriiten
by container and also in that method all the implicit
objects will be created except request and response. if you
overrirde that method you cant get those object. That is
the reason we cant overrirde service method in jsp.

Is This Answer Correct ?    44 Yes 18 No

we cant Override Jsp Service method?Why?..

Answer / baji

The content what we are written in the JSP will go into
_jspService()method because we are implicitly implemented
it.if we again try to override explicitly, the JSP compiler
given error as " THE METHOD IS ALREADY IMPLEMENTED AND CAN'T
OVERRIDE" but in case of other two methods we are not
implementing it in the jsp.therefore the jsp compiler will
allow we can override jspInit() and jspDestroy().

Any method which are not to be overridden by the end
user are typically written starting with an '_'.

Is This Answer Correct ?    16 Yes 4 No

we cant Override Jsp Service method?Why?..

Answer / smriti

we cant Override Jsp Service method becoz container pepole
have responsbility for override _jspService() method and
implement all logic according to user given data

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Servlets Interview Questions

What do you mean by web applications? Explain web application directory arrangement?

0 Answers  


Should I override the service() method?

0 Answers  


Define context initialization parameters.

0 Answers  


Explain servlet.

0 Answers  


Which httpsession object is used to view and manipulate information about a session?

0 Answers  


In jsp custom tags from child tags to how many levels of parent tags you can acess

1 Answers   Bosch,


Which java application server is the best?

0 Answers  


How to maintain security in servlets?

2 Answers  


Explain is servlet mapping?

0 Answers  


Explain request dispatcher and its methods.

0 Answers  


how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply..

6 Answers   Siemens,


without session Id can we do any operations like add,update,edit,delete. I saw Session id is loaded for edit and delete action not for add .so am asking this

1 Answers   Syntel,


Categories