Results 1 to 3 of 3

Thread: Validator needs Session Object

  1. #1
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    17

    Default Validator needs Session Object

    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

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Take a look at this thread.

  3. #3
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    17

    Default

    Thanks!

    byebye
    lana

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. OpenSessionInView + CMT Session usage
    By alesj in forum Data
    Replies: 7
    Last Post: Aug 16th, 2005, 02:32 AM
  3. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  4. Detaching an object from a session in Spring?
    By andrew_null in forum Web
    Replies: 2
    Last Post: Mar 26th, 2005, 03:51 AM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •