This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes href and submit differences Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "href and submit differences" Watch "href and submit differences" New topic

href and submit differences

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
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

Joined: Nov 08, 2001
Posts: 15376
Get verus Post

Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Steve,

Your servlet can also add parameters and their values to the url:

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

[ May 21, 2007: Message edited by: Herman Scheltinga ]
I agree. Here's the link:
subject: href and submit differences
Similar Threads
calling post method
sendRedirect as POST
Form submitting
How to change data from a web form into database
Submit the form