A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Web Component Certification (SCWCD/OCPJWCD)
Sending request through links
Joined: Jun 19, 2003
Jan 02, 2006 22:32:00
I have one link (hyperlink). I want that link to act as a request to
. So that further processing of the data can be carried on. Please let me know how can i do so.
Right now through submit buttons only I am able to send the request and not through the links.
Is there any way I can send the request as
action="http://localhost:7001/Myservlet" in a hyperlink.
Thanks and Regards,
Joined: Feb 05, 2003
Jan 03, 2006 17:13:00
Simply set that url as href on the hyperlink's anchor. Clicking the link will then send a request to that url.
A good workman is known by his tools.
Joined: Nov 24, 2005
Jan 03, 2006 18:08:00
Don't forget to implement the doGet method if you're submitting via a link.
All roads lead to JavaRanch
Joined: Nov 15, 2004
Jan 03, 2006 21:30:00
<a href="http://localhost:7001/MyApp/Myservlet?a=5&b=10">Send Info</a>
Here 'a' and 'b' are the Query
[ January 03, 2006: Message edited by: Vishnu Prakash ]
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1
JSTL Tag Documentation
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Sending request through links
reading a hyperlink innerhtml value
Mikalai Zaikin's SCBCD Guide ...
retrieving values from url rewritting in jsp
Knowning which link was clicked (take 2)
Servlet Invocation problem through Hyperlinks
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013