David, could you please indicate which docs you are talking about and
give a reference? Thanks.
On 5/11/05, Durham David R Jr Ctr 805 CSPTS/SCE
<[EMAIL PROTECTED]> wrote:
> >
> >
>
> From the docs:
>
> A way of retrieving these values through a form bean is to define
> getX(), getY(),
Unless Dave is right, Chad,which I don't think he is, the difficulty
is that you get as a name/value pair in the request parameters
[property].x=[some integer] and [property].y=[some integer] so that
the task becomes getting the name which is the "property" in
[property] rather than the value, i.e.
I may be wrong, Dave, but I think you are going to get an integer
value for getX and getY and not "Update". Isn't that right? That is
why the solutions have to be a little more detailed and why we got
saddled with the LookupDispatchAction and other heavy solutions. Once
again, I think the option
>
>
>From the docs:
A way of retrieving these values through a form bean is to define
getX(), getY(), setX(), and setY() methods, and specify your
property as a blank string (property="").
So, you could just do:
In a JSP:
Then in your action:
if (((DynaBean)f
The whole point is not to use the form, I think, Chad. By the way,
all the browsers return the keys with .x and .y, even though some also
return the variables without the .x and .y.
On 5/9/05, Chad Rosen <[EMAIL PROTECTED]> wrote:
> Ok I'm going to reply to myself :)
>
> Adding this check solved
The IE behavior you discuss is the normal behavior. That is the
"trick" with multiple submits and . For various
solutions you can see LookupDispatchAction in Struts (which is really
heavy) or a bevy of choices at www.michaelmcgrady.com/button/
Peace
On 5/9/05, Chad Rosen <[EMAIL PROTECTED]> wro
Ok I'm going to reply to myself :)
Adding this check solved the problem for IE..
request.getParameter("updateCart.x") != null
However, I'd prefer to use the form.
Is this the preferred way?
Will this catch both the IE and Firefox submissions? Or should I do this?
From: "Chad Rosen" <[EMAIL PRO
7 matches
Mail list logo