Here is my code

public class Test extends GenericPortlet {

    protected void doView(RenderRequest request, RenderResponse response)
        throws PortletException, IOException 
    {
        response.setContentType("text/html");

           String reqPath="/view.jsp";
           PortletRequestDispatcher prd = 
getPortletContext().getRequestDispatcher(reqPath);
           prd.include(request, response);

        


    }
}


Here is my jsp code

<%@ page session="false" %>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri='/WEB-INF/tld/portlet.tld' prefix='portlet'%>
<portlet:defineObjects/>

Hello,
I am the bookmark portlet.

Current Portlet Mode: <%=renderRequest.getPortletMode()%>
Current Window State: <%=renderRequest.getWindowState()%>



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

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


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to