aspose file tools*
The moose likes Struts and the fly likes Switch Action Example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Switch Action Example" Watch "Switch Action Example" New topic
Author

Switch Action Example

Kanchan Singh
Ranch Hand

Joined: Dec 27, 2007
Posts: 38
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Switch Action Example