The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Reading parameters in Servlet passed in from Client

Posted by Ashwin Tadepalli on February 08, 2001 at 3:26 PM

Hi;
I have a question regarding passage of parameters from the command prompt to my servlet which reads in HTTP parameters.I am reading in the parameters from a client program and then calling the servlet(from the command prompt using URL class).The servlet inturn takes in the paramaters,does the database work and gives out the result in the console.The servlet works pretty well if I hard code the servlet parameters in the servlet itself,but my question here is:-
How to read the parameters passed from the client program in the servlet code?Is there any way I got retrieve those parameters. Details:-
My client(client program):-Command prompt(MS DOS) My server(servlet):-Visual Age 3.5(Web Sphere Test Environment) Thanking You
Ashwin





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us