On Mon, 18 Jun 2001, Jacob Thomas wrote:

> Hi Jon,
>       I was trying this out earlier using the Struts beta 1 release and
> found that query strings with multiple parameters caused the XML parser to
> give errors when it encountered either the '&' or '?' character.
> 
> <forward  name="command"
> path="/context/page.jsp?param1=value1&param2=value2&...."/>
> 
> Based on your and Craig's feedback, I take it that this is now supported.

It's supported, but since struts-config.xml is an XML document, you have
to conform to XML syntax requirements:

<forward name="command"
  path="/context/page.jsp?param1=value1&amp;param2=value2 ..."/>

> --
> Thanks
> Jacob
> 

Craig


> -----Original Message-----
> From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 3:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Query string in struts-config.xml
> 
> 
> Hi Jacob,
> 
> What you have below will work. Indeed it is the approach used in several of
> the examples. If you are asking if parameters can be added dynamically in
> the struts-config, then the answer is no. You would have to use the
> html:link tag (or equivalent).
> 
> Jon.
> 
> -----Original Message-----
> From: Jacob Thomas [mailto:[EMAIL PROTECTED]] 
> Sent: 15 June 2001 18:08
> To: '[EMAIL PROTECTED]'
> Subject: Query string in struts-config.xml
> 
> Is there a way to a specify a query string as part of the "path" attribute
> in the <forward> tag within an <action>?
> 
> Example:
>       <forward  name="command" path="/context/page.jsp?param=value"/>
> --
> Thanks
> Jacob
> 

Reply via email to