All Questions
Tagged with forwarding servlets
14
questions
1
vote
0
answers
371
views
Servlet forward() from POST to GET
I'm using a simple servlet that receives a POST request and forwards it to another servlet that expects a GET request.
I'm aware as original HtppServletRequest is having POST as it's method, thus it's ...
0
votes
0
answers
244
views
Is it possible to forward WebSocket streams inside Java Servlet?
I have a Java Servlet that is a web application firewall. It forwards all legitimate traffic to the backend application it protects in a very simple way:
for (int length = 0; (length = input.read(...
1
vote
0
answers
430
views
How to forward session through two servlets to jsp?
I am trying to to forward data typed by user and inserted on Database from the servlet responsable to insert data to database to the servlet that displays the database results to finally display it ...
1
vote
0
answers
1k
views
Java- Servlet - redirecting request with a new body
I'm writing a Servlet in Java, that basically, gets a request with a XML in the Requests body, and then changes a few things in the XML and redirect/foreword the request with The new XML to a ...
1
vote
2
answers
555
views
Is there a way to forward a POST as a GET?
I know that a forward preserves everything, including the method. But is there a way around forwarding a POST as a GET?
I.e. is there a way to make the forward below become a GET so that the page to ...
0
votes
2
answers
3k
views
different url after calling a servlet [duplicate]
I have A servlet that does some stuff, when it has done puts some things in the request and after calls another servlet which in turn calls a jsp page.
I write the code:
first servlet (...
2
votes
2
answers
9k
views
embedded jetty forward from servlet to jsp
Im try to get my embedded jetty servlet to do some processing and then pass control over to a JSP which will generate a result page.
The servlet gets mapped and called correctly however it fails to ...
1
vote
1
answer
3k
views
Embedded Jetty forward servlet response to JSP
Using Embedded Jetty I am trying to get a very simple servlet to forward to JSP page once the servlet doGet() has executed. However instead of reaching the JSP it simply recursively forwards to the ...
-1
votes
1
answer
2k
views
getting HTTP Status 500 when location href or when forwarding from Servlet?
I get this error:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache....
2
votes
1
answer
5k
views
How to know when the request is forwarded in a RequestWrapper object
I am using a subclass of HttpServletRequestWrapper to do some translations on the request parameters, and I cache the translated values the first time they are requested. For example, the first time ...
0
votes
2
answers
2k
views
Adding a servlet filter that wraps the request into a HttpServletRequestWrapper seem to break page forwading
I'm having issues getting servlet forwarding to work when the request have been wrapped by a HttpServletRequestWrapper.
This is a server-side equinox application, running from within Eclipse using ...
2
votes
1
answer
9k
views
Does <jsp:forward> or RequestDispatcher.forward use GET or POST?
The question is in the title: Does <jsp:forward> or RequestDispatcher.forward use GET or POST to do its thing?
If it uses one, can I always count it will be that one or can this vary from ...
0
votes
1
answer
852
views
can we do getwriter and forward in a single servlet
Lets say my form called a servlet. I would do some processing in it. In the servlet i want to print something on the page. for that i used
PrintWriter out=response.getWriter();
out.println("some ...
1
vote
3
answers
5k
views
forward from servlet in higher directory to jsp in subfolder
i have
root/logged/form.jsp
root/servlet
root/logged/form.jsp
I have jsp page logged/form.jsp this submits form to servlet action="../update". Now i want to add some parameters to request and ...