Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the Spring:Bind tag needed for display only data?

 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a page in my app that is displaying data only, there is no data input there. Does this mean I do not need to use Spring:Bind tags? I am trying to figure out if these are only needed for the case when a user may edit/enter data on the page, so that error messages can be reached. I have the following code in my jsp, which works fine without the bind tag:

I am just wondering if there is another reason I might want to use it. I am having trouble finding this "why" info online and in my Spring book, I know how to use the tag, just not sure if I always SHOULD use it.
Thanks !
Kim
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need.
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic