RE: Struts 2 sample: Hello World (Maven Ant)
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/struts/struts2-blank/2.1.6/ (struts2=blank) may be just the thing to use for writing a struts2 hello world. Is this David Newton's contribution? Thanks. -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Monday, March 02, 2009 6:00 AM To: Struts Users Mailing List Subject: Re: Struts 2 sample: Hello World (Maven Ant) I think it will be even better to start from scratch with Struts2 archetype [1] [1] http://struts.apache.org/2.1.6/docs/struts-maven-archetypes.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
HttpServletResponse Transfer-Encoding header
Hi, 1) What's a great way to manipulate HttpServletResponse existing headers using struts2? I tried changing Transfer-Encoding to Chunked using an interceptor (AbstractInterceptor) before and after the actionInvocation.invoke();. I also tried again as a PreResultListener. I verified everything is hooked up and running via System.out.putlines. However, neither approach always affected the Transfer-Encoding value. I can add new headers using HttpServletResponse.addHeader(), but Transfer-Encoding seems different. 2) I also need a way to remove content-length if I can guarantee Transfer-Encoding is set to Chunked. Can I just set it to 0 and that counts? I looked at : http://www.w3.org/Protocols/rfc2616/rfc2616.html and http://en.wikipedia.org/wiki/Chunked_transfer_encoding Thanks, Mike Finney