DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4362>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4362

Cannot read init-params from within a JSP

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From [EMAIL PROTECTED]  2001-10-24 18:42 -------
Let's say you define a mapping for the snoop JSP from the examples webapp:
    <servlet>
     <servlet-name>Snoop</servlet-name>
     <jsp-file>/jsp/snp/snoop.jsp</jsp-file>
     <init-param>
       <param-name>bar</param-name>
       <param-value>42</param-value>
     </init-param>
    </servlet>

Then you need to define a mapping for it:
    <servlet-mapping>
        <servlet-name>
            Snoop
        </servlet-name>
        <url-pattern>
            /Snoop
        </url-pattern>
    </servlet-mapping>

If you access /Snoop, you'll see the 'bar' init parameter. If you 
access '/jsp/snoop.jsp', you're actually using the mapping for the Jasper 
JspServlet, so that's why you get the init parameters for that servlet.

Reply via email to