ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   Exception thrown
Date:   2003-12-03 07:48:03
From:   anonymous2
Two problems:


One - request.getQueryString() can return null;
Second - On windows, File.getAbsolutePath() returns path with backslashes (\), and the code "name.lastIndexOf" uses "/" - should be using "File.separatorChar".


1 to 1 of 1
  1. Exception thrown
    2003-12-03 16:52:50  jfalkner [View]

1 to 1 of 1