mirror of
https://github.com/apache/struts.git
synced 2026-08-06 15:17:00 +00:00
WW-1422
- fixed else tag executed when it is not suppose, when used with ElseIf tag. git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@438410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -85,7 +85,12 @@ public class ElseIf extends Component {
|
||||
}
|
||||
|
||||
public boolean end(Writer writer, String body) {
|
||||
|
||||
if (answer == null) {
|
||||
answer = Boolean.FALSE;
|
||||
}
|
||||
if (answer.booleanValue()) {
|
||||
stack.getContext().put(If.ANSWER, answer);
|
||||
}
|
||||
return super.end(writer, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user