Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I send data with a hyperlink?  RSS feed

 
Ghazala Islam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!