aspose file tools*
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 Spring in Action this week in the Spring 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can I send data with a hyperlink?