
|
If you were logged in you would be able to see more operations.
|
|
|
WebWork
Created: 25/Apr/07 02:12 AM
Updated: 18/Jul/07 10:05 AM
|
|
| Component/s: |
Views
|
| Affects Version/s: |
2.2.5
|
| Fix Version/s: |
2.2.6
|
|
|
UIBean end() method prints exceptions directly into System.err:
[code]
public boolean end(Writer writer, String body) {
evaluateParams();
try {
super.end(writer, body, false);
mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
} catch (Exception e) {
e.printStackTrace();
}
finally {
popComponentStack();
}
return false;
}
[/code]
Could you replace "e.printStackTrace();" with "LOG.error("Exception while rendering tag", e)"?
It is difficult to get control over System.err in contrast to the Logger output.
|
|
Description
|
UIBean end() method prints exceptions directly into System.err:
[code]
public boolean end(Writer writer, String body) {
evaluateParams();
try {
super.end(writer, body, false);
mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
} catch (Exception e) {
e.printStackTrace();
}
finally {
popComponentStack();
}
return false;
}
[/code]
Could you replace "e.printStackTrace();" with "LOG.error("Exception while rendering tag", e)"?
It is difficult to get control over System.err in contrast to the Logger output.
|
Show » |
|