When a form is submitted with the enctype as 'multipart/form-data', how should the form data be handled in a servlet?
- This is not supported in servlets
- Use a library like Apache FileUpload
- Use the getInputStream()
- Use the getParameter()
When a form is submitted with the enctype as 'multipart/form-data', the form data should be handled using a library like Apache FileUpload for efficient processing of multipart data in servlets.
Loading...
Related Quiz
- To maintain a separation of concerns, servlets in MVC should not directly manipulate the __________.
- What is the function of FilterMapping in a web application?
- How can you avoid concurrency issues in a servlet without using synchronization?
- When implementing CSP, the _________ directive is crucial in restricting resources the page can load.
- In what scenario is it more appropriate to use RequestDispatcher over HttpServletResponse's sendRedirect?