struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Kiley <jhki...@summa-tech.com>
Subject Re: How do I get a request header
Date Tue, 12 May 2009 13:12:37 GMT
ServletRequestAware?
jk

On Tue, May 12, 2009 at 9:03 AM, Jim Collings <jlistnews@gmail.com> wrote:

> Hmmm... So there isn't already an HeaderInterceptor?  Seems odd.
>
>
> Jim C.
>
> On Tue, May 12, 2009 at 8:54 AM, Struts Two <strutstwo@yahoo.ca> wrote:
>
> >
> > Here is one way I did to get "Authorization" value in the header:
> >
> > 1- Define an interceptor that retrieves "HttpServletRequest"
> > 2- Define an interface ,say HeaderAware.
> > 3- In your interceptor retrieve related values from Header and then
> inject
> > it into your action if it implements "HeaderAware.
> >
> > That should do it.
> >
> > --- On Tue, 5/12/09, Jim Collings <jlistnews@gmail.com> wrote:
> >
> > > From: Jim Collings <jlistnews@gmail.com>
> > > Subject: Re: How do I get a request header
> > > To: "Struts Users Mailing List" <user@struts.apache.org>
> > > Received: Tuesday, May 12, 2009, 12:40 PM
> > > I am also trying to retrieve an item
> > > in the header so that I can place it in
> > > the value stack.  Any ideas on how best to accomplish
> > > this?
> > >
> > > Jim C.
> > >
> > > On Tue, May 12, 2009 at 8:37 AM, Norris Shelton <
> norrisshelton@yahoo.com
> > >wrote:
> > >
> > > > I looked in the interceptors and did not see one that
> > > pulled the heders.
> > > >
> > > >
> > > > Norris Shelton
> > > > Software Engineer
> > > > Sun Certified Java 1.1 Programmer
> > > > Shelton Consulting, LLC
> > > > ICQ# 26487421
> > > > AIM NorrisEShelton
> > > > YIM norrisshelton
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >       __________________________________________________________________
> > Looking for the perfect gift? Give the gift of Flickr!
> >
> > http://www.flickr.com/gift/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>



-- 
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message