Menu

accessing session vaules of the jsps(urgent!)

Anonymous
2002-01-01
2002-04-19
  • Anonymous

    Anonymous - 2002-01-01

    hi,
    i have a form which when submitted calls a jsp.the jsp first checks for a particular session object value and then proceeds.
    how do i set a value to the session object while testing the jsp using httpunit?.

     
    • Mike

      Mike - 2002-04-19

      HttpUnit is client side.  You can't set session values from HttpUnit, because you do not have access to the server (except via the HTTP request and response).  The JSP page or servlet you are testing should set the session value(s) on the server side.  If the session value is not getting set, it is probably because you are not hitting the page or servlet that sets it before hitting the page that tries to read the value.

       

Log in to post a comment.

Monday.com Logo