It was because the problem was intermittent that I took the approach I did. It sounded like malformed URLs only on certain websites. If this is the case, my solution is better than trying to anticipate every possible error in a URL, especially if it's corrupted in transit. I did not get the impression that a finite number of particular websites are being requested.
Mark -----Original Message----- From: tarunjava [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:55 AM hi Mark , u have given a good way to handle the problem but not the solution to it. Actually it really surprises me when some one says , a prob is accruing only sometimes. Mike check our for any spaces that u might be giving after the "=" sign. TARUN ----- Original Message ----- From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> > Test the value of url as null and length as in > > try { > if( request.getParameter( url) != null > && request.getParameter( url).length > 1) { > > [do all your stuff] > > } else { [log an error] } > } catch() > > Mark ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
