File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reference to a LABEL

 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've assigned a module for development using JSP,Servlet.I dont know how to proceed for the below:

A dropdwn list with LABEL MyHobbies and options: A,B,C.

Now the code should be as For MyHobbies there should be a name assigned which can be used as a reference to MyHobbies label.
I should refer to that refernce in my program to check which one of 3 (A,B,C)values is selected.

Where and how should I set reference to a LABEL?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The label element has nothing to do with finding out which value was selected in a select control. On the page, the value attribute of the control will yield the current selection; after submission, the value of the control will be submitted using the name attribute assigned to the control.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic