I've hacked and slashed the authentication code to work with our
existing database, created custom controls and lots of other great
things with Jetspeed, but this one has me stumped. I've searched the
mailing list and the question has been asked a couple of times, but
nobody has an answer.
How can I access "parameter" values contained in either the
conf/portlets.xreg or the psml files within a JSP portlet?
We are using a third-party service to receive news feeds. The news is
categorized and in the request, I need to pass a category identifier to
them.
In order to get nice looking titles, I've made multiple entries in the
portlets.xreg file and the psml file, but I would like to be able to use
the same underlying code by passing a parameter to the JSP and having it
build the proper request string.
The portlets.xreg file contains:
<portlet-entry name="WorldNews" hidden="false" type="ref"
parent="JSP" application="false">
<meta-info>
<title>Word News</title>
<description>News Headlines from YellowBrix</description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname>
<parameter name="template" value="news.jsp" hidden="false"/>
<parameter name="category" value="International" hidden="false"/>
<media-type ref="html"/>
<url></url>
</portlet-entry>
<portlet-entry name="BusinessNews" hidden="false" type="ref"
parent="JSP" application="false">
<meta-info>
<title>Business and Finance</title>
<description>News Headlines from YellowBrix</description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname>
<parameter name="template" value="news.jsp" hidden="false"/>
<parameter name="category" value="Business%20and%20Finance"
hidden="false"/>
<media-type ref="html"/>
<url></url>
</portlet-entry>
... etc. for each category, and the PSML file (we are using role-based
PSML with all customization disabled)
<portlets>
<controller name="CardPortletController">
<parameter name="parameter" value="select-panel"/>
</controller>
<control name="MenuControl"/>
<layout/>
<metainfo>
<title>News</title>
</metainfo>
<entry parent="WorldNews">
<parameter name="category" value="International"/>
</entry>
<entry parent="BusinessNews"/>
<entry parent="APTopNews"/>
<entry parent="HealthNews"/>
<entry parent="TechnologyNews"/>
<entry parent="SportsNews"/>
<entry parent="EntertainmentNews"/>
</portlets>
So far, I haven't figured out any way to access the parameter "category"
from either the conf/portlets.xreg or psml. HELP!
Jim Schultz
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>