Forum Moderators: phranque

Message Too Old, No Replies

Simulating submitting two forms from a single servlet

         

cacaman

3:55 am on Jul 18, 2003 (gmt 0)



Perhaps this isn't the best area for this question, but I couldn't find a better place.

Currently I have a setup where an html form 'a' submits to servlet 'A', which redirects the user to page 'b'.

I need to change this to something where 'a' submits to servlet 'B', which itself simulates a submit to servlet 'A' and then redirects to 'b' (ie B submits to A, A's redirect is ignored, B redirects user to b). I'm guessing that from servlet B I need to somehow build my own Request or Response object, redirect it to A, and then redirect the user's response object to b. Unfortunately, if this even is the right route to take, I can't figure out how to construct my own request/response... Any suggestions? I can be more specific with th details if need be.

Any help is appreciated. Thanks.

DaveAtIFG

3:56 pm on Jul 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld cacaman! :) We're pleased to have you join us.

Unfortunately, we usually struggle to answer Java related questions, not too many Java wizards in our memebrship I suspect. If nobody provides any useful suggestions, a search of Sun's Java Programming Archive [forum.java.sun.com] or a post in their Java Programming Forum [forum.java.sun.com] may prove helpful.