I would suggest reading the documentation:

http://struts.apache.org/2.x/docs/validation.html

If that doesn't help, I'd go for trial and error - that's how I usually
figure our XWork's validation. ;-)

Matt

On Fri, Apr 24, 2009 at 1:02 PM, Bini MukundanVisalakshy <
bini.mukundanvisalak...@doj.ca.gov> wrote:

> So on User-validation.xml  can i differentiate like ,all of the user fields
> on sign up page needs validation and set validation false for edit
> page-userfields? Is
>  there any settings i have to do on userlist.jsp?
> So can i do based on page name and fields? Now i can see the validations
> based on fieldnames. I am new to Xwork validation. Please let me know my
> understanding
>  is right or not. Then i can go ahead and find out. please let me know.
>
> Thanks,
> Bini
>
>
> >>> Matt Raible <m...@raibledesigns.com> 4/24/2009 11:47 AM >>>
> No, you should be able to modify that one.
>
> On Fri, Apr 24, 2009 at 12:44 PM, Bini MukundanVisalakshy <
> bini.mukundanvisalak...@doj.ca.gov> wrote:
>
> >
> > I have one validation xml file for signup page. I used the validation
> under
> > src/main/recources/groudid...../model/User-validation.xml.
> > Still do i have to run "appfuse:full- source"?.
> >
> >
> > >>> Matt Raible <m...@raibledesigns.com> 4/24/2009 11:32 AM >>>
> > If you don't have a SignupAction-validation.xml under your
> > src/main/resources directory, I'd recommend running "appfuse:full-source"
> > so
> > you do.
> >
> > Matt
> >
> > On Fri, Apr 24, 2009 at 12:28 PM, Bini MukundanVisalakshy <
> > bini.mukundanvisalak...@doj.ca.gov> wrote:
> >
> > > Struts2. I have used Struts2 Basic for starting.
> > >
> > > >>> Matt Raible <m...@raibledesigns.com> 4/24/2009 11:24 AM >>>
> > > Which web framework are you using?
> > >
> > > On Fri, Apr 24, 2009 at 12:16 PM, Bini MukundanVisalakshy <
> > > bini.mukundanvisalak...@doj.ca.gov> wrote:
> > >
> > > > Instead of capturing from registration screen.,i am just creating a
> > > random
> > > > username and default password behind the scene.
> > > > I have to create the Username and password based on some policy.so in
> > the
> > > > db username and password field are there. It is not displaying in
>  the
> > > jsp
> > > > pages.
> > > >
> > > > >>> Bini MukundanVisalakshy <bini.mukundanvisalak...@doj.ca.gov>
> > > 4/24/2009
> > > > 11:07 AM >>>
> > > > I  am using Appfuse 2.0.2 with Oracle as backend.
> > > > I have used the registration page(Signup.jsp) and created some
> records
> > in
> > > > the DB.
> > > > Now what i require is to create a search based on confirmation number
> > and
> > > > review that users.
> > > >
> > > > I have created the search page and i used the 'View user' to
> customize.
> > > > when i  clicks on username or firstname i am redirecting to the edit
> > page
> > > > where i displayed all user field in a read only mode that's what i
> > > > required.
> > > > I just need to apply some roles only.
> > > >
> > > > The problem is when i am clicking 'save' button from edit page , i am
> > > > getting the
> > > > messages."The confirm password has to have the same value as password
> > > > field, re -enter email address is required ,
> > > > re-enter email address has to have the same value as Email field".
> > > >
> > > > On the edit screen i am not displaying password and on the sign up
> page
> > > too
> > > > i am not capturing any password.
> > > >
> > > > The fields i  have on signup page  are like lastname, firstname,DOB,
> > > email
> > > > , re-enter emailaddress, contact phone etc.
> > > >
> > > > The fields i have displayed on edit pages are last name,
> firstname,DOB,
> > > > email, phone etc.
> > > >
> > > > I have commented all password checking conditons from Userlist.jsp.
> > still
> > > > it shows these validations.
> > > > on this page i don't need any validation for userfields . That's just
> > for
> > > > review(read only mode).
> > > >
> > > > Please let me know where do i have to change to get out of these
> > > validation
> > > > message.
> > > >
> > > > Thanks,
> > > > Bini
> > > >
> > > >
> > > >
> > > >
> > > > CONFIDENTIALITY NOTICE: This communication with its contents may
> > contain
> > > > confidential and/or legally privileged information. It is solely for
> > the
> > > use
> > > > of the intended recipient(s). Unauthorized interception, review, use
> or
> > > > disclosure is prohibited and may violate applicable laws including
> the
> > > > Electronic Communications Privacy Act. If you are not the intended
> > > > recipient, please contact the sender and destroy all copies of the
> > > > communication.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > > > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> > > >
> > > >
> > > >
> > > > CONFIDENTIALITY NOTICE: This communication with its contents may
> > contain
> > > > confidential and/or legally privileged information. It is solely for
> > the
> > > use
> > > > of the intended recipient(s). Unauthorized interception, review, use
> or
> > > > disclosure is prohibited and may violate applicable laws including
> the
> > > > Electronic Communications Privacy Act. If you are not the intended
> > > > recipient, please contact the sender and destroy all copies of the
> > > > communication.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > > > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> > > >
> > > >
> > >
> > >
> > > CONFIDENTIALITY NOTICE: This communication with its contents may
> contain
> > > confidential and/or legally privileged information. It is solely for
> the
> > use
> > > of the intended recipient(s). Unauthorized interception, review, use or
> > > disclosure is prohibited and may violate applicable laws including the
> > > Electronic Communications Privacy Act. If you are not the intended
> > > recipient, please contact the sender and destroy all copies of the
> > > communication.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> > >
> > >
> >
> >
> > CONFIDENTIALITY NOTICE: This communication with its contents may contain
> > confidential and/or legally privileged information. It is solely for the
> use
> > of the intended recipient(s). Unauthorized interception, review, use or
> > disclosure is prohibited and may violate applicable laws including the
> > Electronic Communications Privacy Act. If you are not the intended
> > recipient, please contact the sender and destroy all copies of the
> > communication.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >
> >
>
>
> CONFIDENTIALITY NOTICE: This communication with its contents may contain
> confidential and/or legally privileged information. It is solely for the use
> of the intended recipient(s). Unauthorized interception, review, use or
> disclosure is prohibited and may violate applicable laws including the
> Electronic Communications Privacy Act. If you are not the intended
> recipient, please contact the sender and destroy all copies of the
> communication.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to