[jboss-user] [JBoss Portal] - Re: Guide me in creating sample Portlet program on Jboss Por

agarwar7 do-not-reply at jboss.com
Wed Mar 14 07:49:18 EDT 2007


"thomas.heute at jboss.com" wrote : So you have an empty window on the portal page, with an error message ?
  | 
  | How did you create the window ?

This is the code of my HelloWorld.java 

package source;
import javax.portlet.*;
import java.io.*;

public class  HelloWorld extends GenericPortlet{
  protected void doView(RenderRequest request,
  RenderResponse response) throws
  PortletException, IOException {
        response.setContentType("text/html");
        response.getWriter().println("Hello Portlet");
        }
}


and rest is my Portlet.xml has following code


  HelloWorldDescription
        
    <portlet-name>hello
        </portlet-name>
    <display-name>hello
        </display-name>

    <portlet-class>classes.source.HelloWorld
        </portlet-class>
    <!--<expiration-cache></expiration-cache>-->
        
          <mime-type>text/html</mime-type>
      <portlet-mode>VIEW
          </portlet-mode>
        
    <supported-locale>en
        </supported-locale>

        <portlet-info>
          Hello World
          <short-title>Hello World
          </short-title>
          Hello,pluto
      </portlet-info>


This is the only thing i have 
tell me one thing to deploy a project in Jboss through Eclipse should i download Jboss IDE Plugin if yes
then which version i should download

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

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



More information about the jboss-user mailing list