Solved

struts parsing error

Posted on 2004-08-30
4
239 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dateFashion java challenge 9 146
TreeSet comparator example 7 97
excpetion with multiple catch 11 121
difference between sorce folder and folder in eclipise 3 28
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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