Solved

struts parsing error

Posted on 2004-08-30
4
238 Views
Last Modified: 2010-04-01
Hello,
I'm using struts; but when I want to pass the paramater in tag forward, i got an error.
<action-mappings>
<action
            attribute="aForm"
            input="/form/a.jsp"
            name="aForm"
            path="/a"
            type="aAction">
            <forward name="bb" path="/form/a.jsp?referer=a.do&type=1" />
            <forward name="curve_ppie" path="/form/a.jsp?referer=a.do&type=2" />
        </action>
</action-mappings>

with this one, I got an error like that:
GRAVE: Parsing error processing resource path
org.xml.sax.SAXParseException: The reference to entity "type" must end with the ';' delimiter.

Please show me how to solve this
Thank you very much
0
Comment
Question by:nphnhi
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 50 total points
ID: 11931166
Change

<forward name="bb" path="/form/a.jsp?referer=a.do&type=1" />
            <forward name="curve_ppie" path="/form/a.jsp?referer=a.do&type=2" />

To

<forward name="bb" path="/form/a.jsp?referer=a.do&amp;type=1" />
            <forward name="curve_ppie" path="/form/a.jsp?referer=a.do&amp;type=2" />
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11931175
We cannot use & in xml directly. We have to change it to &amp;

Good luck,
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xjc and jaxb 2 93
AlarmClock Challenge 35 150
grep code 4 183
IE doesn't Invoke servlet in iframe 1 111
Read about the ways of improving workplace communication.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question