Re: [Validator] Client-side works, but not server-side

2002-12-29 Thread Michelle Wynn

I assume you are only getting nothing when the server side validation
fails.  If you are getting nothing when the validation doesn't fail that is
another problem.

If it is the former, I suspect your problem is related to your input
parameter in the action mapping.  I had a similar situation (blank screen
when server side validation failed and javascript was turned off).  Turned
out Input was set to an invalid path, once it was corrected, it worked like
a charm.




   
   
  "Matt Raible"
   
   
  ns.com>  cc: 
   
   Subject:  [Validator] Client-side 
works, but not server-side   
  12/29/2002 05:58 
   
  PM   
   
  Please respond to
   
  "Struts Users
   
  Mailing List"
   
   
   
   
   




I have the following defined in validation.xml:

  

  
  
  

  
  

  

And this works great for prompting me with client-side validation, but
when I turn off Javascript to test server-side validation, I get
nothing.  Any ideas?  I'm using inputForward="true" on my ,
but I changed to be a regular path to "/editProfile.do" and still I get
no server-side validation.  Here is my action-mapping:



Any ideas?  I'm fairly confident that I have things configured
correctly, as the client-side validation works.  Suggestions are
appreciated.

Thanks,

Matt






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Validator] Client-side works, but not server-side

2002-12-30 Thread Matt Raible <[EMAIL PROTECTED]>
Actually, I'm not getting the famous Struts blank screen of
nothingness, but rather, it seems that validation is just not kicking
in - it routes me to my success page.

I am using the forwardInput="true" on my  element and have
the input specified as "editProfile" where my forward is below:



I've tried using the path instead (input="/userProfile.do") and it
doesn't seem to work either.  I'm sure it's something simple, I just
can't seem to figure it out right now.

Thanks,

Matt

--- In [EMAIL PROTECTED], "Michelle Wynn" <[EMAIL PROTECTED]> wrote:
> 
> I assume you are only getting nothing when the server side validation
> fails.  If you are getting nothing when the validation doesn't fail
that is
> another problem.
> 
> If it is the former, I suspect your problem is related to your input
> parameter in the action mapping.  I had a similar situation (blank
screen
> when server side validation failed and javascript was turned off). 
Turned
> out Input was set to an invalid path, once it was corrected, it
worked like
> a charm.
> 
> 
> 
> 
>
  
>   "Matt Raible"
  
>
>   ns.com>  cc: 
  
>Subject:  [Validator]
Client-side works, but not server-side   
>   12/29/2002 05:58 
  
>   PM   
  
>   Please respond to
  
>   "Struts Users
  
>   Mailing List"
  
>
  
>
  
> 
> 
> 
> 
> I have the following defined in validation.xml:
> 
>   
> 
> depends="required,email">
>name="required"
> key="errors.required"/>
>name="email"
> key="errors.email"/>
> 
>   
>   
> 
>   
> 
> And this works great for prompting me with client-side validation, but
> when I turn off Javascript to test server-side validation, I get
> nothing.  Any ideas?  I'm using inputForward="true" on my ,
> but I changed to be a regular path to "/editProfile.do" and still I get
> no server-side validation.  Here is my action-mapping:
> 
>name="userForm" scope="session" input="/userProfile.do"
>   parameter="action" unknown="false" validate="true"/>
> 
> Any ideas?  I'm fairly confident that I have things configured
> correctly, as the client-side validation works.  Suggestions are
> appreciated.
> 
> Thanks,
> 
> Matt
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: