you mean thhe request parameters?

It doesn't make sense to try and access the request parameters at this
point - a servlet engine could choose to pre-load its servlets so when
jspInit is called then there may be no request.

You can specify start-up parameters to a servlet, and you can (depending on
the engine) pre-compile JSPs into servlets and reference them as servlets in
the web.xml file. Which means, in theory, that you could specify startup
parameters to a JSP. I say in theory because I've never tried this.

What parameters do you need exactly?

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Edmister
> Sent: 23 May 2000 16:14
> To: [EMAIL PROTECTED]
> Subject: Re: jspInit() and request.getParameter()
>
>
> kevin,
>
> thanks for your response and i figured that was the case.  is there anyway
> to get the Parameters during the jspInit event?  what interfaces
> are exposed
> during this point that i can use?
>
> thanks in advance
> new-guy-on-the-jsp-block
>
> -----Original Message-----
> From: Kevin Jones [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 22, 2000 11:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jspInit() and request.getParameter()
>
>
> JSP are just servlets. In a servlet Init is called once (when the
> container
> loads the servlet), ditto for jspInit. In [jsp]Init you are not servicing
> the request, so the request object isn't available. The 'request'
> object is
> actually a parameter that is passed to the _jspService method.
> So, yes it is
> working as designed,
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of David Edmister
> > Sent: 23 May 2000 01:52
> > To: [EMAIL PROTECTED]
> > Subject: jspInit() and request.getParameter()
> >
> >
> > i get an error using the "request.getParamter()" object/method in the
> > jspInit() method of the page object.
> >
> > are you allowed to get parameters passed to a page "before
> > processing"?  i'm
> > basically trying to prepare a recordset that i'm going to keep
> > static in the
> > page so i'm placing the code into the jspInit() method and this
> is where i
> > get an error.
> >
> > since i'm new to jsp i'm not sure if this is working "as
> > designed" or if i'm
> > processing the paramters wrong or ?
> >
> > thanks in advance for  your help.
> >
> > ==================================================================
> > =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to