| Author |
How to pass the parameter values to the servlets?
|
Narasimha Rao B.
Ranch Hand
Joined: Aug 26, 2002
Posts: 205
|
|
Hi, Can any of you explain how can i pass the parameter values to my servlet. One way to pass the parameter values to the servlet, when the servlet is called from the JSP page is -- Call the below method in the servlet, "request.getParameter("<parametername");" Now my doubt is , If i invoke my servlet directly from the browser, instead from JSP, how to pass the parameter values. Is there any way to specifiy the parameter values, for a particular servlet, in weblogic.properties. Like specifying the initparametervalues. I am using Bee Weblogic server 5.0 Thanks in Advance, Narasimha.
|
Narasimha
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
You will have to pass it as a query parameter i.e. to append the name value pairs to the URL. For e.g. http://localhost:7779/webapp/myservlet?name=pradeep
|
Groovy
|
 |
Narasimha Rao B.
Ranch Hand
Joined: Aug 26, 2002
Posts: 205
|
|
Hi Pradeep, Thanks a lot for your valuable input. Regards, Narasimha.
|
 |
 |
|
|
subject: How to pass the parameter values to the servlets?
|
|
|