wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Switch Action Example" Watch "Switch Action Example" New topic

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" />

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

Welcome to JavaRanch !

Can anyone help me plzzzzzzzzzzzzz..

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

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

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
Similar Threads
what is the significance of SwitchAction in struts framework
Struts modules does not work!
How to invoke a web page on logout action
any idea please
struts(jsp forward to Action?)