Struts redirect logic tag issues

Discussion in 'Java' started by Damien Eversmann, Jul 9, 2003.

  1. 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
    Damien Eversmann, Jul 9, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Igor
    Replies:
    2
    Views:
    2,810
  2. Jack_A

    Struts tag <logic:iterate>

    Jack_A, May 18, 2004, in forum: Java
    Replies:
    1
    Views:
    8,785
    Martin
    May 19, 2004
  3. Emilio
    Replies:
    0
    Views:
    799
    Emilio
    Jul 12, 2004
  4. Replies:
    3
    Views:
    10,947
    yehuda54
    Feb 28, 2008
  5. shruds
    Replies:
    1
    Views:
    791
    John C. Bollinger
    Jan 27, 2006
Loading...

Share This Page