It's not a secret anymore!
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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="/"/" />

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]
I agree. Here's the link:
subject: Switch Action Example
It's not a secret anymore!