struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: Local Forward with Parameters Causes Exception
Date Sun, 26 Aug 2001 10:26:24 GMT
Try using &amp; for the ampersands. It thinks sortby is an entity
reference, as in &sortby; 

Thomas Quas wrote:
> 
> Hi,
> 
> I ran into the following problem: I want to specify a local forward that
> represents an action URL. The action requires parameters that I want to
> pass
> in common HTTP fashion, namely
> 
>         /product.do?action=list&sortBy=date&order=desc
> 
> Therefore, I have an entry in struts-confix.xml that looks like this:
> 
>     <action path="/product"
>             type="tquas.bogus.servlet.ProductActions"
>             parameter="action"
>             name="productForm"
>             scope="request"
>             unknown="false"
>             validate="true">
>         <forward name="postCreate"
> 
> path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
>     </action>
> 
> where ProductActions is a subclass of DispatchAction containing an
> implementation of method list().
> 
> The problem is that the XML parser throws an exception, basically
> telling me
> that ampersands are not allowed in this URI:

Mime
View raw message