You can write your own servlet filter that picks up the CGIServlet
requests and adds whatever parameters you need to the request. Just
make sure it's chained after the Acegi security filters.



On 4/24/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I use Tomcat 5.5 to run my Perl scripts as CGI programs with the help of the 
> CGIServlet (org.apache.catalina.servlets.CGIServlet) that comes with Tomcat.
>
> For testing I run Tomcat 5.5 on Windows XP with ActivePerl as interpretator.
>
> I've found out that Tomcat/Acegi creates a cookie with a JSESSIONID that I 
> can read in my Perl script. So I could create a table in a database with the 
> id as a key and then one or more columns with the data that I need to send to 
> the Perl scripts.
>
> I find this a bit awkward, but doable. I expected to be able to modify the 
> servlet request in some way (add a header or a parameter) but I can only do 
> that on the servlet response (after it has passed the Perl script) and not on 
> the request.
>
> Ben Alex wrote:
> >[EMAIL PROTECTED] wrote:
> >> I've managed to authorize my perl scripts now as expected.
> >> Now I need to send some data from my java filters i.e. roles possessed by 
> >> >the user to the CGI perl script but I don't know how to do this.
> >>
> >> Any suggestion?
> >>
> >What exact approach are you using to run your Perl scripts?
> >
> >Cheers
> >Ben
>
> Regards
> Gunnar
>
>
>
>
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
> _______________________________________________
> Home: http://acegisecurity.org
> Acegisecurity-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to