Results 1 to 2 of 2
  1. #1
    shandi is offline Member
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Default How to retrive a string array data from a session

    Hi All,

    I am new to java. I am doing a project and stuck up in a small thing.
    I have a multiple drop down box and i am getting the selected values this way:

    Java Code:
    String account[] = request.getParameterValues("account");
    And now i am setting this in a session:

    Java Code:
    request.getSession().setAttribute("accountname", account);
    Now i having problem in fetching the session value.
    I tried using an arraylist and a normal string. But its not working.

    Can any one tell me how do i fetch these session value???

    Thanks in advance :)

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,942
    Rep Power
    19

    Default

    Describe "not working".
    Errors, exception traces, the line it isn't working on...

Similar Threads

  1. create a 2d char array from a 1D string array
    By jschmall12 in forum New To Java
    Replies: 1
    Last Post: 04-27-2010, 09:01 PM
  2. Convert Char Array to String Array
    By Mayur in forum New To Java
    Replies: 8
    Last Post: 10-12-2009, 11:41 AM
  3. Retrive from DB
    By Dileep in forum JDBC
    Replies: 12
    Last Post: 09-25-2009, 09:58 AM
  4. [SOLVED] persisting session data across shutdowns
    By Nicholas Jordan in forum Java Servlet
    Replies: 0
    Last Post: 06-27-2008, 07:18 PM
  5. Replies: 1
    Last Post: 08-03-2007, 10:52 AM

Posting Permissions

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