File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Forwarding data after processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding data after processing" Watch "Forwarding data after processing" New topic

Forwarding data after processing

Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
Hi FOlks,
Been grappling with this requirement and need some help..
I got a form on website, with say, name and password
Its submit will take me to a jsp, which should process the name and password and then forward the data to which expects to receive the data in the same form as if the form.html had action as the presence of intercept.jsp should ne unknown to the user who should beleive that he is on
Sounds malicious ? Its not.. Just a requirement to pass form data to another collecting url before posting by
Thanks !
[This message has been edited by Mak Bhandari (edited June 27, 2001).]
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
Anybody ??? I need some ideas !
Zkr Ryz
Ranch Hand

Joined: Jan 04, 2001
Posts: 187
Probably using javascript.
Once you have read and process the request parameters in intercep.jsp you write a form with the values and then post it using javascript form method : submit.
Im assuming your form is using POST method
Something like:

I hope it works, because I've never use it )
But you can always try dont you ???
By the way if this works, let me know so I can use it also.
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
Jeez.. that was so elegantly simple !! It worked like a charm.
Thanks for your help !!!
I agree. Here's the link:
subject: Forwarding data after processing
It's not a secret anymore!