-
Dec 18th, 2008, 05:01 AM
#1
Spring:bind Vs form:hidden
What exactly is the difference between spring:bind and form:hidden tags?
Do they both carry back the values to the controller? What is the best way to carry the selected values back to the controller when the form is submitted.
I am currently using form:hidden. But not sure this is the recommended procedure.
-
Dec 18th, 2008, 05:55 AM
#2
spring:bind and form:hidden are mutually exclusive, you only need to use one of them. There is no recommended procedure per se but from my personal experience i'd say use form tags because they keep the jsp clean.
As for carrying data through your command object, it depends on what you're trying to do. If you don't want the user to see the data being carried, use form:hidden.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules