aspose file tools*
The moose likes Struts and the fly likes regarding session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding session" Watch "regarding session" New topic
Author

regarding session

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
hi,

How to get session value in validator-rules.xml using struts 1.1 please help me
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

What you want to achieve with that ?
validator-rules.xml define the rules the way various validator works in the project.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding session