This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

href and submit differences

 
Steve Dyke
Ranch Hand
Posts: 1643
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to use the href to open a servlet from a JSP. I could not get the servlet to recognize the form attributes. Is the only way to get them to be read is use the submit button for the form?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get verus Post

Eric
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Steve,

Your servlet can also add parameters and their values to the url:
http://myserver/myapplication?parameter1=OK

Your servlet then can read the parameter: request.getParameter("parameter1")

Herman
[ May 21, 2007: Message edited by: Herman Scheltinga ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic