2011/2/15 Muneer Malik <[email protected]>: > So the redirect would happen on the tiles definition and then the > servlet would render the tile ? So basically you would do the redirect > in struts 2 and then have it intrcepted by this servlet ?
Right. > When redirect will happen, the jsp would still have the values set > from action ? Do you mean request-scoped attributes? No, since it is a new request. > The tile definition are under web-inf , I wonder how the redirect will > see the tiles definition? It's the servlet that must be visible, not the definitions. The servlet will load the definition in the URL. For example, if you map the TilesDispatchServlet to "*.tiles", by using: http://<ip>:<port>/<webapp/<my-definition>.tiles you will load the "<my-definition>" definition. JSP pages loaded in the definition are visible to Tiles itself, and this is enough to work. Antonio
