aspose file tools*
The moose likes Spring and the fly likes Query on <form:form method=" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Query on <form:form method="post" action="">" Watch "Query on <form:form method="post" action="">" New topic
Author

Query on <form:form method="post" action="">

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 148
In Spring why do we use a namespace for a form



unlike html <form></form> tag.

Is there a specific reason behind that?
Ayan mallick
Ranch Hand

Joined: Nov 17, 2012
Posts: 46
This is custom tag .It gives us several benefit like using model attribute,using validation.basically when the page is executed java classes are executed which is defined in tld file. This way we can separate business logic from view layer.
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Hi,

Unlike HTML's <form> tag which is quite simple to understand i guess <form:form> is a custom tag and quite intelligent too.
A Custom Tag is something which has a proper java code written behind it so that it can provide some useful and specific functionality.

Behind every tag there's a tag handler where the code for that tag is written. When your JSP (at runtime) is compiled into a servlet these tags become active and process the code written for them in the tag handler. You can create a tag of your own too ... take a look here Creating Simple Tag Handler

cheers


http://plainoldjavaobject.blogspot.in
shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 148
Thanks a lot guys for the reply ...
 
wood burning stoves
 
subject: Query on <form:form method="post" action="">