Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts validator framework-validwhen

 
Abhijit Sarkar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For long I've been trying to use the validwhen validation from Struts framework but never got it working, Can anyone help me by showing a piece of working code which uses validwhen?
Thanking in anticipation.
 
Ravi Seshu
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
validation show be called or must set in action mapping...ok

by default validation is set to true only, so..., u can invoke it in action class taking the form bean object validate method...

-eswar
 
Abhijit Sarkar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm not sure you understood my problem-I'm using Struts own validator framework. Hence neither any validation coding is required in the action class nor the validate method of the concerned form bean is required. To add, all other validations are working fine except the validwhen.
 
Abdul Gafoor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I attached work this one
 
Abdul Gafoor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will attach working code. please send me your mail id.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic