Hi

What IDE are you using? Have you tried cleaning up your app and rebuilding?

On Nov 27, 2007 6:29 PM, Bionicoder <[EMAIL PROTECTED]> wrote:
>
> Hi Ted,
>
> Thanks for reply. Actually there is no validation XML for list method. Also
> I delete validation XML files for other method too. However the validation
> still take effect. that is the thing confuse me.
>
> Thanks again,
>
> BC
>
>
>
> Ted Husted wrote:
> >
> > How is the validation for the list alias being declared? Is there also
> > an XML file?
> >
> > -Ted.
> >
> > On Nov 27, 2007 3:16 AM, Bionicoder <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> I want to disable validation for certain Struts 2 method. For example, in
> >> the following action class,
> >>
> >> public class CustomerAction extends ActionSupport  {
> >>        private Customer customer;
> >>
> >>        public String input() {
> >>              return INPUT;
> >>        }
> >>
> >>        public String save() {
> >>              return SUCCESS;
> >>        }
> >>
> >>        @SkipValidation
> >>        public String  list() {
> >>              List l = new ArrayList();
> >>              l = getCustomerList();
> >>
> >>              return "list";
> >>        }
> >>
> >>        public String execute() throws Exception {
> >>                 return SUCCESS;
> >>         }
> >>
> >> }
> >>
> >> I want to disable validation for 'list' method. However, the validation
> >> still takes effect. The symptom is if there is no input in the form
> >> before
> >> clicking "List" button to execute 'list' method, it will return to
> >> 'INPUT"
> >> result which is not what I want. If there is some input, for example,
> >> checking a checkbox before clicking the 'List" button, then it will run
> >> into
> >> 'list" method and give a right result.
> >>
> >> Obviously, it still try to validate before executing 'list' method even
> >> there is @SkipValidation annotation. Has anybody come cross the similiar
> >> problem before? The struts version is 2.0.9.
> >>
> >> Thanks!
> >>
> >> BC
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/S2%3A-Struts2-%40SkipValidation-does-not-work-tf4880341.html#a13979133
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to