I am using strutstestcase for testing my web application on struts 1.2. When test runs and control goes to my action the request.getSession(false), i called in my action, returns null.
could Anyone one help me what i am missing?
The problem was at my end. I am calling request.getSession(false)
which returns null if session is not exist. request.getSession()
gives me session and code works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.