i assumed since your name is martin you are the most intelligent engineer in germany?
Mit Freundliche Gruben! Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Sun, 31 May 2009 18:27:00 +0200 > From: kindl...@arcor.de > To: user@struts.apache.org > Subject: Re: [s2] strange (for me) OGNL behavior > > Martin, thanks a lot! > > Martin Gainty schrieb: > > WEB-INF/classes/struts-default.xml > > <interceptors> > > <interceptor name="params" > > class="com.opensymphony.xwork2.interceptor.ParametersInterceptor"/> > > > > <interceptor-stack name="paramsPrepareParamsStack"> > > <interceptor-ref name="exception"/> > > <interceptor-ref name="alias"/> > > <interceptor-ref name="i18n"/> > > <interceptor-ref name="params"> > > <param name="excludeParams">dojo\..*,^struts\..*</param> > > </interceptor-ref> > > > > add exclude param after ^struts\..* > > e.g. ^struts\..*,name > > > > does this help? > > Martin > > ______________________________________________ > > Verzicht und Vertraulichkeitanmerkung > > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > > > > > > > > >> Date: Sat, 30 May 2009 10:33:53 +0200 > >> From: kindl...@arcor.de > >> To: user@struts.apache.org > >> Subject: Re: [s2] strange (for me) OGNL behavior > >> > >> Musachy, > >> > >> that sounds interesting. Can you tell me where I find information about > >> configuring (in struts-config.xml? or programmatically?) the interceptor? > >> > >> Thanks > >> > >> Martin > >> > >> Musachy Barroso schrieb: > >>> You can configure the params interceptor to ignore those params. > >>> > >>> musachy > >>> > >>> On Fri, May 29, 2009 at 9:00 AM, <kindl...@arcor.de> wrote: > >>>> Thanks Jim, > >>>> > >>>> that is the explanation I needed. I can't get rid of the name attribute, > >>>> but I can live with the stack traces in my log file. > >>>> > >>>> Martin > >>>> > >>>> > >>>> ----- Original Nachricht ---- > >>>> Von: Jim Kiley <jhki...@summa-tech.com> > >>>> An: Struts Users Mailing List <user@struts.apache.org> > >>>> Datum: 29.05.2009 14:45 > >>>> Betreff: Re: [s2] strange (for me) OGNL behavior > >>>> > >>>>> Whenever you click an HTML button with your mouse, the browser will > >>>>> submit > >>>>> the X and Y coordinates of the area that you clicked. This is to > >>>>> support > >>>>> image maps. By giving the submit button a name (I think), the browser > >>>>> tries > >>>>> to provide those X and Y coordinates with respect to the button's name > >>>>> (thus > >>>>> name.x and name.y). Struts is trying to parse those input parameters > >>>>> but > >>>>> because you probably don't have an object in your action class that has > >>>>> the > >>>>> name that your submit button has, it is lost. > >>>>> This error won't actually cause you any real problems, but if you want > >>>>> to > >>>>> get rid of it I think you'll want to get rid of the 'name' attribute on > >>>>> your > >>>>> submit button. > >>>>> > >>>>> jk > >>>>> > >>>>> On Fri, May 29, 2009 at 5:46 AM, <kindl...@arcor.de> wrote: > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> OGNL is a great mystery for me. It does magic and - well - strange > >>>>> things. > >>>>>> :-) > >>>>>> Perhaps you can help me out. > >>>>>> > >>>>>> The situation: > >>>>>> I have a S2 (2.16) site where I use on some pages a form like this: > >>>>>> <s:form action="SatImgWetterSWR" acceptcharset="UTF-8"> > >>>>>> <s:textfield id="plzs_searchterm" name="plzs_searchterm" > >>>>>> value="PLZ/Ort > >>>>>> eingeben" cssClass="dimmedInput" onfocus="setActiveClass();"/> > >>>>>> <s:submit type="image" src="pages/img/nav/dosearch.gif" > >>>>>> id="plzs_submit" > >>>>>> name="plzs_submit" cssStyle="margin-left: 5px;" /> > >>>>>> </s:form> > >>>>>> > >>>>>> This works great. > >>>>>> > >>>>>> The problem: > >>>>>> when pressing the Submit-button, Struts throws exceptions that it > >>>>>> (OGNL) > >>>>>> cannot set the properties x and y which do not exist. > >>>>>> This does not stop my app from working, its just ugly. > >>>>>> > >>>>>> Looking a bit into the problem I found that the form tries to transfer > >>>>>> plzs_submit.x and plzs_submit.y and this causes the problem. > >>>>>> > >>>>>> I am puzzled. > >>>>>> > >>>>>> Any explanation and hint for stopping this will be greatly appreciated. > >>>>>> > >>>>>> Martin > >>>>>> > >>>>>> +--------------------------------------------------- > >>>>>> Dipl. inf. Martin Kindler > >>>>>> Julius-Leber-Str. 8 > >>>>>> D-76448 Durmersheim > >>>>>> > >>>>>> Tel. +49 (0)7245 80 48 774 > >>>>>> GSM +49 (0)160 977 636 14 > >>>>>> > >>>>>> --------------------------------------------------------------------- > >>>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >>>>>> For additional commands, e-mail: user-h...@struts.apache.org > >>>>>> > >>>>>> > >>>>> -- > >>>>> Jim Kiley > >>>>> Senior Technical Consultant | Summa > >>>>> [p] 412.258.3346 > >>>>> http://www.summa-tech.com > >>>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >>>> For additional commands, e-mail: user-h...@struts.apache.org > >>>> > >>>> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > > > > _________________________________________________________________ > > HotmailĀ® goes with you. > > http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Windows Liveā¢: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009