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.jsp    23 Jan 2003 00:07:07 -0000      1.3
+++ webapps/admin/banner.jsp    22 Oct 2004 00:48:35 -0000
@@ -20,7 +20,7 @@
       <td align="left" valign="middle">
         <div class="masthead-title-text" align="left"><img 
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="left">&nbsp </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]

Reply via email to