Solved

struts parsing error

Posted on 2004-08-30
4
236 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
Comment Utility
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
Comment Utility
We cannot use & in xml directly. We have to change it to &amp;

Good luck,
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now