Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

what are the return values of init method in servlets

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anybody help me ..please tell me what are the return values of init method in the servlet lifeycle?

which prevents it from accessing the service method?

I'm going for the scwcd exam. Please, if somebody can help me as soon as possible.

regards
[ November 09, 2004: Message edited by: Mark Spritzler ]
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException

Return Type = VOID
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are studying for the exam, why don't you have a copy of the servlet JavaDocs and the API?
Bill
 
Sonu Kaur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends
Maybe I was not very clear with my question..my intention was not to ask about what is the return value of init method.
It's clear in the signature, void.

I was keen to know, what things in init method could prevent the container from servicing any request from the client
I could get a reason, if there is an exception raised into init, then there is not any possibility of going to the service method.
and one of my friends had appeared in scwcd recently. He was also not able to get what could be the other reason as he had to make two choices.

So I aplologize if my very basic questions caused inconvinience to some of you of course I'm not very experienced in this technology, but, yes I'm on the way
anyways thanks for your answers..
regards
[ November 09, 2004: Message edited by: Mark Spritzler ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaismeen, Please spell out all words. I have gone through your posts and added the missing vowels.

Don't worry, it is me, and the mood I am in, and not you.

Mark
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic