This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

help wanted on this on-line bidding problem about servlet  RSS feed

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a on-line bidding program, for example I have the following screen dispaly:
IBM desktop model xxx1
IBM desktop model xxx2
IBM desktop model xxx3
IBM desktop model xxx4
Dell desktop model xxx5
All of these items on the screen are hyperlinks to one same servlet. The purpose of the servlet is to check which item the user clicked, and then display corresponding description about the item. My problem is how the servelt know which hyperlink the user clicked on the screen? How should I program it?
Thanks

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I think you have to write your hyperlinks with a query string as shown below.
<a href=http://localhost:8080/servlet/BiddingServlet?name=IBMDES1> IBM DESKTOP ONE </a><br>
<a href=http://localhost:8080/servlet/BiddingServlet?name=IBMDES2> IBM DESKTOP TWO </a>
I don't know whether it works or not .

 
david hu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot! I'll try your code to see whether it works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!