You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaragalla Muralidhar <ya...@gmail.com> on 2015/02/17 16:05:35 UTC
problem in xml validation
Hi,
I have written AddTestAction.class and placed
AddTestAction-validation.xml file in the same package. but the field
validations are not happening. i have written int validators. Instead
showing validation errors the browser is displaying page not found. if i
remove validation xml file everthing is working fine. what could be the
problem?
do i need to paste the code?
*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
RE: problem in xml validation
Posted by Martin Gainty <mg...@hotmail.com>.
> Date: Tue, 17 Feb 2015 21:07:03 +0530
> Subject: Re: problem in xml validation
> From: yaragallamurali@gmail.com
> To: user@struts.apache.org
>
> No dave. It is because in the same Action class i have a validate method.
> So in this method if validation fails it is showing "inpu" jsp with the
> errors.
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
MG>where is the action java class that dave asked for?
MG>if you have any backing beans..display those as well?
MG>where is web.xml?
MG>where is struts.xml?
MG>where is the jsp you expect to display?
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>
> On Tue, Feb 17, 2015 at 9:03 PM, Dave Newton <da...@gmail.com> wrote:
>
> > ... If you want any help, you need to provide actionable information.
> >
> > My first guesses are that you're either missing an `input` definition, or
> > its JSP page isn't where you think it is.
> >
> > On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar <
> > yaragallamurali@gmail.com> wrote:
> >
> > > Hi,
> > > I have written AddTestAction.class and placed
> > > AddTestAction-validation.xml file in the same package. but the field
> > > validations are not happening. i have written int validators. Instead
> > > showing validation errors the browser is displaying page not found. if i
> > > remove validation xml file everthing is working fine. what could be the
> > > problem?
> > >
> > > do i need to paste the code?
> > >
> > > *Thanks and Regards,*
> > > Muralidhar Yaragalla.
> > >
> > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> > >
> >
> >
> >
> > --
> > e: davelnewton@gmail.com
> > m: 908-380-8699
> > s: davelnewton_skype
> > t: @dave_newton <https://twitter.com/dave_newton>
> > b: Bucky Bits <http://buckybits.blogspot.com/>
> > g: davelnewton <https://github.com/davelnewton>
> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> >
Re: problem in xml validation
Posted by Yaragalla Muralidhar <ya...@gmail.com>.
No dave. It is because in the same Action class i have a validate method.
So in this method if validation fails it is showing "inpu" jsp with the
errors.
*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
On Tue, Feb 17, 2015 at 9:03 PM, Dave Newton <da...@gmail.com> wrote:
> ... If you want any help, you need to provide actionable information.
>
> My first guesses are that you're either missing an `input` definition, or
> its JSP page isn't where you think it is.
>
> On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar <
> yaragallamurali@gmail.com> wrote:
>
> > Hi,
> > I have written AddTestAction.class and placed
> > AddTestAction-validation.xml file in the same package. but the field
> > validations are not happening. i have written int validators. Instead
> > showing validation errors the browser is displaying page not found. if i
> > remove validation xml file everthing is working fine. what could be the
> > problem?
> >
> > do i need to paste the code?
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
>
>
>
> --
> e: davelnewton@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton <https://twitter.com/dave_newton>
> b: Bucky Bits <http://buckybits.blogspot.com/>
> g: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>
Re: problem in xml validation
Posted by Dave Newton <da...@gmail.com>.
... If you want any help, you need to provide actionable information.
My first guesses are that you're either missing an `input` definition, or
its JSP page isn't where you think it is.
On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar <
yaragallamurali@gmail.com> wrote:
> Hi,
> I have written AddTestAction.class and placed
> AddTestAction-validation.xml file in the same package. but the field
> validations are not happening. i have written int validators. Instead
> showing validation errors the browser is displaying page not found. if i
> remove validation xml file everthing is working fine. what could be the
> problem?
>
> do i need to paste the code?
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>
--
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>