Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing 2 parameters to servlet

 
Shobana Sukumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ur previous suggestions were useful.now if i need to pass 2 parameters to a servlet through a url (we generally pass 1 paramter along with the url of servlet with a question mark)like this....

ur1=new URL("http://localhost:7001/MyWebApp/F1?inputfilename=ip");

now if twoparamters are to be passed how to do that?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any subsequent parameter is appended by an ampersand character (&) , so the URL would be

... ?param1=value1¶m2=value2
[ November 25, 2005: Message edited by: Ulf Dittmer ]
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!