Yes, all of CAS's Request parameters are stored as part of the
HttpServletRequest and retrieved as via getParameter(...). Obtaining an
HttpServletRequest's attribute (via getAttribute(...)) is not the same
thing.
However, the default HttpServletRequest API does not expose a way to add
parameters. You'll either have to redirect and add the parameter or wrap the
request. There is also another thread detailing how to set a default
service is one is not provided. I don't have the link handy but a quick
search of Nabble should uncover it.
-Scott
On Feb 1, 2008 3:03 PM, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> OK - I think I got it. Just finishing up the post in case it helps
> someone else. When I looked for the service on the ServletRequest like
> this:
>
> req.getParameter("service");
>
> It returns null as the value of "service". However if I cast the request
> to an HttpServletRequest, then I get the correct value is return.
>
> Cheers,
> -Ole
>
>
> Scott Battaglia wrote:
> > Are you looking to set the service parameter on the client or on the
> server?
> >
> > -Scott
> >
> > On Jan 31, 2008 5:57 PM, Ole Ersoy <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > Hi,
> >
> > I'd like to set the service parameter before the authentication
> > request reaches cas. Is this is simple as doing:
> >
> > request.setParameter("service",
> > "http://theDefaultServiceHost/theDefaultService");
> >
> > The reason I'm suspicious is because I tried just getting the
> > service parameter from an authentication request via a filter like
> this:
> >
> > System.out.println("Service Parameter: " +
> > servletRequest.getAttribute("service"));
> >
> > And it just prints null...
> >
> > Thoughts?
> >
> > Thanks,
> > - Ole
> >
> >
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected] <mailto:[email protected]>
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
> >
> >
> > --
> > -Scott Battaglia
> >
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas