Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Struts redirect logic tag issues

Thread Tools

Struts redirect logic tag issues

Damien Eversmann
Posts: n/a
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

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

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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts <logic:iterate> Tag & the indexId property Java 3 02-28-2008 02:50 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Struts logic:equal tag problem Emilio Java 0 07-12-2004 03:42 PM
Struts tag <logic:iterate> Jack_A Java 1 05-19-2004 09:33 AM
Struts - logic tag question Igor Java 2 07-14-2003 11:07 PM