My portlet is located in
/usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF/classes.  The code of
my HelloWorldPortlet.java is as follows...

import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.turbine.util.RunData;
import org.apache.ecs.*;

public class HelloWorldPortlet extends AbstractPortlet
{
    publicConcreteElement getContent (RunData aRunData)
    {
        return (new StringElement ("Hello World!!"));
    }
}


I compiled the 'HelloWorldPortlet.java' file in the same directory to get
the 'HelloWorldPortlet.class' file.  Then I created a file called
'local-portlets.xreg' in the directory
/usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF.  However, at this
point I'm not sure if there is something more that I have to do??
Ideas/help??

Thanks,
Bob.



-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 3:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Portlet example help...


>  <classname>HelloWorldPortlet</classname>

What package is 'HelloWorldPortlet' in?
Where is the .class file, is it in the WEB-INF/classes directory?

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 11:40 AM
Subject: Portlet example help...


> Hi All,
>
> I have been having problems at creating a portlet to deploy...in fact I'm
> trying to do the simple 'Hello World' example.  I have followed the
example
> however I cannot get the portlet to show up.
>
> HOWEVER, I am successful in being able to login to Jetspeed as well as
> create some user accounts.  After creating the HelloWorldPortlet.java file
I
> compile it to get HelloWorldPortlet.class and both files reside in the
> TOMCAT_HOME/webapps/jetspeed/WEB-INF/classes directory.  I then created a
> portlet entry in my 'local-portlet.xreg' file with the following code...
>
> <portlet-entry name="HelloWorldPortlet" hidden="false" type="instance"
> application="false">
> <meta-info>
> <title>Hello World Example</title>
> </meta-info>
> <classname>HelloWorldPortlet</classname>
> <media-type ref="html"/>
> </portlet-entry>
>
>
> After restarting Tomcat and logging into Jetspeed as 'admin', nav to
> Customize->AddPortlet...I can see the HelloWorldPortlet in the list of
> available portlets.  I select it and save my settings and go to my
Homepage
> to see the portlet BUT it does not show up.  I'm not sure what I am doing
> wrong might anyone know what I am doing wrong??  Do I have to make
> entries/modifications to any other files??
>
> Any help is greatly appreciated!!
>
> Thanks,
> Bob Wilson.
>



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

Reply via email to