On 10/29/2003 11:04 PM David Erickson wrote:
Bug description:
Using tiles to handle our webpage.  I have an individual tile which is a jsp
that does some logic on our forums, if a certain situation occurs that tile
when loaded will attempt to redirect to a error page.  However this does not
work.  Instead where that tile should be it just comes up blank.  I have
also tried getting the request dispatcher and forwarding if that error
occurs but it says that the response has been commited and throws an
exception..  so how in the world am I supposed to insert a different page
there if this condition comes up!

That is a demanding question. The problem is that the outer-most Tile controls its child Tiles. This is a complete stab in the dark but try writing the redirect URL into the request attributes, and then at the end of the outermost Tile, check to see if there is a non-null value, and if so, do the redirect there.


Adam


-- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9


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



Reply via email to