Hi everyone,

There's something I don't understand in Stripes. This is my first
application using the framework.

I have a form that allows me to enter some order details and save it.

The URL that I use to get to the page looks like this:
http://localhost:8080/proj/order/edit/2

because I have this defined at the top of my OrderFormActionBean class:
@UrlBinding("/order/{$event}/{orderId}")

The form tag inside my JSP looks like this:
<stripes:form id="orderform" beanclass="com.myproject.OrderFormActionBean"
method="post">

and the submit tag inside the JSP looks like this:
<stripes:submit name="complete" value="Complete" />

I have a method in my OrderFormActionBean which is called when the event
name 'complete' is passed through from this submit button, the method is
annotated with this: @HandlesEvent("complete")

Now, when I have validation errors on the form fields, the URL that is
displayed is:
http://localhost:8080/proj/order/

How come the URL displayed is not http://localhost:8080/proj/order/edit/2 ?

Is there any way for the sourcePage to have the event name and the orderId
parameter in it so that when validation errors occur my URL looks like the
original (i.e. source) URL?


Thanks for any help,
Annie
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to