Simulate post method in a servlet

D

delph

Hello,

I have a JSP with a form. The action of the form is a servlet. in my
method doPost of my servlet, i want to redirect the client to a file
..fcc with the post data of my JSP. How can i do that? (i tried with
httpurlconnection, i have the good post data but but my client is not
redirect).

Thanks,

Delphine
 
E

enrique

At the doPost method, you can do either a forward or a redirect, and do
one of a couple of things to maintain the post data:

* use querystring params, or
* store session-scope data, if you can access the data server-side by
the time the fcc is sent to the client ( I don't know what an FCC is )

I hope that helps.
 
D

delph

Thanks for your reply.

A fcc file is a file that contains directives used when executing a
post operation on the fcc file. the directives are in the post data of
a http request, so i can't use the querystring params. this type of
file is used by SiteMinder.

how do you store session-scope data?
 
A

Andrea Desole

Use forward. The information in the request will be retained, and the
request will be sent to a new page. The disavantages are that the
destination page must be in your application, and you will not see the
destination url in the browser.
If that is not good for you, you can only build a new request copying
all the parameters from the old request, which can be a bit annoying.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top