Hi,
I have developed a simple portlet extending from generic portlet. When i deploy the
portlet. I see JBoss portlet default page inside the portlet, instead of specified content
to display, which is a JSP.
Below id my code ? Can someone please throw some light:
| public class TreePortlet extends GenericPortlet {
|
| public void init(){
|
| }
|
| protected void doView(RenderRequest request, RenderResponse response)throws
javax.portlet.PortletException,IOException
| {
| try
| {
| //setRenderAttributes(request);
| response.setContentType("text/html");
| PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/treeview.jsp");
| prd.include(request, response);
| }
| catch(Exception e)
| {
| e.printStackTrace();
| }
| }
| public void render(RenderRequest request, RenderResponse response) throws
javax.portlet.PortletException,IOException{
|
| response.setTitle("");
| doDispatch(request,response);
| }
|
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987364#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...