Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Switch Action Example

 
Kanchan Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am facing problem in using switch Action .
This is my action tag
<action path="/switchExample" type="switchAction.SwitchAction">
<forward name="success" path="/switch.do?page="/switchTrial.do&prefix=/admin" />
</action>

when i validate my struts-config page it gives me the following error:
Element type "forward" must be followed by either attribute specifications, ">" or "/>". [257]

Can anyone help me plzzzzzzzzzzzzz..
Wating for a positive response
Thanks in advance
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch !

Can anyone help me plzzzzzzzzzzzzz..


Please use RealWord,
and problem seems to be in this line :

<blockquote>code:
<pre name="code" class="core"> <forward name="success" path="/switch.do?page="/switchTrial.do&prefix=/admin" /> </pre>
</blockquote>

look at the " " , they are not properly closed !

Hope this Help !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic