Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How would I forward parameters in a servlet?

Posted on 2010-11-15
6
Medium Priority
?
273 Views
Last Modified: 2012-05-10
Currently I have a servlet which stores some data into a database. I intend for it to forward the user afterwards to some other website depending on a parameter sent to the servlet. The problem is I can't get it to forward the parameters or don't know how rather.

Example:
Site A = The Servlet which stores data
Site B = The Other Company they do what they want with the data
Site C = The form which passes parameters to Site A


Site C ---> Site A (parameters) -----> Site B (same parameters as Site A)

It would not be to hard to redirect the user if I was just using get. However, I'm using get or post and need to have the ability to send get or post.
0
Comment
Question by:richardsimnett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 34140851
you can only redirect sorry, and you cannot redirect a post
so you'll need to either redirect using a GET
or make the POST request direct and return results yourself to caller
0
 

Author Comment

by:richardsimnett
ID: 34140856
I forgot to mention that it must work across more than one domain... Site A http://www.a.com Site B http://www.b.com Site C http://www.c.com
0
RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

 
LVL 92

Expert Comment

by:objects
ID: 34140870
> I forgot to mention that it must work across more than one domain...

doesn't really change things, you're still stuck with doing a redirect
0
 

Author Closing Comment

by:richardsimnett
ID: 34140877
Okay
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34140895
Sorry - i missed the bit about the POST
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question