I haven't used the action: or method: prefixes, just method="list".
Have you tried that? I suspect you might be calling the method
properly, but then redirecting to it, hence the duplicate call.

Matt

On 6/13/07, arvinder <[EMAIL PROTECTED]> wrote:

I have a customer entity with one-to-many relationship with location
entities. So if I am in editLocation.jsp and I hit cancel button, it should
display locations for only the current customer. To achieve this I created a
hidden variable in my form
<s:hidden name="customerId" value="%{location.customer.id}"/>
which I use in my list() in LocationAction class.
What I noticed is that if I use
        <s:submit cssClass="button" name="action:locations"
key="button.cancel"/>
everything works fine (list() is called once with parameters)but if I use
        <s:submit cssClass="button" name="method:list" key="button.cancel"/>
the list() is called twice, once with parameters and second time without
parameters and as a result
no locations are displayed due to absence of customerID parameter.

Has anybody encountered this behavior or I am doing something wrong?
Arvinder
--
View this message in context: 
http://www.nabble.com/ActionMapper-behavior-tf3913523s2369.html#a11095755
Sent from the AppFuse - User mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

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

Reply via email to