Foros del Web » Programación para mayores de 30 ;) » Java »

Ayuda con servlet básico

Estas en el tema de Ayuda con servlet básico en el foro de Java en Foros del Web. Hola. Estoy siguiendo un tutorial muy bueno de Servlets y JSP (http://pdf.coreservlets.com/) y la verdad es que me quedo grande comprender este parrafo en inglés ...
  #1 (permalink)  
Antiguo 05/03/2008, 07:58
 
Fecha de Ingreso: noviembre-2007
Mensajes: 49
Antigüedad: 16 años, 5 meses
Puntos: 0
Ayuda con servlet básico

Hola. Estoy siguiendo un tutorial muy bueno de Servlets y JSP (http://pdf.coreservlets.com/) y la verdad es que me quedo grande comprender este parrafo en inglés y que trata acerca de el tipo de inicialización de los servlets por lo que he decidido postear en este thread. Ya que si alguién me puede ayudar de mejor manera son ustedes que tienen experiencia en servlets. Gracias

Cita:
Second, since the output of the servlet does not change except when the server is rebooted, init also stores a page modification date that is used by the getLastModified method. This method should return a modification time expressed in miliseconds since 1970, as is standard with Java dates. The time is automatically converted to a date in GMT appropriate for the Last-Modified header. More importantly, if the server receives a conditional GET request (one specifying that the client only wants pages marked If-Modified-Since a particular date), the system compares the specified date to that returned by getLastModified, returning the page only if it has been changed after the specified date. Browsers frequently make these conditional requests for pages stored in their caches, so supporting conditional requests helps your users (they get faster results) and reduces server load (you send fewer complete documents). Since the Last-Modified and If-Modified-Since headers use only whole seconds, the getLastModified method should round times down to the nearest second.

Última edición por hammett; 05/03/2008 a las 08:32
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:39.