Re: from Action to PageContext: how's it done?

2008-04-20 Thread Adam Hardy
Dave Newton on 20/04/08 02:24, wrote: --- Adam Hardy <[EMAIL PROTECTED]> wrote: What you're saying is clear except one thing - in JSTL I can access the action. And in JSTL, I'm not calling request.getAttribute() - I'm _not_ doing this: ${requestScope['myObject']} I'm just doing this: ${myObj

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Martin Gainty
Users Mailing List" Sent: Saturday, April 19, 2008 9:11 PM Subject: Re: from Action to PageContext: how's it done? > Dave Newton on 20/04/08 00:23, wrote: > > --- Adam Hardy <[EMAIL PROTECTED]> wrote: > >> So you say the StrutsRequestWrapper holds the struts

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Dave Newton
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > What you're saying is clear except one thing - in JSTL I can access the > action. And in JSTL, I'm not calling request.getAttribute() - I'm _not_ doing this: > > ${requestScope['myObject']} > > I'm just doing this: > > ${myObject} > > and struts someh

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Adam Hardy
Dave Newton on 20/04/08 00:23, wrote: --- Adam Hardy <[EMAIL PROTECTED]> wrote: So you say the StrutsRequestWrapper holds the struts context [...] No, I'm saying it has access to it via ActionContext.getContext(). and is accessed somewhere in the Result to pull everything down into the Page

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Dave Newton
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > So you say the StrutsRequestWrapper holds the struts context [...] No, I'm saying it has access to it via ActionContext.getContext(). > and is accessed somewhere in the Result to pull everything down > into the PageContext? I'm not sure what that mea

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Adam Hardy
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 f

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Dave Newton
--- 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 J

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Adam Hardy
Ralf Fischer on 19/04/08 18:43, wrote: On Sat, Apr 19, 2008 at 7:29 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: From looking at the struts2 architecture, one of the big questions that I can't find the answer to is how struts/xwork moves objects such as the properties on an action into the PageCont

Re: from Action to PageContext: how's it done?

2008-04-19 Thread Ralf Fischer
Hello Adam On Sat, Apr 19, 2008 at 7:29 PM, Adam Hardy <[EMAIL PROTECTED]> wrote: > From looking at the struts2 architecture, one of the big questions that I > can't find the answer to is how struts/xwork moves objects such as the > properties on an action into the PageContext. Actually it's not

from Action to PageContext: how's it done?

2008-04-19 Thread Adam Hardy
From looking at the struts2 architecture, one of the big questions that I can't find the answer to is how struts/xwork moves objects such as the properties on an action into the PageContext. When an interceptor is executing for example, calling ServletActionContext.getPageContext() will return