Hi,
On Wednesday, December 12, 2012, helix84 wrote:
> On Wed, Dec 12, 2012 at 9:11 AM, Ian Boston <[email protected]<javascript:;>>
> wrote:
> > Is there a standard way of getting hold of the userID in Cocoon so I
> > can use the SetHeader[1] action in a pipeline in the theme ?
>
> Hi Ian,
>
> I've never done this, but here's documentation that explains what
> needs to be done:
>
> http://wiki.apache.org/cocoon/ResponseHeaderTransformer
>
> According to that, you would need to write a transformer aka aspect (a
> simple Java class) that gets the value and puts it into DRI. You also
> need to take care of adding it with the mentioned namespace. Then the
> listed sitemap declaration will make sure Cocoon transforms it into a
> HTTP header and leaves it out of the DRI.
Hmm, sounds complex and heavy. I might just try adding it to a servlet
filter as that will be generally reusable and probably won't require as
much object traffic through the GC to achieve.
>
> Hope that helps and if you succeed, please document this on the DSpace
> wiki.
Will do.
Thanks
Ian
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette