This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes Logic:redirect  problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logic:redirect  problem" Watch "Logic:redirect  problem" New topic

Logic:redirect problem

Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48

I am redirecting the control to a particular URL which is dynamically generated using logic:redirect tag in my jsp.

The control come into the jsp and it fires an IllegalStateException at that tag.It is urgent to solve it .
please help.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You cannot use logic:redirect if:
  • You have already started outputting text to the page or
  • You are using tiles, and the current page is part of a tiles template
  • If either of these conditions exist, you will have to use another strategy besides logic:redirect.

    Consultant, Sima Solutions
    I agree. Here's the link:
    subject: Logic:redirect problem
    It's not a secret anymore!