1 Reply Latest reply on Nov 20, 2006 5:47 PM by Boleslaw Dawidowicz

    See JBoss default page in the portlet instead of specified c

    Praveen Cheruvu Newbie

      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);
       }
      
      }