How do I sort blog entries by categories?
ExpiryHandler with jsp
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > ExpiryHandler with jsp 2 March 2005 15:19:27

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

ExpiryHandler with jsp

James Lee 2 March 2005 15:19:27
 Hello,

I've added an ExpiryHandler by using a jetty-web.xml file with:

<?xml version="1.0" encoding="ISO-8859-­1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortb­ay.org/configure.dtd­">

<Configure class="org.mortbay.­jetty.servlet.WebApp­licationContext">
<Call name="addHandler">
<Arg type="int">0</Arg>
<Arg>
<New class="org.mortbay.­http.handler.ExpiryH­andler">
<Set name="TimeToLive">6­00</Set>
</New>
</Arg>
</Call>
</Configure>

Which works perfectly for plain content but is ignored for JSP. For
JSP the header is set to:
Expires: Thu, 01 Jan 1970 00:00:00 GMT

I can set the Expires header explicitly in my JSP but can I set a
default value for all?

I tried adding after the WebApplicationHandl­er (default or position 1)
but then it doesn't do anything.




James.


-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_ide95&alloc_id3­96&op=click
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java Programming > ExpiryHandler with jsp 2 March 2005 15:19:27

see also:
Re: pgsql: Fix rtree and…
Checkpointing problem with new buffer…
Schedule for 8.1 feature freeze
pass tests:
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .