The portlet just dispatch to a jsp
PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher(mainPage);
| prd.include(request, response);
In the servlet compiled from the jsp, the content type is set.
_jspxFactory = JspFactory.getDefaultFactory();
| response.setContentType("text/html");
| pageContext = _jspxFactory.getPageContext(this, request, response,
| null, true, 8192, true);
| _jspx_page_context = pageContext;
Do i need to explicitely set the content type in the portlet ?. guess not
The problem is contentType is not set in the class
org.jboss.portal.server.output.FragmentResult
I am using only the standard classes like RenderRequest, RenderResponse and NOT
JBossRenderRequest, JBossRenderResponse etc... Is it like i have to use JBoss*
classes ?
I could send the code if you want to have a quick look!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883340#3883340
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883340
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user