Redirect (by design) uses an HTTP GET request method. This means the only way
to pass values is in the URL. If your data is small enough, you could
encode/encrypt it into the URL and decode it back after the redirect - an
approach that isn't clean and I wouldn't recommend. (Also, the URL is
Hey,
That worked :-)
Thanks a lot.
Ancat..
hi
try it
s:url id=viewURL namespace=/account action=view /
s:a href=%{viewURL} View Your Account /s:a
My english is not good
hope this can help you
gordian
--
View this message in context:
Hi,
My action looks like this:
class TravellerAction extends ActionSupport{
private Plan itinerary;
// More..
}
The class Plan is a travel plan for a user and contains an ArrayList of
cities you wanna visit:
class Plan {
private ArrayList cities;
// More..
}
Now, when a user is
Hi,
I use the Struts 2 tag to generate my URLs.
For example to generate the URL /account/view.action, I do:
s:url id=viewURL namespace=account action=view /
s:a href=%{viewURL} View Your Account /s:a
But each click on this URL inserts an extra namespace prefix into the
generated URL.
I
Hi,
I am building a simple registration module. The user accesses /signup.action
to view signup.jsp. This JSP allows him to enter username, password, phone
and address. When submitted, the /createUser.action is invoked. Validation
of form data also happens here. When form data is invalid, I do a
5 matches
Mail list logo