1 Reply Latest reply on Oct 6, 2006 5:32 AM by Thomas Heute

    Empty Portlet Displaying.

    Hemanth Kota Newbie

      I have devoloped a simple portlet with a single controller and the single JSP page. In command prompt i am getting the message as "Successfully Deployed", but in browser i am seeing the empty portlet. i,e portlet with min, max buttons. I am providing the controller, jsp and *-portlet.xml. Please provide some solution to it.

      The JSP code:
      <%@ include file="/WEB-INF/jsp/include.jsp" %>
      <%@ taglib prefix="portlet" uri="/WEB-INF/tld/portlet.tld" %>

      <fmt:message key="title"/>

      U logged in at: <c:out value="${model.now}"/>

      Controllet Code
      mport java.util.HashMap;
      import java.util.Map;

      import javax.portlet.ActionRequest;
      import javax.portlet.ActionResponse;
      import javax.portlet.RenderRequest;
      import javax.portlet.RenderResponse;

      import org.springframework.web.portlet.SimplePortletFormController;
      import org.springframework.web.servlet.ModelAndView;

      public class BasicInfoViewController extends SimplePortletFormController {

      * @see org.springframework.web.portlet.support.PortletController#handleRequest(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
      public ModelAndView handleRequest(RenderRequest request, RenderResponse response) throws Exception {
      String now = (new java.util.Date()).toString();

      Map myModel = new HashMap();
      myModel.put("now", now);
      return new ModelAndView(this.getFormView(), "model", myModel);

      * @see org.springframework.web.portlet.support.PortletController#handleRequest(javax.portlet.ActionRequest, javax.portlet.ActionResponse)
      public void handleRequest(ActionRequest request, ActionResponse response) throws Exception {



      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

      <!-- Logical view resolver -->


      <!-- mapping of portlet modes to view controllers -->

      <!-- "view" portlet mode controller -->


      Thanks in advance,