Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to Alter Tomcat Web Application Manager's Theme or Modify its Header?

I have couple instances of tomcat server sitting on my computer (one's production and one is staging/test/training).

The (example) url for the tomcat web app mgr for both production and test is as such:

Production: xWeb8.myOwnServer/manager/html

test: xWeb8Test.myOwnServer/manager/html

I was wondering if it is possible to access the Tomcat Web Application Manager and modify its display and/or add a color theme to indicate if it is production or test, etc.? If yes, how can this be done?

like image 949
Jason CH Dai Avatar asked Oct 28 '25 11:10

Jason CH Dai


1 Answers

In your webapps directory you will find the manager directory. Looking at the index.jsp, web.xml, and the source code to the HTMLManagerServlet, it looks like it is all hard-coded into the servlet. So it looks like it is not easily possible without rewriting the whole thing.

Update: You can create a Filter that modifies the HTML as it passes through the filter.

like image 145
Larry Shatzer Avatar answered Oct 31 '25 10:10

Larry Shatzer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!