Re: Submit not passing the form input to the action

2010-04-28 Thread Kartik Kumar
Hi Martin, Thanks for replying. I loked at I am iterating through the collection to display some the items as follows: There is a submit button for every row. I want to update the va

RE: Submit not passing the form input to the action

2010-04-28 Thread Martin Gainty
the list attribute defined is the variable bound from the action as seen here with a bound Collection variable called availableItems public abstract class AbstractCRUDAction extends ActionSupport { private Collection availableItems; the hidden field needs a value attribute and a id att

Submit not passing the form input to the action

2010-04-28 Thread Kartik Kumar
Hi, I have a use case in which we iterate through the items in the list and display them on the page. We do that with s:iterator tag. **

Re: Annotation Validation

2010-04-28 Thread mrsv
Did you try something like this? @RequiredStringValidator( fieldName = "label.name", key ="error.required ", message = "Name required.")} Alex Rodriguez Lopez wrote: > > Hi struts users! > > I'm on my way to change from XML based validation to annotation > validation.

Re: input fields with dynamic names

2010-04-28 Thread Mitch Claborn
That works for setting parameter names, but not so well when the tags in the JSP need to retrieve the value for display in the page, particularly if there is a validation error. If there is a static field named "fred" and the action has a "getFred()" method, then all is good. But the field na

Re: input fields with dynamic names

2010-04-28 Thread Greg Lindholm
You are probably looking for ParameterAware http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/ParameterAware.html On Wed, Apr 28, 2010 at 12:47 PM, Mitch Claborn wrote: > I'm sure I've seen the answer to this somewhere, but darned if I can find it > now when I nee

input fields with dynamic names

2010-04-28 Thread Mitch Claborn
I'm sure I've seen the answer to this somewhere, but darned if I can find it now when I need it! I have a page that allows edits of various options, the names of which are dynamically retrieved from the database. If I have the code in the JSP as below, the value displayed in the text field is

Re: S2 validation without API ties

2010-04-28 Thread Wes Wannemacher
Chris, There are a few non-struts/xwork-validation plugins that integrate with general purpose validation mechanisms. Off the top of my head, I remember this - https://cwiki.apache.org/confluence/display/WW/OVal+Plugin But, I think there are two distinctly different things you are considering he

Re: Multiple forms in single action class

2010-04-28 Thread Kartik Kumar
Yes It is possible to assign the same action class but different action methods to handle different tasks. The example below should work for you. On Wed, Apr 28, 2010 at 7:08 AM, Manoj Singh wrote: > Hi, > > I am a newbie to struts. Please co-operate. > > I am using the dispatch action to crea

Re: S2 validation without API ties

2010-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, On 4/27/2010 1:09 AM, Rahul Mohan wrote: > I think the fundamental mechanism of S2 is the configurable interceptor > stack where each interceptor applies itself to the current action based on > the interfaces the action implements. You can st

Re: Odd Interceptor Behaviour with Spring Plugin (possibly)

2010-04-28 Thread Wes Wannemacher
Without looking at the blog entry you posted, I would suggest looking at your interceptor stack configuration for the action. The most likely case is that some other interceptor is interrupting execution (likely for a legitimate reason). For instance, the workflow (or is it validation) interceptor

Odd Interceptor Behaviour with Spring Plugin (possibly)

2010-04-28 Thread RogerV
I'm using the RedirectMessageInterceptor from http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2. In the first application I used it in, which is a "standard out of the box" struts 2 application it works as expected. I'm now using it in a project that uses

Re: struts if tag related help

2010-04-28 Thread Upasana Sharma
thanks a lot it worked out... On Wed, Apr 28, 2010 at 7:46 PM, Wes Wannemacher wrote: > > > (assuming that #session.UserList evaluates to some form of java.util.Set) > > -Wes > > On Wed, Apr 28, 2010 at 9:54 AM, Upasana Sharma > wrote: > > Hi > > > > is something like this possible in stru

Re: struts if tag related help

2010-04-28 Thread Wes Wannemacher
(assuming that #session.UserList evaluates to some form of java.util.Set) -Wes On Wed, Apr 28, 2010 at 9:54 AM, Upasana Sharma wrote: > Hi > > is something like this possible in struts2 > > > > I am aware of tag but is it possibel to achive the same > result using tag.. > > > -- > Thanks an

Multiple forms in single action class

2010-04-28 Thread Manoj Singh
Hi, I am a newbie to struts. Please co-operate. I am using the dispatch action to create my action class. Here I am providing the facility the users to add, update and delete the blogs. I want to use two form beans for this single action. One for add and update and another for delete. Is it poss

struts if tag related help

2010-04-28 Thread Upasana Sharma
Hi is something like this possible in struts2 I am aware of tag but is it possibel to achive the same result using tag.. -- Thanks and Regards Upasana Sharma

Re: Partial Validation

2010-04-28 Thread Wes Wannemacher
I'm sure that other people would be interested... The best way to share your enhancement would be to set it up as a standalone project that operates as a struts2-plugin. Make the project available through googlecode, sourceforge or java.net. Then, register it as a struts2-plugin over here - https:

Annotation Validation

2010-04-28 Thread Alex Rodriguez Lopez
Hi struts users! I'm on my way to change from XML based validation to annotation validation. I've manage to get it working, but (probably due to my little knowledge of Java annotations) there are some things I can't get to work, so I apologise if this question is not entirelly Struts related.

Re: use servletcontext in typeconvert

2010-04-28 Thread yunaki
Thanks all you answer. I am new in spring and I found the class that implements ApplicationContextAware,But I want to get attributes from Object Stack or the Context Map(session or applcation). Sorry question did not make sense. yunaki wrote: > > in the convertFromString method, I hope to use se