aspose file tools
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 The Software Craftsman this week in the Agile 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
    It is sorta covered in the JavaRanch Style Guide.
    subject: Logic:redirect problem