Jacek Laskowski wrote:
>
> Hans Bergsten wrote:
> >
>
> > But you may actually want to use a forward instead of a redirect here.
> > A forward is an internal server call, so it's faster. In a JSP page
> > you can forward to a servlet and add new parameters like this:
> >
> > <jsp:forward page="myServlet">
> > <jsp:param name="foo" value="bar" />
> > </jsp:forward>
>
> Just to take a chance and ask about another thing related to
> <jsp:param>.
>
> Is it required to set "value" to anything but "" ? What if I need to
> have:
>
> <jsp:param name="foo" value="" /> ?
That should work; "" is a valid value. The value attribute is mandatory,
so you have to use it, e.g. as in your example above. You can also
set the value to a request-time attribute value, e.g.
<jsp:param name="foo" value="<%= someBean.getFoo() %>" />
Hans
--
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