cancel
Showing results for 
Search instead for 
Did you mean: 

Java Backed Web Scripts as a portlet

lblancher
Champ in-the-making
Champ in-the-making
Hello,

  I have created a Java Backed Web Script and it work fine when i run it as part of alfresco.  Our alfresco has been integrated into liferay.  I would like to put my Web Script into liferay as a portlet.  I have been able to do this, however when i add/view the portlet in liferay I get an Illegalstateexception whenever i try to use the res.getWriter().write("some string"); 

My question is simple.  How can i output something from a Java Backed Webscript that is in a portlet?

Thanks,
Lucas
1 REPLY 1

lblancher
Champ in-the-making
Champ in-the-making
Turns out, all i had to do was set the content type.  With res.setContentType("text/html;charset=UTF-8");.

Hope this helps someone else.

Lucas