Hi All,

In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class)
that is accessed from two different lists.  When the user quits the form
(save, cancel etc.) they need to return to the list they came from.

The approach I've taken is to try and have the Form's Action attribute
specified as an OGNL variable.  My problem is that I can't find a way to
pass in a value to that variable.  I've tried the following in my struts.xml
file:

<action name="listSomeThings" class="au.com.myapp.action.Thing"
method="listSomeThings">
        <result>/WEB-INF/pages/listSomeThings.jsp</result>
</action> 

<action name="listOtherThings" class="au.com.myapp.action.Thing"
method="listOtherThings">
        <result>/WEB-INF/pages/listOtherThings.jsp</result>
</action> 

<action name="editThing" class="au.com.myapp.action.Thing"
method="editThing">
        <result>
                /WEB-INF/pages/Thing.jsp
                saveThing
        </result>
</action>

<action name="editOtherThing" class="au.com.myapp.action.Thing"
method="editOtherThing">
        <result>
                /WEB-INF/pages/Thing.jsp
                saveOtherThing
        </result>
</action>

I've also tried specifying a URL parameter in struts.xml, but no matter what
I do, the rendered form ends up with an empty action attribute.  Is there a
way to pass this kind of parameter in the struts.xml or do I need to totally
rethink the way I'm trying to achieve this?

Cheers,

Rob Hills
Waikiki, Western Australia
-- 
View this message in context: 
http://www.nabble.com/AppFuse-2-%2B-Struts-2---One-JSP--%3E-two-different-Actions---possible-tp19826404s2369p19826404.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to