0 Replies Latest reply on Aug 29, 2007 10:35 AM by ram_cse

    JSR 168 Portlet

    ram_cse

      hi,

      i want to get request value inside the doview method.....

      my work environment:

      RAD 6.0, jboss portal server 2.6, jsr 168

      view.jsp:

      <%@ page session="false" contentType="text/html"
      import="java.util.*,javax.portlet.*,helloworld_portlet.*" %>
      <%@taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
      <portlet:defineObjects/>


      <H3 style="margin-bottom: 3px">Welcome to HelloWorld 1!</H3>






      portlet.java:

      public void doView(RenderRequest request, RenderResponse response)
      throws PortletException, IOException {
      // Set the MIME type for the render response
      response.setContentType
      (request.getResponseContentType());

      // Check if portlet session exists
      HelloWorld_PortletPortletSessionBean sessionBean =
      getSessionBean(request);
      if( sessionBean==null ) {
      response.getWriter().println("NO PORTLET
      SESSION YET");
      return;
      }
      String test = request.getParameter("test")!=null?
      request.getParameter("test"):"";
      System.out.println("test:::"+test);

      // Invoke the JSP to render
      PortletRequestDispatcher rd = getPortletContext
      ().getRequestDispatcher(getJspFilePath(request, VIEW_JSP));
      rd.include(request,response);
      }

      after deployed in jboss portal server, sysout statement always print
      empty if i gave some value.....but the same code is working fine in
      IBM websphere portal server Test Environment 5.0......

      is there any IDE with jboss portal server 2.4 or 2.6??????

      please help me...

      thanks in advance.....

      regards,
      ramkumar