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?.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?.
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.