cvs commit: jakarta-tomcat-catalina/webapps/admin/users user.jsp

2003-08-28 Thread amyroh
amyroh  2003/08/27 16:32:30

  Modified:webapps/admin login.jsp
   webapps/admin/users user.jsp
  Log:
  Get rid of the maximum size of the username and password fields.
  Fix 22268 to allow to use SHA digest.
  
  Revision  ChangesPath
  1.4   +2 -2  jakarta-tomcat-catalina/webapps/admin/login.jsp
  
  Index: login.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/login.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- login.jsp 23 Jan 2003 00:07:07 -  1.3
  +++ login.jsp 27 Aug 2003 23:32:30 -  1.4
  @@ -51,7 +51,7 @@
   font color=#FFlabel for=usernamebean:message 
key=prompt.username//label/font
 /th
 td align=left
  -input type=text name=j_username size=16 maxlength=16 
id=username/
  +input type=text name=j_username size=16 id=username/
 /td
   /tr
   p
  @@ -60,7 +60,7 @@
   font color=#FFlabel for=passwordbean:message 
key=prompt.password//label/font
 /th
 td align=left
  -input type=password name=j_password size=16 maxlength=16 
id=password/
  +input type=password name=j_password size=16 id=password/
 /td
   /tr
   
  
  
  
  1.7   +2 -2  jakarta-tomcat-catalina/webapps/admin/users/user.jsp
  
  Index: user.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/users/user.jsp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- user.jsp  28 Mar 2003 22:38:35 -  1.6
  +++ user.jsp  27 Aug 2003 23:32:30 -  1.7
  @@ -85,7 +85,7 @@
   html:hidden property=username/
 /logic:present
 logic:notPresent name=userForm property=objectName
  -html:text property=username size=24 maxlength=32 
styleId=username/
  +html:text property=username size=24 styleId=username/
 /logic:notPresent
   /controls:data
 /controls:row
  @@ -96,7 +96,7 @@
 bean:message key=users.prompt.password/
   /controls:label
   controls:data
  -  html:password property=password size=24 maxlength=32 
styleId=password/
  +  html:password property=password size=24 styleId=password/
   /controls:data
 /controls:row
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 10270] - jsp:include breaks with non-String rtexpr

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10270.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10270

jsp:include breaks with non-String rtexpr





--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 00:00 ---
JSP.2.11.13 describes expressions in template text, not expresions in action
attributes, as is the case here.  JSP.2.13.2.3 says

Request-time expressions can be assigned to properties of any type.
 No automatic conversions will be performed.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: jakarta-tomcat-catalina/webapps/admin/users user.jsp

2003-08-28 Thread Amy Roh
Forgot to credit Jeff Tulley ([EMAIL PROTECTED]) for the patch.  Thanks.

[EMAIL PROTECTED] wrote:
amyroh  2003/08/27 16:32:30

  Modified:webapps/admin login.jsp
   webapps/admin/users user.jsp
  Log:
  Get rid of the maximum size of the username and password fields.
  Fix 22268 to allow to use SHA digest.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-tomcat-site/xdocs-faq misc.xml performance.xml security.xml

2003-08-28 Thread funkman
funkman 2003/08/27 17:20:56

  Modified:docs/faq misc.html performance.html security.html
   docs/faq/printer misc.html performance.html security.html
   xdocs-faq misc.xml performance.xml security.xml
  Log:
  FAQ Updates (Questions added)
  - How do I make a scheduled event on Tomcat?
  - What is the default login for the manager and admin app?
  - What is codeElement web-app does not allow servlet here/code?
  - Is Tomcat faster than serving static HTML pages than apache?
  
  Revision  ChangesPath
  1.8   +584 -542  jakarta-tomcat-site/docs/faq/misc.html
  
  Index: misc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/misc.html,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- misc.html 26 Aug 2003 09:08:17 -  1.7
  +++ misc.html 28 Aug 2003 00:20:56 -  1.8
  @@ -1,543 +1,585 @@
  -htmlheadMETA http-equiv=Content-Type content=text/html; 
charset=iso-8859-1titleTomcat FAQ - Miscellaneous Questions/titlemeta 
value=Tim Funk name=authormeta value=[EMAIL PROTECTED] name=emailstyle
  -  dt { font-size : larger;  font-weight : bold }
  -  dd {padding-bottom : 10px;}
  -/style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=4 width=100% 
border=0!--PAGE HEADER--trtd colspan=2!--JAKARTA LOGO--a 
href=http://jakarta.apache.org/;img border=0 alt=The Jakarta Project 
align=left src=http://jakarta.apache.org//images/jakarta-logo.gif;/a!--PROJECT 
LOGO--a href=http://jakarta.apache.org/tomcat/;img border=0 alt=
  -  Tomcat FAQ
  - align=right src=../images/tomcat.gif/a/td/tr!--HEADER 
SEPARATOR--trtd colspan=2hr size=1 noshade=/td/trtr!--LEFT SIDE 
NAVIGATION--td nowrap=true valign=top 
width=20%pstrongLinks/strong/pullia href=..Tomcat 
Home/a/lilia href=index.htmlFAQ 
Home/a/li/ulpstrongContents/strong/pullia 
href=bugs.htmlBugs/a/lilia href=classnotfound.htmlClass Not 
Found/a/lilia href=connectors.htmlConnectors/a/lilia 
href=database.htmlDatabase/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto;How do 
I/a/lilia href=unix.htmlLinux / Unix/a/lilia 
href=memory.htmlMemory/a/lilia href=meta.htmlMeta/a/lilia 
href=misc.htmlMiscellaneous/a/lilia href=performance.htmlMonitoring / 
Performance/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links;Other 
Resources/a/lilia href=security.htmlSecurity/a/lilia 
href=version.htmlWhich Version/a/lilia href=tomcatuser.htmlTomcat User 
List/a/lilia href=windows.htmlWindows/a/li/ul/td!--RIGHT SIDE MAIN 
BODY--td align=left valign=top width=80%table cellspacing=4 width=100% 
border=0trtd nowrap=true valign=top align=lefth1Tomcat 
FAQ/h1h2Miscellaneous Questions/h2/tdtd nowrap=true valign=top 
align=rightsmalla href=printer/misc.htmlimg alt=Printer Friendly Version 
border=0 src=../images/printer.gifbrprint-friendlybrversion
  -/a/small/td/tr/tabletable cellpadding=2 
cellspacing=0 border=0trtd bgcolor=#525D76font 
face=arial,helvetica.sanserif color=#ffa 
name=PrefacestrongPreface/strong/a/font/td/trtrtdblockquote
  -p
  -Questions that were not categorized.
  -/p
  -/blockquote/td/tr/tabletable cellpadding=2 cellspacing=0 
border=0trtd bgcolor=#525D76font face=arial,helvetica.sanserif 
color=#ffa 
name=QuestionsstrongQuestions/strong/a/font/td/trtrtdblockquote
  -p
  -  ul
  -li
  -  a href=#compile
  -I am unable to compile my JSP!
  -  /a
  -/li
  -li
  -  a href=#invoker
  -I can't get servlets to work under code/servlet/*/code!
  -  /a
  -/li
  -li
  -  a href=#evil
  -Why is the invoker evil?
  -  /a
  -/li
  -li
  -  a href=#version
  -How to I get Tomcat's version number?
  -  /a
  -/li
  -li
  -  a href=#cpu
  -Tomcat eats 100% of the CPU!
  -  /a
  -/li
  -li
  -  a href=#properties
  -How do I set system properties at startup?
  -  /a
  -/li
  -li
  -  a href=#error
  -How do I get a customized error page?
  -  /a
  -/li
  -li
  -  a href=#le
  -Should I use the LE version?
  -  /a
  -/li
  -li
  -  a href=#persist
  -How do I configure Tomcat to NOT to store the sessions during shutdown?
  -  /a
  -/li
  -li
  -  a href=#tagpool
  -How do I disable tag pooling?
  -  /a
  -/li
  -li
  -  a href=#dtd
  -Is there a DTD for server.xml?
  -  /a
  -/li
  -li
  -  a href=#welcome
  -How do I change the welcome file?
  -(I want to show index.jsp instead of index.html)
  -  /a
  -/li
  -li
  -  a href=#listing
  -How do I enable/disable directory listings?
  -  /a
  -/li
  -li
  -  a href=#ip
  -How do I make Tomcat listen on a specific IP
  - 

commons-dbcp and pool

2003-08-28 Thread Amy Roh
Where do these jars get used?  They're under core optional libraries in 
build.properties.  Do we need these jars in order to fun tomcat 
standalone, manager, and admin webapp?

Thanks,
Amy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 18147] - Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18147.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18147

Using HttpServletResponse.sendRedirect() with a mailto loses the 'to' information

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 01:30 ---
Tested with 4.1.27 with no problems. (Standalone connectors) I think it was
fixed. Marking as WORKSFORME

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 21357] - tomcat: jsp scriptlets area executed twice

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21357.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21357

tomcat: jsp scriptlets area executed twice

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 01:42 ---
Check your access logs. The page is begin requested twice by your webbrowser.

This is because the background attribute is a URL for an image. So if I call the
page cowbell.jsp, then cowbell.jsp#00 will be requested.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 20816] - Realm Authentication does not restore Original POST request.

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20816.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20816

Realm Authentication does not restore Original POST request.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 01:05 ---
This can't be done because of spec limitations. See SRV.12.5.3 Form Based
Authentication, bullet 7 states: If the user is authorized, the client is
redirected to the resource using the stored URL path.

There is a limitation in the HTTP Spec. A POST can not be issued for a redirect.
(IIRC, there might be discussions about redirects VS POST somewhere in the
jakarta-commons/httpclient mailing archives)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 15291] - Security Manager Does not work

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15291.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15291

Security Manager Does not work

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 01:09 ---
Resolving as works for me based on Jean-Francois Arcand comments and lack of
followup to present a test case.

The == is intentional. (I forget why but it was discussed in a tomcat-dev thread)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 20125] - Tomcat 4.0.4 shuts down without error

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20125.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20125

Tomcat 4.0.4 shuts down without error

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 01:12 ---
If this is still a problem, please us tomcat-user to debug. There is not enough
information to reproduce or start to investigate.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 21711] - Error when compiling a JSP that uses a TLD 1.1

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21711.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21711

Error when compiling a JSP that uses a TLD 1.1





--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 03:38 ---
Good news!  The JSP 2.0 spec doesn't call for any special treatment of 
attributes named id, and javax.servlet.jsp.tagext has been updated to 
reflect this, so your JSP will run under the next release of Tomcat 5 (which 
as far as I can tell treats all JSPs as 2.0, making much of what I said above 
moot).

I'm still inclined to consider your bug report invalid (what's the point of 
making people specify the JSP version of a TLD if you're going to ignore it?), 
but that's the Tomcat team for you: so thorough that they even fix the invalid 
bugs. :-)

Also, I said above that I didn't have access to the code that was throwing the 
exception.  I've since found it; it's in the apache.org CVS under the module 
name jakarta-servletapi-5.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [VOTE] New committer: Eric Carmichael

2003-08-28 Thread Eric Carmichael
 +1, welcome on board

Thanks, happy to be here.

 If he like Xerces, he can jump on that side too ;-)
 -- Jeanfrancois

I'm going to stick to Tomcat 5/Jasper 2 while there are still bugs there
that I can do something about.  After that, well, Xerces can't be any less
glamorous than SMAPping

Finally, while I have the floor, I'd like to ask for guidance on Bugzilla
#21390, which has been pending longer than any of the other Tomcat 5/Jasper
2 bugs.  It can be fixed in two very different ways, and I don't know which
way is the right way.  I've written the spec folks to ask for clarification,
but I haven't had a response, so I'm hoping someone on this list can direct
me.

Eric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: commons-dbcp and pool

2003-08-28 Thread Remy Maucherat
Amy Roh wrote:
Where do these jars get used?  They're under core optional libraries in 
build.properties.  Do we need these jars in order to fun tomcat 
standalone, manager, and admin webapp?
A datasource provider is bundled with Tomcat, because many people want it.

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


jk 1.2.5 and ipv6

2003-08-28 Thread Henri Gomez
Hi to all,

Still working on finding why iSeries couldn't use Unix98 def in_addr_t.

BTW, what about adding ipv6 support in jk_connect.c by using inet_pton
instead of inet_addr ?
I'd like to have replies from people who have differents OS to know if
they have support for inet_pton...
Regards

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[5.0] JMX 1.2

2003-08-28 Thread Remy Maucherat
As discussed before, I'm going to package the JMX RI 1.2.1 with TC 5.0.x 
from now on (after testing, of course).
I'll leave MX4J part of the build process.

Q to the Sun folks: can I legally ship the JMX remote 1.0 RI binary with 
Tomcat ?

Remy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question about harvard.edu:8080

2003-08-28 Thread Dan
I emailed you a couple weeks ago regarding our site and am wondering if
you had time to get to it.  My question was regarding your mention of
mobot.org on your page http://flora.huh.harvard.edu:8080/flora/index.jsp
and whether your visitors would also like our site,
www.Flower-Delivery-Flowers.com .  We are building a website directory
devoted to flowers, gardening, and a variety of similar topics.  You can
put your site in our directory for free if you are interested in
exchanging links, at
http://www.Flower-Delivery-Flowers.com/cgi-bin/links/add.cgi .

Please email me if you have any questions.  I won't bother you again if I
don't hear from you.

Thanks,
Dan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jk 1.2.5 and ipv6

2003-08-28 Thread Glenn Nielsen
Henri,

Can this wait until after the mod_jk 1.2.5 release?

BTW, int inet_pton(int af, const char *cp, void *addr);
is available in both Solaris 7 and 8.
And on FreeBSD 4.8 it is defined as:
int inet_pton __P((int, const char *, void *));
Regards,

Glenn

Henri Gomez wrote:
Hi to all,

Still working on finding why iSeries couldn't use Unix98 def in_addr_t.

BTW, what about adding ipv6 support in jk_connect.c by using inet_pton
instead of inet_addr ?
I'd like to have replies from people who have differents OS to know if
they have support for inet_pton...
Regards

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[PATCH] Tomcat5 StatusManagerServlet

2003-08-28 Thread TANAKA Yoshihiro
I couldn't get correct Japanese messages on Server Status
in the HTML manager screen because the StatusManagerServlet of TC5
has a problem about i18n.

I made a patch as follows, and hope that you will include it
on next release.

Thanx for developing Tomcat!


Index: StatusManagerServlet.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusManagerServlet.java,v
retrieving revision 1.10
diff -u -r1.10 StatusManagerServlet.java
--- StatusManagerServlet.java   17 Aug 2003 14:50:24 -  1.10
+++ StatusManagerServlet.java   23 Aug 2003 15:38:09 -
@@ -70,6 +70,7 @@
 import java.text.MessageFormat;
 import java.util.Enumeration;
 import java.util.Iterator;
+import java.util.Locale;
 import java.util.Set;
 import java.util.Vector;
 
@@ -90,6 +91,10 @@
 
 import org.apache.tomcat.util.compat.JdkCompat;
 
+import org.apache.catalina.ContainerServlet;
+import org.apache.catalina.Context;
+import org.apache.catalina.Deployer;
+import org.apache.catalina.Wrapper;
 import org.apache.catalina.util.ServerInfo;
 import org.apache.catalina.util.StringManager;
 
@@ -101,7 +106,7 @@
  */
 
 public class StatusManagerServlet
-extends HttpServlet implements NotificationListener {
+extends HttpServlet implements NotificationListener, ContainerServlet {
 
 
 // - Instance Variables
@@ -150,8 +155,57 @@
 StringManager.getManager(Constants.Package);
 
 
+/**
+ * The Context container associated with our web application.
+ */
+protected Context context = null;
+
+
+/**
+ * The Wrapper container associated with this servlet.
+ */
+protected Wrapper wrapper = null;
+
+
+/**
+ * The Deployer container that contains our own web application's Context,
+ * along with the associated Contexts for web applications that we
+ * are managing.
+ */
+protected Deployer deployer = null;
+
+
 // - Public Methods
 
+// getWrapper()  setWrapper() are added to get Context. (ytp)
+/**
+ * Return the Wrapper with which we are associated.
+ */
+public Wrapper getWrapper() {
+
+return (this.wrapper);
+
+}
+
+
+/**
+ * Set the Wrapper with which we are associated.
+ *
+ * @param wrapper The new wrapper
+ */
+public void setWrapper(Wrapper wrapper) {
+
+this.wrapper = wrapper;
+if (wrapper == null) {
+context = null;
+deployer = null;
+} else {
+context = (Context) wrapper.getParent();
+deployer = (Deployer) context.getParent();
+}
+
+}
+
 
 /**
  * Initialize this servlet.
@@ -247,7 +301,10 @@
   HttpServletResponse response)
 throws IOException, ServletException {
 
-response.setContentType(text/html);
+Locale locale = Locale.getDefault();
+String charset = context.getCharsetMapper().getCharset(locale);
+response.setLocale(locale);
+response.setContentType(text/html; charset= + charset);
 
 PrintWriter writer = response.getWriter();
 

--
   TANAKA Yoshihiro(ytp) /   http://www.ytp.ne.jp/
 ---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jk 1.2.5 and ipv6

2003-08-28 Thread Kurt Miller
It is supported on OpenBSD.

int inet_pton(int, const char *, void *);

Regards,
-Kurt

From: Henri Gomez [EMAIL PROTECTED]
 Hi to all,
 
 Still working on finding why iSeries couldn't use Unix98 def in_addr_t.
 
 BTW, what about adding ipv6 support in jk_connect.c by using inet_pton
 instead of inet_addr ?
 
 I'd like to have replies from people who have differents OS to know if
 they have support for inet_pton...
 
 Regards
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 3839] - Problem bookmarking login page

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3839.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3839

Problem bookmarking login page





--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 17:54 ---

There is a dirty hack way of solving this in TC4. I should probably be flogged in 
public for posting 
such a filthy hack, but anyway... I suspect it is not very portable.

In web.xml define an error page for 400 such as 'error400.jsp':
In that page do something along the lines of:

%
String requestURI = (String)request.getAttribute( javax.servlet.error.request_uri );
boolean isLogin = requestURI.indexOf( j_security_check ) = 0;

if ( isLogin ) {
String username = request.getParameter( j_username );
String password = request.getParameter( j_password );

session.setAttribute( j_username, username );
session.setAttribute( j_password, password );

response.sendRedirect( /some/protected/resource );
return;
}
%
// display error message.




In the form based login page do something like:

%
  // j_username and j_password may be set in the error400.jsp page on a 
  // direct reference to the j_security_check page.
  String username = (String)session.getAttribute( j_username );
  String password = (String)session.getAttribute( j_password );

  boolean autoLogin = username != null  password != null;

  if ( autoLogin ) {
session.removeAttribute( j_username );
session.removeAttribute( j_password );
%

  form name=login method=POST action=j_security_check
input type=hidden name=j_username value=%=username%/
input type=hidden name=j_password value=%=password%/
  /form

  script language=JavaScript
document.login.submit();
  /script

%
// now let the browser auto submit the login.
return
  }
%

//  Display your normal  login page.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22801] New: - password characters restricted

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22801.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22801

password characters restricted

   Summary: password characters restricted
   Product: Tomcat 4
   Version: 4.1.27
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


In installing, if you enter a password for the administrator such as xy, the 
ampersand is not escaped in conf/tomcat-users.xml, causing the naming context 
lookup to fail and prevent Tomcat from starting.

Either the installer should prohibit use of such characters, or should warn 
against it, or the proper escaping should occur.

The workaround is to change the password.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 19002] - Tomcat 4.1 + JDK 1.4

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19002.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19002

Tomcat 4.1 + JDK 1.4

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 20:34 ---
This works for me without any problems using j2sdk 1.4.1_02, Win XP and Tomcat 
4.1 HEAD.

If you are still experiencing this problem, you need to be much more specific 
about your configuration. It would also be helpful if you could provide more 
information regarding your test webapp. For now, I am resolving this as 
WORKSFORME.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22806] New: - Link to Tomcat Administration

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22806.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22806

Link to Tomcat Administration

   Summary: Link to Tomcat Administration
   Product: Tomcat 4
   Version: 4.1.24
  Platform: Other
OS/Version: AIX
Status: NEW
  Severity: Major
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


all the default page of tomcat is OK except the link to Tomcat Administration
I have the folowin error :
HTTP status 500
org.apache.jasper.JasperException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:295)
...
...
...
root cause 
javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:533)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:192)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22802] New: - mappedfile option not working

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22802.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22802

mappedfile option not working

   Summary: mappedfile option not working
   Product: Tomcat 4
   Version: 4.1.18
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Jasper 2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Acording to the docs, when you set mappedfile on true, every line will be show
with one print statement.

If you use this code(Real World code):  

table width=100% border=0 cellspacing=5 cellpadding=6tr td table
width=100% border=0 cellpadding=2 cellspacing=1tr td font
color=#98 face=Verdana, Arial, Helvetica, sans-serifEpicrisis: a
href=javascript:cambiarEstadoSalidaPrevisible('pag1.jsp')Definicioacute;n
/a | a href=javascript:cambiarEstadoSalidaPrevisible('pag2.jsp')Consulta
/a | a href=javascript:cambiarEstadoSalidaPrevisible('pag3.jsp')Nota
Aclaratoria /a/td/tr/table/td/tr/table

In only one line, you get this output (based on the work directory results):
out.write(table width=\100%\ border=\0\ cellpadding=\2\
cellspacing=\1\);
  out.write(tr );
  out.write(td );
  out.write(font color=\#98\ face=\Verdana, Arial, Helvetica,
sans-serif\Epicrisis: );
  out.write(a
href=\javascript:cambiarEstadoSalidaPrevisible('pag1.jsp')\Definicioacute;n );
  out.write(/a | );
  out.write(a
href=\javascript:cambiarEstadoSalidaPrevisible('pag1.jsp')\Consulta );
  out.write(/a | );
  out.write(a
href=\javascript:cambiarEstadoSalidaPrevisible('pag1.jsp')\Nota Aclaratoria );
  out.write(/a);
  out.write(/td);
  out.write(/tr);
  out.write(/table);


The main web.xml (../tomcat4/conf/web.xml) has the following lines:
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
   /init-param
   init-param
   param-namelargefile/param-name
   param-valuetrue/param-value
   /init-param
   init-param
   param-namemappedfile/param-name
   param-valuetrue/param-value
   /init-param
load-on-startup3/load-on-startup
/servlet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22801] - password characters restricted

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22801.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22801

password characters restricted

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 19:31 ---


*** This bug has been marked as a duplicate of 15798 ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 15798] - Ampersand in admin password breaks installation

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15798.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15798

Ampersand in admin password breaks installation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 19:31 ---
*** Bug 22801 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22806] - Link to Tomcat Administration

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22806.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22806

Link to Tomcat Administration

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 21:40 ---
There have been several posts on the user list regarding this problem. The 
links below are just some of them.

http://marc.theaimsgroup.com/?l=tomcat-userm=105638213402688w=2
http://marc.theaimsgroup.com/?l=tomcat-userm=105351347230323w=2

I have also seen this when building from the source and I forget to compile 
the admin web app.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 234] - Can't set multiple cookies in servlet response headers through Ajp13 BugRat Report#371

2003-08-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=234.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=234

Can't set multiple cookies in servlet response headers through Ajp13 BugRat Report#371

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-08-28 21:49 ---
Closing bug as FIXED on the basis of Michael van Rooyen's previous post.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]