RE: Admin webapp context path fix
Hi, Patch applied to both Tomcat 5.0 and 5.5. Thank you for submitting it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 8:59 PM To: [EMAIL PROTECTED] Subject: Admin webapp context path fix Hi! The admin webapp doesn't work properly in context others than /admin. That's because on banner.jsp the form tag has a hardcoded path: /admin/commitChanges.do and /admin/logOut.do. I haven't found any other reference to /admin. This little patch can fix that. It's a fix for the admin webapp bundled with Tomcat 5.5. Thanks in advance! Horacio de Oro -- No hay daño tan grande como el del tiempo perdido. - Miguel Ángel Buonarroti This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin webapp context path fix
Hi! The admin webapp doesn't work properly in context others than /admin. That's because on banner.jsp the form tag has a hardcoded path: /admin/commitChanges.do and /admin/logOut.do. I haven't found any other reference to /admin. This little patch can fix that. It's a fix for the admin webapp bundled with Tomcat 5.5. Thanks in advance! Horacio de Oro -- No hay daño tan grande como el del tiempo perdido. - Miguel Ángel Buonarroti ? fix-admin-context-path.diff ? webapps/admin/META-INF ? webapps/admin/WEB-INF/lib Index: webapps/admin/banner.jsp === RCS file: /home/cvspublic/jakarta-tomcat-catalina/webapps/admin/banner.jsp,v retrieving revision 1.3 diff -u -r1.3 banner.jsp --- webapps/admin/banner.jsp23 Jan 2003 00:07:07 - 1.3 +++ webapps/admin/banner.jsp22 Oct 2004 00:48:35 - @@ -20,7 +20,7 @@ td align=left valign=middle div class=masthead-title-text align=leftimg src=images/TomcatBanner.jpg alt=Tomcat Web Server Administration Tool height=120/div /td - form method='post' action='/admin/commitChanges.do' target='_self' + form method='post' action='%=request.getContextPath()%/commitChanges.do' target='_self' td align=right valign=middle html:submit bean:message key=button.commit/ @@ -30,7 +30,7 @@ td width=1% div class=table-normal-text align=leftnbsp /div /td -form method='post' action='/admin/logOut.do' target='_top' +form method='post' action='%=request.getContextPath()%/logOut.do' target='_top' td align=right valign=middle html:submit bean:message key=button.logout/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]