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 www.google.som) . 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
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: IllegalStateException : Not allowed inside a portlet