Re: Redirect-action parameters via POST

2008-04-25 Thread ancatdubher
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

Re: Struts 2 s:a URL tag problems

2008-04-14 Thread ancatdubher
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:

STruts 2 - populating an ArrayList from the JSP

2008-04-12 Thread ancatdubher
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

Struts 2 s:a URL tag problems

2008-04-09 Thread ancatdubher
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

Retaining request attributes after redirect

2008-03-28 Thread ancatdubher
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