You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Karsten Gampe <in...@karsten-gampe.de> on 2001/09/09 23:36:53 UTC
Simple Portlet Question
Hello,
i wrote a simple Portlet:
public class KgPortlet extends AbstractPortlet
{
public ConcreteElement getContent(RunData aRunData)
{
StringBuffer text =new StringBuffer();
PortletTemplateLink link=new PortletTemplateLink(aRunData,this);
text.append("First Name=");
String name =aRunData.getUser().getFirstName();
text.append (name);
text.append ("<br>");
text.append ("<a href=\""+link+"?action=eventSubmit_doIncrease\">Test Action</a>");
return (new StringElement(text.toString()));
}
}
i placed the class file in the classes directory (at the top).
Now i want do Actions (ex: increase a integer) by click on a
link. i reed the turbine docs and tried to implement such a action
class. But it doesn't work. Error:
Horrible Exception: java.lang.ClassNotFoundException:
Requested Action not found: eventSubmit_doIncrease
Turbine looked in the following modules.packages path:
[org.apache.jetspeed.modules, org.apache.turbine.modules]
at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
...
Where must i place the new "KgPortletAction.class" file?
>From which class must i extend?
Is the link in line 11 of above class right?
Can anyone give me an example for a minimal action class?
Thanks,
Karsten Gampe
Email: info@karsten-gampe.de
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: Registering XML
Posted by Jean-Francois VALLET <jf...@owendo.com>.
Hi Nausheen,
U have to first register the XSL parent in the jetspeed-config.jcfg as
this :
<portlet-entry type="abstract" name="XSL">
<classname>org.apache.jetspeed.portal.portlets.XSLPortlet</classname>
<parameter name="stylesheet.text/html" value="http://yourxslurl"/>
</portlet-entry>
In fact, the XSL parent doesn't seem to be declared by default in the
jetspeed configuration.
Hope that will help U
Regards,
JF VALLET
-----Original Message-----
From: nausheen [mailto:nausheen@siptech.co.in]
Sent: mardi 11 septembre 2001 08:55
To: jetspeed-user@jakarta.apache.org
Subject: Re: Registering XML
Hi,
I tried with the XSL as parent, but in the command window following
error is thrown.
Error=The entry: XML Page has set its parent to an entry that does not
exist within the registry: XSL
Basically what I have is an intranet built on the Cocoon architecture
that I would now like to port to Jetspeed.
Regards
Nausheen.
----- Original Message -----
From: Paul Spencer <pa...@mikon.com>
To: <je...@jakarta.apache.org>
Sent: Tuesday, September 11, 2001 9:51 AM
Subject: Re: Registering XML
> Nausheen,
> I am not sure what you mean by "XML" content. Jetspeed support 2 types
> of content that are in XML format, RSS and XSL. See
> http://jakarta.apache.org/jetspeed/site/catalog.html
>
> Paul Spencer
>
> nausheen wrote:
> >
> > Could someone pls advise me on this....
> >
> > > Hi...
> > >
> > > I want to register a local portlet with XML content...what do I
> > > give
the
> > > parent as?
> > >
> > > Nausheen.
> > >
> > >
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
jetspeed-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Registering XML
Posted by nausheen <na...@siptech.co.in>.
Hi,
I tried with the XSL as parent, but in the command window following error is
thrown.
Error=The entry: XML Page has set its parent to an entry that does not exist
within the registry: XSL
Basically what I have is an intranet built on the Cocoon architecture that I
would now like to port to Jetspeed.
Regards
Nausheen.
----- Original Message -----
From: Paul Spencer <pa...@mikon.com>
To: <je...@jakarta.apache.org>
Sent: Tuesday, September 11, 2001 9:51 AM
Subject: Re: Registering XML
> Nausheen,
> I am not sure what you mean by "XML" content. Jetspeed support 2 types
> of content that are in XML format, RSS and XSL. See
> http://jakarta.apache.org/jetspeed/site/catalog.html
>
> Paul Spencer
>
> nausheen wrote:
> >
> > Could someone pls advise me on this....
> >
> > > Hi...
> > >
> > > I want to register a local portlet with XML content...what do I give
the
> > > parent as?
> > >
> > > Nausheen.
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Servlet in Jetspeed
Posted by Frans Thamura <ft...@yahoo.com>.
There is a class Abstract Portlet, you have to extend
it.
Frans
--- Anthony Smith <an...@fedex.com> wrote:
> I just want to run a standard servlet. Where should
> I put it in my jetspeed
> folder and how should it be referenced?
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
>
=====
Empowering Open Source Spirit...
Open Source is Open Source. Shared Source is another thing.
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Servlet in Jetspeed
Posted by Anthony Smith <an...@fedex.com>.
I just want to run a standard servlet. Where should I put it in my jetspeed
folder and how should it be referenced?
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Registering XML
Posted by Paul Spencer <pa...@mikon.com>.
Nausheen,
I am not sure what you mean by "XML" content. Jetspeed support 2 types
of content that are in XML format, RSS and XSL. See
http://jakarta.apache.org/jetspeed/site/catalog.html
Paul Spencer
nausheen wrote:
>
> Could someone pls advise me on this....
>
> > Hi...
> >
> > I want to register a local portlet with XML content...what do I give the
> > parent as?
> >
> > Nausheen.
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Registering XML
Posted by nausheen <na...@siptech.co.in>.
Could someone pls advise me on this....
> Hi...
>
> I want to register a local portlet with XML content...what do I give the
> parent as?
>
> Nausheen.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Registering XML
Posted by nausheen <na...@siptech.co.in>.
Hi...
I want to register a local portlet with XML content...what do I give the
parent as?
Nausheen.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Simple Portlet Question
Posted by Raphaƫl Luta <ra...@networks.groupvu.com>.
Karsten Gampe wrote:
> Hello,
>
>
> Where must i place the new "KgPortletAction.class" file?
> From which class must i extend?
> Is the link in line 11 of above class right?
> Can anyone give me an example for a minimal action class?
>
You can put your actions in WEB-INF/classes as well, but Turbine looks
only for specific Action packages and you need to add your package
name before hand in the TR.p for Jetspeed to actually try to load your
Action.
--
Raphael Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org