[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

struts parsing error

Posted on 2004-08-30
4
Medium Priority
?
248 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
2 Comments
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

825 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