1. you call super.init so that the servlet can still execute the init method
(whatever it does) that your servlet is extending (e.g.
javax.servlet.http.HttpServlet).
2. config.getInitParameter("paramName") gets the value of the parameter(key)
called "paramName" from the config file. The config file may contain
key-value pairs to initialize the servlet and is read once during loading of
the servlet.

:^)
Ricky Y. Artigas
Analyst/Programmer
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


> -------------------------------
> IMPORTANT NOTICE:

> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: T.A. Flores [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 11:25 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Newbie Questions
>
> I briefly reviewed the information you have referenced and the author
> explains the init method - why and how often its called.
>
> Looking at the redirect Servlet do you have your web server configured
> correctly and the servlet placed in the correct location?  What about
> the form code the author has listed?  How are you calling this Servlet?
>
> Try re-reading the information - I don't see any reason why it wouldn't
> work.
>
> ----- Original Message -----
> From: Stanley Tan <[EMAIL PROTECTED]>
> Date: Sunday, March 25, 2001 5:30 pm
> Subject: Newbie Questions
>
> > Hi.  I'm new to servlet technology.  Could someone please help
> > clarify some
> > questions.
> >
> > 1. When you override the init method why do you have to call
> > super.init?
>
> > 2. In the article, "Navigating with Servlets,"
> >
> http://developer.java.sun.com/developer/onlineTraining/new2java/programm
> ing/learn/servlets.html,
>
> > the author uses paramName = config.getInitParameter("paramName");
> > in the init method.  What does this do?
> >
> > 3. Has anyone gotten the aboved mentioned redirect script to work?
> > I get a
> > null pointer exception unless I replace paramName with "URL"
> >
> > Thanks in advance.
> >
> >
> > Stanley Tan
> >
> >
> ________________________________________________________________________
> ___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> > the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http:
> > Resources: http://java.sun.com/products/servlet/external-
> > resources.htmlLISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to