File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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: 2904

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

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

Hope this Help !

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Don't get me started about those stupid light bulbs.
subject: Switch Action Example