PDA

View Full Version : Validator needs Session Object


lanala
05-13-2005, 08:28 AM
hi!

I have a form (simpleFormController) for adding new directories to a tree. My Validator checks if the user input (text field for the name of new directory + parent directory to choose) is valid - but therefor the validator needs access to the session where the user id is stored for checking if there already exits the choosen dir-name. how can i access the session from the validator class?

in the controller class I access by request.getSession.getAttribute("asdf");

tia, lana

Aleks Seovic
05-15-2005, 06:00 PM
I believe this post should be on the Spring Java forum.

- Aleks

lanala
05-16-2005, 10:33 AM
for sure, sorry!

lana