Hello,
   I was trying to create a Hello World portlet, and managed to compile
it succesfully. Then I added a reference to it sample.xreg in
webapps/jetspeed/WEB-INF/conf/. 
   However when I login as turbine in my jetspeed portal, and try to add
this HelloWorldPortlet, I am not able to view this in the available
list. I have put the .class file in
webapps/jetspeed/WEB-INF/classes/org/apache/jetspeed/portal/portlets.

   I have attached my .xreg and .java files.

gokul

sample.xreg
<?xml version="1.0" encoding=UTF-8"?>
<registry>
        <portlet-entry name="HelloWorldPortlet" hidden="false"
type="instance" application="false">
                <meta-info>
                        <title>HelloWorldPortlet</title>
                        <description>Simple Hello World Portlet
Example</description>
                </meta-info>
               
<classname>org.apache.jetspeed.portal.portlets.HelloWorldPortlet</classname>
                <media-type ref="html"/>
        </portlet-entry>
<registry>
------------------------

HelloWorldPortlet.java

package org.apache.jetspeed.portal.portlets ;

import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet ;
import org.apache.turbine.util.RunData ;
import org.apache.ecs.ConcreteElement ;
import org.apache.ecs.StringElement ;

public class HelloWorldPortlet extends AbstractInstancePortlet {

        public ConcreteElement getContent(RunData rundata) {
                return (new StringElement("Hello World ! "+ getID()));
        }
}


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to