File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes request dispatching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "request dispatching " Watch "request dispatching " New topic
Author

request dispatching

mahesh narayan
Ranch Hand

Joined: Aug 12, 2003
Posts: 41
Hi

I have a scenario where i need to get some data from pure old java object and forward the data to a php as a request.It would be helpful if someone could put some light on how to do this.

i tried using request.requestDispatcher(), but couldnt succeed.
I am running the php file on IBM http server and the servlet is in websphere app server.

any help on this would be appreciable

rgds
Mahesh
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
You can use sendRedirect(), add your data in the url as parameters.
mahesh narayan
Ranch Hand

Joined: Aug 12, 2003
Posts: 41
Thanks Adeel.

The amount of data that i need to forward to the php file is huge. Thus adding it in URL would create problems as GET allows only limited amount of data to be transfered. So how do i go about that.

rgds
mahesh
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
This thread might help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request dispatching