• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access hidden property in jsp

 
shabarish vai
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have a property where i'll set some true/false value to that property in action class and forward to jsp, now based on that property value i'll have to display a field. suppose if i have a hidden field for that property
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're making a *decision* based on an arbitrary property, you don't need to make it a hidden property--unless you need to send it back to the server (which is where it came from in the first place). You can simply set a request attribute with the value and test for it in the JSP using a <c:if...> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic