• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve the value of a label in JSP

 
Jolly Khanna
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I thought this was an easy one but I can't seem to find the anwser:
How can I retrieve the value of a label in a JSP page?
Thanks for your help!
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since it's a label, hence you don't use the <INPUT TYPE> tag to define it, I don't think it can be done. A possible solution is to change it to a disabled input field.


------------------
Bosun
SCJP for the Java� 2 Platform
 
Zkr Ryz
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are producing dinamically the label in the first page you may print the value in a <input> hidden field so it can be sended to the second page ant retrive it using request.getParameter() method.
 
Jolly Khanna
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great suggestions! But how would I maintain the relationship on the second page?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!