You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Clint Combs <cl...@ccombs.net> on 2000/05/17 06:34:43 UTC

Problem w/ init-param's within jsp-file tag (Tomcat 3.1)

Hi all,

I'm trying to pass ServletConfig parameters to a jsp page which extends
a servlet, but the parameters never make it to the page.  The servlet
the jsp page extends, implements HttpJspPage (as specified in the jsp
spec).

I'm using the following web.xml snippet to pass in the parameter
"authServiceURL".

.
.
.
  <servlet>
    <servlet-name>Index</servlet-name>
    <jsp-file>
      /index.jsp
    </jsp-file>
    <load-on-startup>2</load-on-startup>
    <init-param>
      <param-name>authServiceURL</param-name>
      <param-value>rmi://localhost:8199/SimpleAuthService</param-value>
    </init-param>
  </servlet>
.
.
.

The problem is that the "authServiceURL" parameter never shows up in the
ServletConfig.  I've tried printing the parameters from the servlet
superclass as well as the jsp page.

So far, I've tried this w/ Tomcat 3.1.  Is this a problem w/ Tomcat?
Does resin have this problem? ... or am I the problem?

Thanks,
Clint



Re: Problem w/ init-param's within jsp-file tag (Tomcat 3.1)

Posted by Clint Combs <cl...@ccombs.net>.
I'm not sure why this message repeated three times... maybe I shouldn't be
copying to multple lists.

-Clint

Clint Combs wrote:

> Hi all,
>
> I'm trying to pass ServletConfig parameters to a jsp page which extends
> a servlet, but the parameters never make it to the page.  The servlet
> the jsp page extends, implements HttpJspPage (as specified in the jsp
> spec).
>
> I'm using the following web.xml snippet to pass in the parameter
> "authServiceURL".
>
> .
> .
> .
>   <servlet>
>     <servlet-name>Index</servlet-name>
>     <jsp-file>
>       /index.jsp
>     </jsp-file>
>     <load-on-startup>2</load-on-startup>
>     <init-param>
>       <param-name>authServiceURL</param-name>
>       <param-value>rmi://localhost:8199/SimpleAuthService</param-value>
>     </init-param>
>   </servlet>
> .
> .
> .
>
> The problem is that the "authServiceURL" parameter never shows up in the
> ServletConfig.  I've tried printing the parameters from the servlet
> superclass as well as the jsp page.
>
> So far, I've tried this w/ Tomcat 3.1.  Is this a problem w/ Tomcat?
> Does resin have this problem? ... or am I the problem?
>
> Thanks,
> Clint