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