| Author |
how do i send a filled in form with a hyperlink to my servlet?
|
Gunther Wils
Greenhorn
Joined: May 05, 2012
Posts: 8
|
|
Hello this is my first time on this forum and if some one could help me i would be very gratefull
For school i got to make a little project
and my problem is that i have a form and i need to be able to send the filled in value with a hyperlink to go to my servlet
i know how to put a value in a link but how can i put all of the filled in values in the textboxes and dropdown lists to go with a hyperlink
|
 |
Piyush Mangal
Ranch Hand
Joined: Jan 22, 2007
Posts: 196
|
|
|
You can write a java script function which submits the form to your servlet, You can then call this java script function when you click on hyperlink link.
|
 |
Gunther Wils
Greenhorn
Joined: May 05, 2012
Posts: 8
|
|
Piyush Mangal wrote:You can write a java script function which submits the form to your servlet, You can then call this java script function when you click on hyperlink link.
that sounds good but i dont know javascript
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
Well if you don't want to learn something new, then you're out of luck.
Why does it have to be a link? A submit button on the form will submit the data automatically.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Gunther Wils
Greenhorn
Joined: May 05, 2012
Posts: 8
|
|
well, the form contains data i got from a database, put in a arraylist and shown in the form whit a for, so the user can update every data seperatly
if i use a button it would send all the data from the form to update, while i only want the piece of data that needs to be updated
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
|
To pick and choose only select parts of the form to submit will require JavaScript.
|
 |
Gunther Wils
Greenhorn
Joined: May 05, 2012
Posts: 8
|
|
|
ok then there is no other way, are there any javascript tutorials/guides on this forum?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
I've moved this post to the HTML/JavaScript forum as it's not about JSP.
But you're not going to learn JavaScript from a forum. You can get help with particular problems here, but you'll need to find a tutorial or grab a good book to get started.
If you want to go the book route I recommend Head First JavaScript or JavaScript: The Good Parts.
|
 |
Gunther Wils
Greenhorn
Joined: May 05, 2012
Posts: 8
|
|
|
ok thank you for all the help
|
 |
 |
|
|
subject: how do i send a filled in form with a hyperlink to my servlet?
|
|
|