File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
shivang sarawagi
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shivang sarawagi
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys for the reply ...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic