aspose file tools*
The moose likes Struts and the fly likes html:submit Vs html:cancel buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:submit Vs html:cancel buttons" Watch "html:submit Vs html:cancel buttons" New topic
Author

html:submit Vs html:cancel buttons

Charanjit Sidhu
Greenhorn

Joined: Apr 04, 2005
Posts: 13
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


Charanjit Sidhu<br />SCJP 81%
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30894
    
158

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Charanjit Sidhu
Greenhorn

Joined: Apr 04, 2005
Posts: 13
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
 
subject: html:submit Vs html:cancel buttons