Tommaso Nuccio wrote:
> Hi all,
>
> <snip>
> The do refresh code looks like this:
> public void doRefresh(RunData rundata, Portlet portlet)
> {
> String temp = "";
> temp = rundata.getParameters().getString("sql");
> PortletSessionState.setAttribute(portlet, rundata, "sql", temp);
> }
> "sql" is a parameter I defined in the portlet:
> <parameter name="sql" value="select * from test" hidden="false"
> cachedOnName="true" cachedOnValue="true">
> <security-ref parent="admin-only"/>
> <meta-info>
> <title>SQL Query</title>
> <description>A descr.</description>
> </meta-info>
> </parameter>
>
> I want to access it in the template.jsp:
> if(rundata == null)
> out.write("No Data to run!");
> else
> {
> for (Enumeration e = request.getAttributeNames(); e.hasMoreElements();)
> {
> out.write(e.nextElement().toString() + " <br>");
> }
> out.write("---------------- <br>");
> out.write("SSL Session: " + (String)
> request.getAttribute "javax.servlet.request.ssl_session") + "<br>");
> out.write("PEID: " + (String) request.getAttribute("js_peid") + "<br>");
> out.write("TEMPLATE: " + (String) request.getAttribute("template") +
> "<br>");
> out.write("SQL: " + (String) request.getAttribute("sql") + "<br>");
> }
>
> The last out.write results in "Null" and I don't have any idea.
>
> Any help appreciated and more than welcome :o)
>
In Jetspeed 1, you'll get the parameters in PSML using
rundata.getInitParameter(<myparamName>).
--
Raphaël Luta - [EMAIL PROTECTED]
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]