• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding session

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

How to get session value in validator-rules.xml using struts 1.1 please help me
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you want to achieve with that ?
validator-rules.xml define the rules the way various validator works in the project.
 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I have to set the date format in validation-rule.xml from session or any other way please help me
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
santhosh kumar vk wrote:I have to set the date format in validation-rule.xml from session or any other way please help me

That is not possible. Even if you edit the xml on the fly, you need to restart the server to take that effect. Its certainly not the smarter/recommended way. You have to think some other way, don't use Struts validator plugin if you want to validate date as per the user wish. Use Javascript instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic