[S2] ajax themed submits

2008-02-10 Thread Jason Wyatt
I raised a JIRA ticket a while ago ( WW-1930 ) about the value of a tag not being set on the Action if the submit was ajax themed... apparently the problem was fixed in Struts2 release 2.1. I'm hoping to get my hands on the fix, but, although 2.

Re: validation for tag

2008-02-10 Thread Jeromy Evans
If your keys are just numbers, perhaps you could use the Int Validator 0 http://struts.apache.org/2.x/docs/int-validator.html Otherwise I'd try some variations of the expression. It's operating on the getUser().getCountry() property of your action so the expression (user.country == '-1

Re: [struts] OGNL kicks major butt!

2008-02-10 Thread Dale Newfield
Dale Newfield wrote: tags [...] have to capture the attribute string arg, and at evaluation time evaluate them all (when failing, populating with either the arg string itself or sane defaults). Just to clarify: This process is straight forward (and I think all those steps have to happen some

Re: [struts] OGNL kicks major butt!

2008-02-10 Thread Dale Newfield
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: the EL is pluggable in S2.1 and AFAICT has been abstracted out of XW2. Is this layer something clean? I have a handful of tags that I've built that have to capture the attribute string arg, and at evaluation time evaluate them all (when failing

Re: Struts 2 Validation issue

2008-02-10 Thread dfaulcon
Thank you. Jeromy Evans - Blue Sky Minds wrote: > > If if failing to show any data this can only mean the data > is blank (unlikely) or the object is not available on the Value Stack. > If we look at your two use cases: > Case 1.data is posted to your application, the params are set in your

Re: OGNL kicks major butt!

2008-02-10 Thread stanlick
I was pretty sure this mapping was beyond the basic ParametersInterceptor so I crawled the call stack to find the magic code in the ognl.ASTChain class. children[children.length - 1].setValue( context, target, value ); What a beauty! Scott On Feb 10, 2008 3:49 PM, <[EMAIL PROTECTED]> wrote:

Re: OGNL kicks major butt!

2008-02-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > OGNL is always involved Except when it isn't, I suppose. Don't forget that the EL is pluggable in S2.1 and AFAICT has been abstracted out of XW2. The OGNL here is buried in the S2.0/XW1 parameters interceptor and the corresponding S2 documentation for handling lists

Re: OGNL kicks major butt!

2008-02-10 Thread stanlick
Dude... OGNL is always involved :) On Feb 10, 2008 12:25 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- [EMAIL PROTECTED] wrote: > > This might be old hat for some of you, but I recently had a scenario > where > > OGNL made the solution sweet! > > > > Check it out!

[OT] Re: Can we forward to jsp files under /WEB-INF folder

2008-02-10 Thread Dave Newton
--- Sai Reddy <[EMAIL PROTECTED]> wrote: > I'm using Struts 1.2.7 and Tomcat 5.5.25 server. > Can we forward a HttpRequest to the files under /WEB-INF folder? I've read > in "Struts Survival Guide" that we can do so with tomcat server but not > with other servers. Is that true? I'm not actually f

Can we forward to jsp files under /WEB-INF folder

2008-02-10 Thread Sai Reddy
Hi friends I'm using Struts 1.2.7 and Tomcat 5.5.25 server. Can we forward a HttpRequest to the files under /WEB-INF folder? I've read in "Struts Survival Guide" that we can do so with tomcat server but not with other servers. Is that true? I need the answer because I'm trying to move all my JSP

Re: Dynamic indexed field name in validation?

2008-02-10 Thread j alex
I used a custom validator to loop thru each element , validate it and add errors if present . The # of elements could vary per user, and was not known upfront. Really want to know if this can be achieved via validation xml On Feb 7, 2008 8:24 PM, Hodgins, Grant <[EMAIL PROTECTED]> wrote: > I have

Re: S2 Action : request params and session attributes

2008-02-10 Thread Wes Wannemacher
Often parameters are sent over the wire as a group, think of a ' Thanks , i didn't want to have the request parameters as javabeans within > the Action because they are used only for one-time checks and based on > their values, some other Action properties are set. The parameter names > could chan

Re: S2 Action : request params and session attributes

2008-02-10 Thread Dave Newton
--- j alex <[EMAIL PROTECTED]> wrote: > Thanks , i didn't want to have the request parameters as javabeans within > the Action because they are used only for one-time checks and based on > their values, some other Action properties are set. The parameter names > could change later, and i didn't wa

Re: S2 Action : request params and session attributes

2008-02-10 Thread j alex
Thanks , i didn't want to have the request parameters as javabeans within the Action because they are used only for one-time checks and based on their values, some other Action properties are set. The parameter names could change later, and i didn't want that to affect the Action. Now, i tried t

Re: S2 Action : request params and session attributes

2008-02-10 Thread Dave Newton
--- j alex <[EMAIL PROTECTED]> wrote: > HttpServletRequest request = ServletActionContext.getRequest(); > HttpSession session = request.getSession(true); > if (null != request.getParameter("param1")) > session.setAttribute("attr1" , true); > else > session.setAttribute("attr1" , false); > > This w

Re: S2 Action : request params and session attributes

2008-02-10 Thread Wes Wannemacher
Is there a reason it has to happen in an action? This looks to be a bit more suited for an interceptor. I try to separate (logically) the processing by thinking along these lines - If the processing is happening on a business object, handle it in an action. If the processing is affecting the state

S2 Action : request params and session attributes

2008-02-10 Thread j alex
Hi, What's the best practice to refer to request and session within an S2 Action without tying it to HttpServletRequest or HttpSession ? Assume that we need to capture values from certain request parameters and do some processing based on them, and set session attributes : Currently, i'm doing i

Re: OGNL kicks major butt!

2008-02-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > This might be old hat for some of you, but I recently had a scenario where > OGNL made the solution sweet! > > Check it out! I might classify that as type conversion rather than OGNL, since there isn't any OGNL involved.

Re: java.lang.NoClassDefFoundError for beanutils converter

2008-02-10 Thread Arpan Debroy
I guess you can try to add "commons-beanutils-core.jar" file and check again.. On Feb 9, 2008 4:40 PM, hardc0d3r <[EMAIL PROTECTED]> wrote: > > antlr.jar > commons-beanutils.jar > commons-digester.jar > commons-fileupload.jar > commons-logging.jar > commons-validator.jar > jakarta-oro.jar > jstl.

OGNL kicks major butt!

2008-02-10 Thread stanlick
This might be old hat for some of you, but I recently had a scenario where OGNL made the solution sweet! Check it out! -- Scott [EMAIL PROTECTED]

Re: java.lang.NoClassDefFoundError for beanutils converter

2008-02-10 Thread Dave Newton
Struts 1? Struts 2? I don't see anything Struts-related in the stack trace; does this happen on any of the other app pages? Have you tried asking on a NetBeans list since NetBeans configured your app? --- hardc0d3r <[EMAIL PROTECTED]> wrote: > Anyone? Please? > > hardc0d3r wrote: > > > > antlr.j

Re: java.lang.NoClassDefFoundError for beanutils converter

2008-02-10 Thread Antonio Petrelli
2008/2/10, hardc0d3r <[EMAIL PROTECTED]>: > > Anyone? Please? Try to remove and republish your webapp. I don't see any obvious error in your configuration. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: STRUTS 2.0.9 File tag

2008-02-10 Thread Jeromy Evans
Srikanth Muthyala wrote: Can anybody tell me how to disable the manual typing of file name for File tag, only allow 'Browse" button. Thanks. Unfortunately you don't have much control over it. Perhaps you could add an onkeypress event listener that blocks typed input. See here: http://www.qu

Re: [S2] GWT

2008-02-10 Thread Frans Thamura
On Feb 10, 2008 8:43 PM, hezjing <[EMAIL PROTECTED]> wrote: > Which Struts2's AJAX plugin is stable? gwt is not 1.0, is it stable? F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] GWT

2008-02-10 Thread hezjing
Which Struts2's AJAX plugin is stable? The Dojo plugin is a stable one (I saw many Dojo plugin questions in the mailing list)? On Feb 10, 2008 9:13 AM, Frans Thamura <[EMAIL PROTECTED]> wrote: > but the plugins is not stable > > i have a good thing > > www.gwt-ext.com > > and i am glad if this co

STRUTS 2.0.9 File tag

2008-02-10 Thread Srikanth Muthyala
Hi, Can anybody tell me how to disable the manual typing of file name for File tag, only allow 'Browse" button. Thanks. Regards,   Srikanth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: java.lang.NoClassDefFoundError for beanutils converter

2008-02-10 Thread hardc0d3r
Anyone? Please? hardc0d3r wrote: > > antlr.jar > commons-beanutils.jar > commons-digester.jar > commons-fileupload.jar > commons-logging.jar > commons-validator.jar > jakarta-oro.jar > jstl.jar > mysql-connector-java-3.0.17-ga-bin.jar > standard.jar > struts.jar > > xniit2003 wrote: >> >> Can