This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes How can I send data with  a hyperlink? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can I send data with  a hyperlink?" Watch "How can I send data with  a hyperlink?" New topic
Author

How can I send data with a hyperlink?

Ghazala Islam
Ranch Hand

Joined: Nov 22, 2000
Posts: 73
Hi all,
If there are no fields on html page just hyperlinks
are there,if I want to send some data with hyperlink which is calling a servlet,how can I send it?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
You would code your URL's as:
../MyServlet?myParm1=value1&myParm2=value2...
Then you can retrive the parameters from within the doGet() of MyServlet.
James.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I send data with a hyperlink?
 
It's not a secret anymore!