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
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