Struts 2 and dynamics web page

2010-04-29 Thread Stephane Cosmeur
Hello Struts 2 Users, I would like to call an action when an envent onchange from a s:select component is dispatched. According to the selected value I would like to load data in a form in order to modify it after. To do that i would like to call a Struts 2 action with AJAX, is it posible and is i

Re: Submit not passing the form input to the action

2010-04-29 Thread Dale Newfield
On 4/29/10 2:13 PM, Kartik Kumar wrote: @Nikhil No action form used as I am using Struts2. Each row has a submit button. Each row should have it's own form. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Submit not passing the form input to the action

2010-04-29 Thread Kartik Kumar
@Nikhil No action form used as I am using Struts2. Each row has a submit button. 2010/4/29 निखिल वाळवेकर > Can you please also provide ActionForm details ? > > Is your page like this? (I am not aware abt struts 2 tags) > > > ... > > > > > >

Re: Login redirection

2010-04-29 Thread Paweł Wielgus
Hi Mark, i would suggest the flow like that: User -requests-> P -check-if-logged-in-and-if-not-forward-to-> C (story end here) User -requests-> A -check-if-logged-and-if-yes-forward-to-saved-request_P-> P where A is special landing page for users coming back from central security, there should be

Re: Question on WW-2272 fixed by musachy

2010-04-29 Thread Wes Wannemacher
This might be hard to nail down because, in looking at the resolution date, that looks like he fixed it back before xwork was brought over into the Apache source repository. You can start over here - http://www.opensymphony.com/xwork/cvs.action But, the fisheye instance over at opensymphony has be

Re: Question on WW-2272 fixed by musachy

2010-04-29 Thread Dale Newfield
On 4/29/10 12:08 PM, Bhaarat Sharma wrote: https://issues.apache.org/jira/browse/WW-2272 Fixed on xwork. rv1780 I am just trying to figure out what rv1780 means and how can I traslate that to which xwork jar would have this issue fixed? If you hit the "All" tab you'll see: Fix Version/s: 2

Question on WW-2272 fixed by musachy

2010-04-29 Thread Bhaarat Sharma
I am referring to this JIRA ticket: https://issues.apache.org/jira/browse/WW-2272 This code was fixed by musachy and the comment says: Fixed on xwork. rv1780 I am just trying to figure out what rv1780 means and how can I traslate that to which xwork jar would have this issue fixed? Currently I

Re: Login redirection

2010-04-29 Thread Mark Hansen
Thanks Pawel. What I don't understand is how, after my user is authenticated by the central security application (say that happens on page C), I can get him back to my struts application and forward him to page P - which he originally requested. The flow that I need is: User -> P - forward ->

Re: Login redirection

2010-04-29 Thread Paweł Wielgus
Hi Mark, i don't know the details, but in general when You was redirecting to L1 or Ln You had the knowlegde about requested page P, so just redirect to this centralized solution but store two things, what was requested (page P and maybe also parameters) and some identificator of a user (session or

Re: Struts 2 validation

2010-04-29 Thread Alex Rodriguez Lopez
If you define action alias for specific methods in your struts.xml (you can do so with wildcards too), then you can use this format --validation.xml as stated below. http://struts.apache.org/2.1.8.1/docs/validation.html Defining Validation Rules Validation rules can be specified: Per Action c

Struts 2 validation

2010-04-29 Thread David Harland
Hi, Is there any way of creating a struts validation xml for a specific method or is the only way of doing through an Action method eg. public String saveSomething() { return SUCCESS; } public void validateSaveSomething() { // } Thanks Dave. -

iterator map and set hidden value

2010-04-29 Thread yunaki
I iterate a hashmap in object stack, I wish to set each element id to a hidden tag id and set element value to the hidden value attribute. Any have idea? Thx I tried following code but not work -- View this message in context: http://old.nabble.com/iterator-map-and-set-hidden-

Re: Annotation Validation

2010-04-29 Thread Alex Rodriguez Lopez
I did try it like so, it is working, but not as expected. I need to pass an argument to the resource bundle so it gets correclty displayed with the name, for example this property: error.required = Field {0} is required. When called like this: getText("error.required", {getText("label.name")})

Re: Submit not passing the form input to the action

2010-04-29 Thread निखिल वाळवेकर
Can you please also provide ActionForm details ? Is your page like this? (I am not aware abt struts 2 tags) ... ** * *

Re: Submit not passing the form input to the action

2010-04-29 Thread Jyothi Rajesh
Not sure about struts 2, but in struts 1.3, there will need to be a collection object in the action form and this will need to be instantiated while declaring. And there needed to be getters and setters for the entire collection as well as inidiviual members with index.