Hi,
You can try this in your action class to forward with request param.
ActionForward forward = mapping.findForward("errNoCurrentObject");
StringBuffer buffer = new StringBuffer(forward.getPath());
buffer.append("?type=internal&reason=errNoCurrentObject")
return new ActionForward(buffer.toString(),
forward.getRedirect());
Yogesh
----- Original Message -----
From: "Bryan P. Glennon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 03, 2002 10:11 PM
Subject: Action mappings and request parameters
Hi -
I can't seem to specify more that one request parameter in my action
mapping entries in the struts-config.xml file. I want to do something
like this:
<forward name="errNoCurrentObject"
path="/error.jsp?type=internal&reason=errNoCurrentObject"/>
<forward name="errNoCurrentServer"
path="/error.jsp?type=internal&reason=errNoCurrentServer"/>
<forward name="errNoSuchProcess"
path="/error.jsp?type=internal&reason=errNoSuchProcess"/>
...
When my app loads, however, I get a load exception:
org.xml.sax.SAXParseException: Next character must be ";" terminating
reference to entity "reason".
I have tried escaping the ampersand, but no joy there either. Is
there a way to do this? Or a better approach?
Thanks,
Bryan
--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>