Action mappings and request parameters

2002-03-03 Thread Bryan P. Glennon

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=internalreason=errNoCurrentObject/
 forward name=errNoCurrentServer
path=/error.jsp?type=internalreason=errNoCurrentServer/
 forward name=errNoSuchProcess
path=/error.jsp?type=internalreason=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]




Re: Action mappings and request parameters

2002-03-03 Thread Pavel Kolesnikov

On Sun, 3 Mar 2002, Bryan P. Glennon wrote:

 mapping entries in the struts-config.xml file. I want to do something
 like this:
 
  forward name=errNoCurrentObject
 path=/error.jsp?type=internalreason=errNoCurrentObject/

 When my app loads, however, I get a load exception:
 
 org.xml.sax.SAXParseException: Next character must be ; terminating
 reference to entity reason.

try to use the entity instead of ampersand:

forward name=errNoCurrentObject   
  path=/error.jsp?type=internalamp;reason=errNoCurrentObject/

pavel




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Action mappings and request parameters

2002-03-03 Thread yogesh b

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=internalreason=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=internalreason=errNoCurrentObject/
 forward name=errNoCurrentServer
path=/error.jsp?type=internalreason=errNoCurrentServer/
 forward name=errNoSuchProcess
path=/error.jsp?type=internalreason=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]




Re: Action mappings and request parameters

2002-03-03 Thread Muralidhar_BR



Hi,
try using
forward name=errNoCurrentObject
path=/error.jsp?type=internalamp;reason=errNoCurrentObject/
Regards,
Murali




yogesh b [EMAIL PROTECTED] on 04/03/2002 05:13:16

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:(bcc: Muralidhar BR/India/KINDLE)
Subject:  Re: Action mappings and request parameters




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=internalreason=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=internalreason=errNoCurrentObject/
 forward name=errNoCurrentServer
path=/error.jsp?type=internalreason=errNoCurrentServer/
 forward name=errNoSuchProcess
path=/error.jsp?type=internalreason=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]









**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.Kindlesystems.com
**

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]