Revision: 470
http://svn.sourceforge.net/stripes/?rev=470&view=rev
Author: bengunter
Date: 2006-11-16 06:40:40 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
Resolved STS-305: FormTag should check for null action and null binding
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java 2006-11-16
13:09:20 UTC (rev 469)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java 2006-11-16
14:40:40 UTC (rev 470)
@@ -156,9 +156,15 @@
////////////////////////////////////////////////////////////
/**
- * Does nothing except return EVAL_BODY_BUFFERED. Everything of interest
happens in doEndTag.
+ * Does sanity checks and returns EVAL_BODY_BUFFERED. Everything else of
interest happens in
+ * doEndTag.
*/
public int doStartTag() throws JspException {
+ if (this.actionWithoutContext == null) {
+ throw new StripesJspException("The form tag attributes 'beanClass'
and 'action' "
+ + "are both null. One of the two must be supplied to
determine which "
+ + "action bean should handle the form submission.");
+ }
getTagStack().push(this);
return EVAL_BODY_BUFFERED;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development