Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
The validation is working fine. Thank u so much. I did a little mistake and
i found it.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 19, 2013 at 11:56 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> My StudentRegistrationAction-validation.xml is as below:-
>
>  http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>
> 
> 
>  
>   
>  
>Could not find error.admission.no
> !
>  
> 
> 
>  
>   
>Could not find
> error.admission.date
>  
> 
> 
>
>
>
> My jsp code is as below:-
>
> 
> 
>  onclick="displayCalendar(event,this)" size="15"
> name="primDet.admissionDate"/>
> 
>
> My student-reg.xml is as below:-
>
> 
>   "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
> "http://struts.apache.org/dtds/struts-2.3.dtd";>
>
> 
>
> 
> 
>
>
>
> 
>
>  
>   class="com.ymd.ums.interceptor.UMSInterceptor"/>
> 
>   
>  
> 
> 
>
> 
>
> 
> /error.jsp
> 
>
> 
>  result="error"/>
> 
>
>  class="com.ymd.ums.sm.sr.action.StudentRegistrationAction" method="execute">
>  name="success">/jsp/StudentManage/sr_personalDetails.jsp
>  >/jsp/StudentManage/sr_personalDetails.jsp
>   
> 
>
> 
>
> 
>
>
>
> This is the configaration i have. the validation is not working. please
> help?
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
> *
> *
>
>
> On Thu, Sep 19, 2013 at 11:46 PM, Dave Newton wrote:
>
>> Not enough information to help, obviously.
>>
>> Dave
>>
>>
>>
>> On Thu, Sep 19, 2013 at 2:06 PM, Yaragalla Muralidhar <
>> yaragallamur...@gmail.com> wrote:
>>
>> > I am not using struts tags.
>> >
>> > *Thanks and Regards,*
>> > Muralidhar Yaragalla.
>> > *
>> > *
>> >
>> >
>> > On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar <
>> > yaragallamur...@gmail.com> wrote:
>> >
>> > > Hi I am using struts2. I have craeted xx-validation.xml in the same
>> dir
>> > of
>> > > action class xx.java. I am not sure why this is happening? kindly
>> help?
>> > >
>> > > *Thanks and Regards,*
>> > > Muralidhar Yaragalla.
>> > > *
>> > > *
>> > >
>> >
>>
>>
>>
>> --
>> e: davelnew...@gmail.com
>> m: 908-380-8699
>> s: davelnewton_skype
>> t: @dave_newton 
>> b: Bucky Bits 
>> g: davelnewton 
>> so: Dave Newton 
>>
>
>


Re: validation not happening

2013-09-19 Thread Dave Newton
Not enough information to help, obviously.

Dave



On Thu, Sep 19, 2013 at 2:06 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> I am not using struts tags.
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
> *
> *
>
>
> On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar <
> yaragallamur...@gmail.com> wrote:
>
> > Hi I am using struts2. I have craeted xx-validation.xml in the same dir
> of
> > action class xx.java. I am not sure why this is happening? kindly help?
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> > *
> > *
> >
>



-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
My StudentRegistrationAction-validation.xml is as below:-

http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>


 
  
 
   Could not find error.admission.no
!
 


 
  
   Could not find
error.admission.date
 





My jsp code is as below:-






My student-reg.xml is as below:-


http://struts.apache.org/dtds/struts-2.3.dtd";>










 
 

  
 






/error.jsp







/jsp/StudentManage/sr_personalDetails.jsp
/jsp/StudentManage/sr_personalDetails.jsp
  








This is the configaration i have. the validation is not working. please
help?

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 19, 2013 at 11:46 PM, Dave Newton  wrote:

> Not enough information to help, obviously.
>
> Dave
>
>
>
> On Thu, Sep 19, 2013 at 2:06 PM, Yaragalla Muralidhar <
> yaragallamur...@gmail.com> wrote:
>
> > I am not using struts tags.
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> > *
> > *
> >
> >
> > On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar <
> > yaragallamur...@gmail.com> wrote:
> >
> > > Hi I am using struts2. I have craeted xx-validation.xml in the same dir
> > of
> > > action class xx.java. I am not sure why this is happening? kindly help?
> > >
> > > *Thanks and Regards,*
> > > Muralidhar Yaragalla.
> > > *
> > > *
> > >
> >
>
>
>
> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton 
> b: Bucky Bits 
> g: davelnewton 
> so: Dave Newton 
>


Re: validation not happening

2013-09-19 Thread Yaragalla Muralidhar
I am not using struts tags.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 19, 2013 at 11:32 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> Hi I am using struts2. I have craeted xx-validation.xml in the same dir of
> action class xx.java. I am not sure why this is happening? kindly help?
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
> *
> *
>


validation not happening

2013-09-19 Thread Yaragalla Muralidhar
Hi I am using struts2. I have craeted xx-validation.xml in the same dir of
action class xx.java. I am not sure why this is happening? kindly help?

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


Re: S2: Validation not happening

2009-10-01 Thread maestro
For sake of completeness, I have decided to drop the Validation.xml route
and go with the plain old java validation. Time is running, and so am I. :)

On Tue, Sep 29, 2009 at 1:06 PM, maestro  wrote:

> I have searched and compared to no avail.
> This one has been stumping me for some time now.
> I'm trying to use the validation.xml. I have it working on one page and not
> on the other.
>
> Perhaps you can spot the error?
>
> struts.xml
>
> 
>
>  class="ca.pan.crm.customer.UpdateAction">
> /WEB-INF/customer/update.jsp
>  type="redirectAction">customer.list
> /WEB-INF/customer/update.jsp
>  type="redirectAction">customer.list
> 
>
> 
>
>
> public class UpdateAction extends ActionSupport
> implements ModelDriven, Preparable, SessionAware {
>
> public String update() throws Exception {
>
> return SUCCESS;
> }
>
>
>
> UpdateAction-customer.update-validation.xml
>
> 
>   
>   
>${getText("msg.companyName.required")}
>   
>   
>  255
>  1
>  ${getText("msg.companyName.invalid.length")}
>  
>   
> 
>
>
> JSP
>  name="frmPost">
> ...
> 
> 
> *
>  name="text.colon"/>
>  maxlength="255"/>
> 
> 
>
>
> The only difference between the one that works and this one that doesn't is
> the fields referenced in validation xml are defined in the Action class
> whereas the ones in the example that doesn't work are defined in the
> Customer class.
>
> So I tried the validation.xml as follows without any success either.
>   
>
> Gimme anything you can think of!!!
>
>


S2: Validation not happening

2009-09-29 Thread maestro
I have searched and compared to no avail.
This one has been stumping me for some time now.
I'm trying to use the validation.xml. I have it working on one page and not
on the other.

Perhaps you can spot the error?

struts.xml




/WEB-INF/customer/update.jsp
customer.list
/WEB-INF/customer/update.jsp
customer.list





public class UpdateAction extends ActionSupport
implements ModelDriven, Preparable, SessionAware {

public String update() throws Exception {

return SUCCESS;
}



UpdateAction-customer.update-validation.xml


  
  
   ${getText("msg.companyName.required")}
  
  
 255
 1
 ${getText("msg.companyName.invalid.length")}
 
  



JSP

...


*






The only difference between the one that works and this one that doesn't is
the fields referenced in validation xml are defined in the Action class
whereas the ones in the example that doesn't work are defined in the
Customer class.

So I tried the validation.xml as follows without any success either.
  

Gimme anything you can think of!!!


Re: Form validation not happening

2006-07-04 Thread Vinicius Carvalho

Nope. I'm using the default commons-validator and strus libs shipped
with 1.2.9. And sorry but did not understand your XYZ example ?

Regards

On 7/3/06, Paul Benedict <[EMAIL PROTECTED]> wrote:

Make sure you're using the correct ValidatorXYZForm base class. 
ValidatorActionForm uses the key of the URI, ValidatorForm uses the key of the 
form name.

Did you recently upgrade Struts or the Validator?

Vinicius Carvalho <[EMAIL PROTECTED]> wrote: I did a deeper look on my project, 
enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my validate method on my class (gave up on validation using
xml) does not even get called...

Any ideas?

Regards

On 7/3/06, Vinicius Carvalho  wrote:
> Hello there! I'm trying to use form validation (It was working, but
> somehow, I messed something and it quit working). Here are my files:
>
> struts-config.xml
>
>
>
>
>
> type="com.acme.RegisterAction"  name="userForm"
> input="/registerScreen.do">
>
>

>
>
> property="pathnames"
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>
>
>

>
>
>
>
>
>
>
>
> My UserForm extends ValidatorActionForm!
>
> When the user submits, instead of returning to the input page and
> display the errors he's redirect to the action that deals with the
> register.
>
> Any ideas?
>
> Best regards
>

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




-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better.



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



Re: Form validation not happening

2006-07-03 Thread Paul Benedict
Make sure you're using the correct ValidatorXYZForm base class. 
ValidatorActionForm uses the key of the URI, ValidatorForm uses the key of the 
form name.

Did you recently upgrade Struts or the Validator?

Vinicius Carvalho <[EMAIL PROTECTED]> wrote: I did a deeper look on my project, 
enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my validate method on my class (gave up on validation using
xml) does not even get called...

Any ideas?

Regards

On 7/3/06, Vinicius Carvalho  wrote:
> Hello there! I'm trying to use form validation (It was working, but
> somehow, I messed something and it quit working). Here are my files:
>
> struts-config.xml
>  
> 
> 
>
>  
> type="com.acme.RegisterAction"  name="userForm"
> input="/registerScreen.do">
>
> 

>
> 
> property="pathnames"
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   
>
> 

> 
> 
> 
> 
> 
> 
> 
>
> My UserForm extends ValidatorActionForm!
>
> When the user submits, instead of returning to the input page and
> display the errors he's redirect to the action that deals with the
> register.
>
> Any ideas?
>
> Best regards
>

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




-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better. 

Re: Form validation not happening

2006-07-03 Thread Vinicius Carvalho

I did a deeper look on my project, enabled debug output and even
though on the log it says that the requestprocessor is calling
validate, my validate method on my class (gave up on validation using
xml) does not even get called...

Any ideas?

Regards

On 7/3/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:

Hello there! I'm trying to use form validation (It was working, but
somehow, I messed something and it quit working). Here are my files:

struts-config.xml
 



 




  










My UserForm extends ValidatorActionForm!

When the user submits, instead of returning to the input page and
display the errors he's redirect to the action that deals with the
register.

Any ideas?

Best regards



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



Form validation not happening

2006-07-03 Thread Vinicius Carvalho

Hello there! I'm trying to use form validation (It was working, but
somehow, I messed something and it quit working). Here are my files:

struts-config.xml


   





   
 










My UserForm extends ValidatorActionForm!

When the user submits, instead of returning to the input page and
display the errors he's redirect to the action that deals with the
register.

Any ideas?

Best regards

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