Re: t5: adding http header

2012-09-23 Thread netdawg
Thanks!! Yep, even though java -version on command line shows 1.6, the Eclipse (right click) project --> properties --> java compiler shows using "JDK 1.5 compliance". Changed that to 1.6 and sure enough no complaints on the @Override annotation anymore. And thanks for that typo catch ;-).

Re: t5: adding http header

2012-09-23 Thread Chris Mylonas
you've got a typo here :) > private static final String EXPIRE_DATE = "Exprires"; s/Exprires/Expires/g i haven't tried it but may give it a go l8r, useful looking service! off topic but [1] seems relevant there is a jquery prefilter suggestion when using jquery [1] = http://stackoverflow.

Re: t5: adding http header

2012-09-23 Thread Bob Harner
"probably", not "problem", sorry. On Sun, Sep 23, 2012 at 3:36 PM, Bob Harner wrote: > If the compiler complained about @Override, you are problem using a > 1.5 JDK and Wulf (I assume) was using 1.6. > > On Sun, Sep 23, 2012 at 3:25 PM, netdawg wrote: >> Wulf: Why (rather how) the @Override ann

Re: t5: adding http header

2012-09-23 Thread Bob Harner
If the compiler complained about @Override, you are problem using a 1.5 JDK and Wulf (I assume) was using 1.6. On Sun, Sep 23, 2012 at 3:25 PM, netdawg wrote: > Wulf: Why (rather how) the @Override annotation ? I actually had to remove > it for it work. > > Anyhooo...here is the complete workin

RE: t5: adding http header

2012-09-23 Thread netdawg
Wulf: Why (rather how) the @Override annotation ? I actually had to remove it for it work. Anyhooo...here is the complete working example (right or wrong, not sure)...comments welcome... Step 1. Created a class in your src/main/java -- SERVICES package - where you will find AppModule.java a

RE: t5: adding http header

2011-02-03 Thread Wechsung, Wulf
Hello Angelo, best use a request Filter. For example: public class IEStandardModeHeader implements RequestFilter { private static final String HEADER_KEY = "X-UA-Compatible"; @Override public boolean service(Request request, Response response, RequestHandler

Re: t5: adding http header

2011-02-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Feb 2011 09:10:11 -0200, Angelo C. wrote: Hi, Hi! I need to add some http headers into response, like Access-Control-Allow-Origin: "*", how to achieve this? Thanks, The better way depends on which pages do you want to do this. If it's all, create a RequestFilter and use the