Re: how to set default focus field in ?

2010-05-11 Thread RogerV
Luis Martín Canaval Sánchez wrote: > > I would like to know that aswell, so far I have been using javascript with > jquery that is the lib that I use > > > // somewhere inside the initial function > $("input:text:visible:first").focus(); > // or > $("#othercontol").focus(); > // if the first

Re: Catch all method for actions?

2010-05-11 Thread Mitch Claborn
That catches unknown actions, but what I want to catch is a known action but an unknown method on that action. Mitch Greg Lindholm wrote: You can add a default action to catch any random hits Error.jsp On Tue, May 11, 2010 at 11:34 AM, Mitch Claborn wrote:

Re: Catch all method for actions?

2010-05-11 Thread Greg Lindholm
You can add a default action to catch any random hits Error.jsp On Tue, May 11, 2010 at 11:34 AM, Mitch Claborn wrote: > A security scan on our site is sending a request like > > /emailalink!"XxxX.html > > which produces an exception > com.opensymphony.xwork2.interc

Re: Catch all method for actions?

2010-05-11 Thread Dale Newfield
On 5/11/10 11:34 AM, Mitch Claborn wrote: A security scan on our site is sending a request like /emailalink!"XxxX.html I'd advise setting struts.enable.DynamicMethodInvocation=false as a first step. I'd like to be able to somehow capture those requests into a catch-all or default method on

Catch all method for actions?

2010-05-11 Thread Mitch Claborn
A security scan on our site is sending a request like /emailalink!"XxxX.html which produces an exception com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor com.csc.mm.web.action.EmailLink."XxxX() java.lang.NoSuchMethodException: com.csc.mm.web.action.EmailLink."XxxX() at

RE: Iterate over an ArrayList of arrays

2010-05-11 Thread Martin Gainty
xwork refers to top of stack as @vs defined as "the class for the object on the top of the stack " http://struts.apache.org/2.0.14/docs/ognl-basics.html hth Martin __ please do not alter/modify or disrupt this transmission. Thank You > Dat

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Brian Thompson
It just refers to the top of the value stack. -Brian On Tue, May 11, 2010 at 9:17 AM, James Cook wrote: > Where does 'top' come from? > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

RE: Iterate over an ArrayList of arrays

2010-05-11 Thread James Cook
Where does 'top' come from? -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: 11 May 2010 14:49 To: Struts Users Mailing List Cc: Steven Yang Subject: Re: Iterate over an ArrayList of arrays On 5/11/10 5:59 AM, Steven Yang wrote: > try > > $

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Dale Newfield
On 5/11/10 5:59 AM, Steven Yang wrote: try ${top[0]} Except you're using EL here to access OGNL. I'd suggest this is cleaner: value="%{top[0]}"/> -Dale - To unsubscribe, e-mail

Re: how to set default focus field in ?

2010-05-11 Thread Emi Lu
Good morning List, I use to do this "manually" with javascript, didn't know it was part of s:form tag. So today I decided to give it a try but it is not working for me... how does this works? Does it need some plugin or additional config to make it work? I tried focusElement as shown in "id of

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Thomas Lulé
It works ! Thank you very much. 2010/5/11 Steven Yang : > try > >                       ${top[0]} >               > > On Tue, May 11, 2010 at 5:52 PM, Thomas Lulé wrote: > >> I just found an ugly solution : >> >>         >>                 >>                         >>                        

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Steven Yang
try ${top[0]} On Tue, May 11, 2010 at 5:52 PM, Thomas Lulé wrote: > I just found an ugly solution : > > > > > > /> >

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Thomas Lulé
I just found an ugly solution :

Iterate over an ArrayList of arrays

2010-05-11 Thread Thomas Lulé
Hi, I've got an ArrayList named "breadcrumbs" in my action that I would like to display in my JSP. Something like : ${value[0]} I want to iterate over the ArrayList, then get the two values of the array, but this code obv

Difference between ActionSupport and DefaultActionSupport

2010-05-11 Thread James Cook
Hi All, I was wondering if someone can dispel some confusion for me. When would I use DefaultActionSupport over ActionSupport, or viceversa? James

Re: how to set default focus field in ?

2010-05-11 Thread Alex Rodriguez Lopez
Hi, I use to do this "manually" with javascript, didn't know it was part of s:form tag. So today I decided to give it a try but it is not working for me... how does this works? Does it need some plugin or additional config to make it work? Is it compatible with jquery, which I include in ever