Dave Newton on 19/04/08 23:54, wrote:
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
The struts interceptors encompass both the actions and the results, but how
does struts put the action properties into the pageContext?

It doesn't; it puts the action on the stack. The tags use OGNL to get values
from the stack context, or when using JSP 2.0 EL the S2 request wrapper will
go to the stack if the value isn't found in the normal contexts.

I guess I'm not really sure what you're asking.

I think you've understood what I'm asking.

So how does the stack context get put into the pageContext? The pageContext only comes into existence when the JSP is called via (presumably) a RequestDispatcher.forward() - what I can't figure out is how struts gets involved in the JSP when I'm not using struts tags there or anything except some JSTL to ask for an action property such as "${myPropertyOnAction}"

So you say the StrutsRequestWrapper holds the struts context and is accessed somewhere in the Result to pull everything down into the PageContext?

I don't understand the javadoc for StrutsRequestWrapper which says

"All Struts requests are wrapped with this class, which provides simple JSTL accessibility. This is because JSTL works with request attributes, so this class delegates to the value stack ...."

JSTL only works with request attributes when you explicitly say "${requestScope[thing]}"

No?
Adam



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

Reply via email to