You don't need to access the value stack directly in
order to access action properties in a JSP. The action
itself is pushed on to the stack allowing any member
with a public "getter" method to be accessed.
Action:
public class MyAction {
private String _foo = "Hello";
public String getFoo() { return _foo; }
}
JSP:
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:property value="foo"/> <!-- outputs "Hello" -->
${foo} <!-- outputs "Hello" in JSP 2.0 container -->
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]