File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!