[jboss-user] [JBoss Portal] - Empty Portlet Displaying.

HemanthKota do-not-reply at jboss.com
Fri Oct 6 04:46:54 EDT 2006

     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,

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

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

More information about the jboss-user mailing list