Forums Register Login

RequestDispatcher.forward or Response.sendRedirect?

+Pie Number of slices to send: Send
Hi,

I am kinda write a file upload Application where the User gives the input file and the Servlet uploads it and now i want to transer the control back to the JSP allowing more files to be uploaded.
What should i use. RequestDispatcher.forward("UserTasks.jsp") or response.sendRedirect("UserTasks.jsp");
Also when i try using response.sendRedirect i keep on getting this error:=

java.net.SocketException: Software caused connection abort: socket write error

My jsp page is in the Application root directory and the servlet classes are in root\web-inf\classes directory..
+Pie Number of slices to send: Send
If the JSP page is within the same application use RequestDispatcher.forward
Your mind is under my control .... your will is now mine .... read this tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 898 times.
Similar Threads
How to use Request Dispatcher
Easy question for gurus
Peculiar problem with js and css file
difference between sendRedirect and forward of Requestdispatcher
Struts2 redirect...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:47:50.