java - How to reuse the httpservlet request -


Hello there is a request continuously to do anyway? In my web application, I need to check how the user is checked in the check box, I get this value using Request.getPart ("Convert File"); After this I need to upload a user's file, but when I parse the request I get an empty value because the request has already been used. Is there any way around this issue? Like saving the request? Any help would be appreciated.

Use httpSession You can use an API such as:

 < Code> html session session = httpServletRequest.getSession (wrong); Session.setAttribute ("key", "value");  

And when the user revisits later, you can check the same attribute like:

  session.getAttribute ("key");  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -