[cvs] expresso commit by lhamel: fix header reuse in 'prefix'
section
JCorporate Ltd
jcorp at jcorporate.com
Mon Apr 11 03:57:15 UTC 2005
Log Message:
-----------
fix header reuse in 'prefix' section
Modified Files:
--------------
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib:
ErrorTag.java
Revision Data
-------------
Index: ErrorTag.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ErrorTag.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ErrorTag.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ErrorTag.java -u -r1.21 -r1.22
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ErrorTag.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ErrorTag.java
@@ -197,25 +197,13 @@
// Compute user prefix
if ( prefix == null ) {
- // If no user prefix is defined, attempt it from
- // the message resource, if possible
- // If no header is defined, attempt retrieve the header
- // from the message resource bundle, if any
- try {
- myPrefix = myResponse.getString("errors.header");
- } catch (java.lang.IllegalArgumentException ex) {
- myPrefix = "<li>";
- }
+ myPrefix = "";
}
else
myPrefix = prefix;
// Compute user suffix
if ( suffix == null ) {
- // If no user prefix is defined, attempt it from
- // the message resource, if possible
- // If no header is defined, attempt retrieve the header
- // from the message resource bundle, if any
try {
mySuffix = myResponse.getString("errors.suffix");
} catch (java.lang.IllegalArgumentException ex) {
More information about the cvs
mailing list