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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -