webwork/src/main/webwork/view/taglib TextTag.java,1.10,1.11
[email protected] Mon, 5 Dec 2005 15:27:45 +0000 (UTC)
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29755/src/main/webwork/view/taglib
Modified Files:
TextTag.java
Log Message:
Don't swallow actual exception when catching IOException and throwing back up as JspException
Index: TextTag.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib/TextTag.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- TextTag.java 5 Feb 2004 03:25:52 -0000 1.10
+++ TextTag.java 5 Dec 2005 15:10:19 -0000 1.11
@@ -163,8 +163,7 @@
write(msg);
}
} catch (Exception e) {
- e.printStackTrace();
- throw new JspException(toString(e));
+ throw new JspException(e.getMessage(), e);
}
return EVAL_PAGE;
@@ -184,12 +183,11 @@
* Look up the value for this textTag. Currently this looks up the value on the valuestack
* <p>
* Subclasses may wish to override this method if they want to look up the text value manually.
- * @return
*/
protected String getMessage() {
String msg;
try {
- msg = findString("text(" + nameAttr + ")");
+ msg = findString("text(" + nameAttr + ')');
if (msg==null) {
if (bodyContent != null && bodyContent.getString().trim().length() > 0) {
// Show tag body
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click