Neeme Praks wrote:
> 
> Any chance of accessing rundata in my code in XSP?
> 
> As much as I looked at the code, I could see that I can access only raw
> request object, no rundata...
> 
> Well, then what is the official way of passing parameters to my XSP
> portlet? For example, I need a userID for the logged in user in my
> portlet... how can I get that?
> In Turbine screen I just called
>     int UserID = data.getUser().getId();
> 
> How could I work around this?
> 

Yes... I know.

Check out /content/dynamic/portletbrowser/xsp/index.xml

        FIX ME: The explicit use of JetspeedServletConfig() here is
*bad*.
        Remove this by adding an explicit "config" object to the Cocoon
XSP
        specification
        -->

        <xsp:logic>
        RunData rundata = RunDataFactory.getRunData( request, response,
new JetspeedServletConfig() );
        </xsp:logic>

We should have a better way of getting this.  

Right now though it works fine :)


-- 
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN:  "Please Open Source Java!"
"For evil to win is for good men to do nothing."


--
--------------------------------------------------------------
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]

Reply via email to