This issue is related to my other "issue" with the ModelDriven interface.
I hope this code:
public void setAttribue(String attr)
{
this.attribute = attr;
}
Is a typo? If not, this is why your attribute is not being set in your
action class.
Also, since you are forwarding to the same page regardless of success,
failure and input... are you sure it is actuall
I put my validation code in the validate() method and use addFieldError().
To avoid validation to be performed on initial form display, I made a
mapping like this:
bookedTiles
reservationTiles
errorTiles
and call the action "reservation_input". Struts knows then that it
should not perfor
EMAIL PROTECTED]
Sent: Saturday, June 09, 2007 2:49 PM
To: Struts Users Mailing List
Subject: Re: Programmatic Validation in Action
--- Matt Luce <[EMAIL PROTECTED]> wrote:
> Has anyone attempted to use programmatic validation in Struts 2?
Sure, although I still used the validation interfaces.
--- Matt Luce <[EMAIL PROTECTED]> wrote:
> Has anyone attempted to use programmatic validation
> in Struts 2?
Sure, although I still used the validation interfaces.
What does your mapping look like?
d.
_
5 matches
Mail list logo