Struts redirect logic tag issues

  • Thread starter Damien Eversmann
  • Start date
D

Damien Eversmann

I'm using Struts 1.1. I have a default layout set up and in that
layout, I want to redirect to another page if a cookie isn't present a
la:

<logic:notPresent cookie="ProfileCookie">
<logic:redirect forward="Profile" />
</logic:notPresent>

When I have this in the jsp file that is directly called, it works
fine, but when it is in the layout page or in any included tile, I get
a ServletException displayed and it doesn't work, a la:

[ServletException in:/layouts/defaultLayout.jsp] null'

Any one have insight on how I can get this to work without having the
text on every page? It seems to defeat the purpose of templates and
tiles if I have to have the text actually in every page.

Thanks,
Damien
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top