Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalStateException : Not allowed inside a portlet  RSS feed

Anup Nadahalli
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.. I don't know whether I am posting in the right forum or not. From whatever I searched in net I thought I have a problem related to portlets , hence posting here. I have a portal where Struts and Portlets are being used. I have a requirement in which there is a button in the page clicking on which I should redirect to another sever(For ex . After clicking on the button I call an action which inturn call various methods. In one of the methods I need to check for some conditions and based on that I need to redirect to another server. Here for redirection I am using the following code.

But after this line I am getting an exception as below.

When I tried to search in net I found out that sendRedirect cannot be called after invoking methods like

etc etc..

So I want to know whether this is the cause of the exception or not. If yes then how to overcome it.

PS : Because of violations I can neither post the code nor the complete logs over here.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!