[thelist] OT: Mozilla bug needs votes

pixel pixel at pixelfreak.net
Tue May 28 15:24:01 CDT 2002


This is off topic, but thought it might be of interest to people on the
list.

There is a particular regression that as made it's way into Mozilla RC3
regarding window.open()

http://bugzilla.mozilla.org/show_bug.cgi?id=130174

scrollbars=0 is being ignored in calls to window.open(). We have many
sites that use this feature and scrollbars are covering content which
has a strong visual impact on design.

Bugs with more 'votes' tend to get higher visiblity with developers and
better odds of getting fixed. Mozilla is the foundation for Netscape 7
so if you rely on this feature, let your voice be heard and vote for
this bug!

~Scott

<tip type="case sensitive, Tomcat 4.x, error page" author="pixel">

While running in stand-alone mode, Apache Tomcat's URLs are case
sensitive, even on Windows. If all of your physical files are in lower-case
but a user submits a URL with mixed or upper-case you will get a 404.

As a workaround, register a custom error page in your web.xml file with
the following JSP code at the top of the document.

<%@page language="java" import="java.io.*" %>
<%
String requestedURL =
((String)request.getAttribute("javax.servlet.error.message")).toLowerCase();
ServletContext ctx = getServletContext();
String realPath = ctx.getRealPath(requestedURL);

try {
    File reqFile = new File(realPath);
    if (reqFile.exists()) {
        response.sendRedirect(requestedURL);
    }
} catch (Exception ex) {}// usualy it's a bad idea to ignore exceptions,
but since this *is* an error page.....
%>

The page will redirect the browser to a lower-case version of the file,
if it exists. Otherwise, the body of the custom error page will be
displayed.
Note: this is a simple example that only works with physical files that
are lower-case and does not pass referer information or query strings.

</tip>




More information about the thelist mailing list