Hello,

 

I have the following task. I need to make sure that user gets redirected
to a certain page anywhere in the app, if certain condition happens. I
have all pages using stripes layout.jsp. Naturally, I tried to put
condition in layout.jsp before or after <stripes:layout-definition> tag
and do <% response.sendRedirect(:http://google.com";) %> as a proof
concept. However, it did not work and there were no exceptions. My
theory is that once stripes starts writing to response object by
processing layout tags (pulling layout.jsp), redirect can no longer be
performed.

 

I could prove it by moving the check condition outside layout.jsp into
home.jsp (which is defined layout.jsp as it's template) - then, redirect
happens.  

Does it make sense? Is it possible to do what I am trying to do using
layout.jsp?

 

This is tomcat 5.20 stipes 1.4.3

 

 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to