Rathna wrote:
>
> hi all, how do i  pass the init arqument for the JSP?.
> i tried specifing init arquments in servlet 'aliases'
> option in JRun jseweb(Service Config).When i read
> the given variable by <% config.getInitParameter("paramName") %>
> it displays null, means it is not loading init paramenter into the
> config object.

When you look at Servlet 2.2 Specification
(http://java.sun.com/products/servlet) page 65, you'll see that it's as
simple as:

<web-app>
<servlet>
<servlet-name>myJSPfile</servlet-name>
<jsp-file>/myFirstPage.jsp</jsp-file>
<init-param>
<param-name>paramName</param-name>
<param-value>Jakis tekst po polsku:)</param-value>
</init-param>
</servlet>
</web-app>

and you should no longer see null doing getInitParameter("paramName").

>     rathna

Jacek Laskowski

===========================================================================
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