Currently, I have a portlet with the following info in the portletregistry:
<entry type="ref" parent="Cocoon" name="UserReportList"
application="">
<url>/content/xml/turbine.xml</url>
<parameter name="stylesheet"
value="/content/xml/rptDisplay.xsl"/>
<metainfo>
<title>User Report List</title>
<description>User accessable list of
reports.</description>
</metainfo>
</entry>
What I would like to achieve is that if user 'Mary' logs on, I would like
the <url> to be /content/xml/mary.xml and if user 'turbine' logs on, I would
like the <url> to remain as /content/xml/turbine.xml...etc. In other words,
every user see their own set of data, which is stored in the xml file.
Since I can't seem to use cocoon portlet to accomplish this, I'm thinking
about writing my own portlet. I will get the appropriate xml file for the
user logged on and then call the handle method of the cocoon engine to get
the html which will be rendered. (These are new to me, so I'm still in the
research stage...I appreciate any suggestion)
> -----Original Message-----
> From: Neeme Praks [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 12:02 PM
> To: JetSpeed
> Subject: RE: Using cocoon portlet with dynamic XML file
>
>
>
> what do you mean by "different XML file for different users"?
> could you explain in more detail, what are you trying to achieve?
>
> Neeme
>
> > -----Original Message-----
> > From: Angel Ko [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 19, 2000 7:35 PM
> > To: JetSpeed
> > Subject: Using cocoon portlet with dynamic XML file
> >
> >
> > I would like to use the cocoon portlet. But I need to give
> > it a different
> > XML file for different users. In the portletregistry,
> > instead of specifying
> > an XML file in the <url>, I was thinking of specifying a
> servlet, i.e.
> > <url>/servlet/GetUserXML</url>, which will return the name of
> > the XML file
> > for the user. This does not work. Can cocoon portlet meet
> > my requirement
> > for "dynamic XML" or should I write my own portlet to do this?
> >
> > thanks!
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]