This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:submit Vs html:cancel buttons

 
Charanjit Sidhu
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to Struts and am in the process of developing a new application in struts.
I read that the only difference between html:submit Vs html:cancel is that the later does not invoke the validate() method in the ActionForm associated with the page. But how can we know in the Action bean which was clicked (Submit or Cancel button)?

Also I want to know what is a good resource to learn the Struts taglibs.

Thanks
Charanjit
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charanjit,
The action class provides and isCancelled() method you can call.

The developer guides from Struts are a good resource to understand each of the html tags.
 
Charanjit Sidhu
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

Thanks so much for the 'Quick & To the point answers'.
This is my first question on this forum and am exited with the response!!!

Charanjit
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic