Peter Liu wrote:
>
> Kevin,
>
> I tried request.getAttribute("foo") but it still doesn't work. The return
> object is always null.
The <jsp:param> action was added in JSP 1.1 so it doesn't work in a JSP 1.0
container. In a JSP 1.1 container it will set the values as regular request
parameters, so at the target you should use getParameter()/getParameterValues()
to retrieve it. If it doesn't work that way in a JSP 1.1 container it's a bug.
Hans
> -----Original Message-----
> From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 03, 2000 12:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: param
>
> In Servlet 2.2 spec I think you have to use request.getAttribute(), which
> works like request.getParameter() except it returns an Object instead of a
> String, which you will have to typecase to String. Not quite sure about this
> yet..still getting my feet wet.
>
> 1. In <jsp:include> and <jsp:forward>, I can set the param, names and
> values. How can I retrieve them in the included or forwarded jsp page? I
> tried to use request.getParameter("foo") and apparently that is not working.
> Please let me know if I completely misunderstand.
>
> 2. Does this feature support by JRun and WebSphere (they both support JSP
> 1.0)?
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
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