Hi,

I am running jboss-4.0.3RC2 on Linux, JDK 1.5.0_04. Just try to show the help 
info.
1) If I use PortletContext portletContext = getPortletContext(); I got null 
pointer exception, so I have to use session.getPortletContext();

2) I am expecting the doHelp() will show the helpPage.jsp content, but the page 
is blank, no error/exception, could anyone point it out the reason,pls?

thanks a lot
D

Here is the final code
protected void doHelp(RenderRequest req, RenderResponse resp)
    throws PortletException, IOException
    {
session = req.getPortletSession(true);
                    PortletContext portletContext = session.getPortletContext();
                    PortletRequestDispatcher prd = 
portletContext.getRequestDispatcher(resp.encodeURL(req.getContextPath())+"/jsp/helpPage.jsp");
                    try{
                          prd.include(req,resp);
                    }
                    catch(PortletException pex)
                    {
                        pex.printStackTrace();
                    }
                    catch(IOException iex)
                    {
                        iex.printStackTrace();
                    }
                
    }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900497#3900497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900497


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to