Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginning java (servlets) questions

Status
Not open for further replies.

ja0va00

Technical User
Feb 9, 2001
5
US
I have 3 java questions and I would be grateful if anybody will answer them.

1.)In an Java servlet, how do you pass the input parameters (sent to servlet with HTTP POST method and extracted by req.getParameter() ) to another java class in another file. Is the request.forward() method the way? (but this forwards info another servlet). If not what is the way to do it?
basically I want to get the input parameters from the servlet, pass it to another java file and set them as variables.

2.) how do I run a java servlet and a java class together. Its related to the above question. I want to take servlet input, pass it to another file, which performs some operations on them and prints result out to the monitor?

3.) how do I send the returned parameters to a cgi script? with http post method?

thanks
ja0va00
 
> I want to take servlet input, pass it to another file, which performs some operations

Files don't perform operations.

> and prints result out to the monitor

What does that mean?

State you questions clearly. Without understanding the problem, offering a solution is difficult.

> how do I send the returned parameters

That is really confusing. If the [out] parameters are returned, why do you need to send them somewhere?

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top