Opened 16 months ago

Last modified 16 months ago

#2265 new defect

Move all static content from jsps to servlets

Reported by: zzz Owned by: zzz
Priority: minor Milestone: 0.9.37
Component: apps/console Version: 0.9.34
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

jsps with nothing but Java code for serving static content was started by jrandom and has been proliferated in the years since.

This is inefficient as we must handle last-modified and other headers and responses ourselves, and we don't handle things like range headers. Jsp + things like FileUtil? replace efficient Jetty nio handling. We also have to set outbound headers like content-type.

By using a Servlet and setting the resource, most of that will be handled for us. To be replaced:

flags.jsp
viewhistory.jsp
viewtheme.jsp
viewrouterlog.jsp
viewwrapperlog.jsp

Subtickets

Change History (2)

comment:1 Changed 16 months ago by zzz

make new package net.i2p.router.web.servlets
move CodedIconRendererServlet? from helpers to servlets
add new servlets there
see also #2270

Note: See TracTickets for help on using tickets.