2008/4/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Right on Antonio! Can you tell me how to fish the web context root from the > Preparer? I need to construct the page location from this and the nextPage > itself. Is there a list of key names someplace? Finding this bit of data > or that on the stack is typically where productivity takes a nosedive. I > used this key to get the stack: > > stack = (ValueStack) > > tilesContext.getRequestScope().get(ServletActionContext.STRUTS_VALUESTACK_KEY);
Unfortunately, Tiles plugin is not "so integrated" to Struts 2, so you have to access the value stack in another way. The TilesRequestContext.getRequest returns the request object, simply cast it to HttpServletRequest (in most cases). And the use the ServletActionContext.getValueStackMethod: http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html#getValueStack(javax.servlet.http.HttpServletRequest) HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]