I have a problem using JSTL to manipulate objects from the valuestack.
The behavior is erratic.
I have an action TestAction with the following code:

private String test;
public String execute() {
        test = "toto";        
        return "success";
}
public String getTest() {
        return test;
}
public void setTest(String test) {
        this.test = test;
}

I forward to a jsp, with the following code:

<%@ taglib prefix="ww" uri="/struts-tags" %>
struts: <ww:property value="test"/>
<br/>
jstl: ${test}
<ww:debug/>

Sometimes ${test} calls TestAction.getTest(), sometimes it doesn't.
When ${test} output is empty, StrutsRequestWrapper.getAttribute() is
not called.

Thanks.
--
Guillaume Carré

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to