aspose file tools*
The moose likes Servlets and the fly likes how to get servlet forward response ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to get servlet forward response ?" Watch "how to get servlet forward response ?" New topic

how to get servlet forward response ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
In my servelt coding, I need to go to another URL and get responses from that servlet in remote server.

the coding looks like this

String result = forward("");
// "" will send back a info

// continue
// notify user this forward has exception

I need to do this forward internally, not shown in browser.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Take a look at both

And the (higher level) libraries in:

There is nothing built into servlets for doing this kind of proxying.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: how to get servlet forward response ?
Similar Threads
Servlet Security Question
using jsp in the background
Problem About Java File Upload
call to sendRedirect() and getSession() after forward() throws IllegalStateException
How to use dynamically value by using <jsp:useBean> tag?