David Sean Taylor wrote:

> try this link, it covers the basic steps to writing a portlet
>
> http://www.bluesunrise.com/jetspeed/PortletHowTo.htm
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Reddy, Ayndla
> > Srinivas
> > Sent: Tuesday, February 13, 2001 11:32 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: servlet to portlet
> >
> >
> > Hello,
> >
> > I have a simple servlet which connects to mysql database running under
> > tomcat (4.0). I am trying to make a portlet from it and make it run in
> > jetspeed (1.3a.).  I am presently checking out the documentation
> > on portlet
> > API/examples etc but have not been able to find the right
> > information.  Can
> > somebody kindly point me to the right resource?
> >
> >
> > Thanks in Advace
> >
> >
> > Best Regards
> > Srinivas
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/[email protected]/>
> > List Help?:          [EMAIL PROTECTED]
> >
> >
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/[email protected]/>
> List Help?:          [EMAIL PROTECTED]

I believe the current version of jetspeed expects the output
of the portlet to be ECS elements.  You can write a small sample
program to use JDBC and then build an ECS screen.  I remember
seeing that you could generate JSP using ECS- but I haven't
tested this yet.

Another approach is to have your servlet standalone and run it in
the same tomcat environment.  You can mount your servlet under a
relative URL and then use the HTML instance of the
FileServerPortlet.

For development- another option is to put your JDBC calls
in a basic JSP and run it from:

$(TOMCAT_HOME)webapps/jetspeed/WEB-INF/templates/jsp/screens

It will not be a portlet- but is a quick way
to debug JSPs within the jetspeed environment.

For database calls- I found that the Village APIS worked well.
The village jar file is included along with Jetspeed.

For more advanced apps- you can use the Turbine peer model
and generate your classes with torque.

-bill




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to