struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan" <jasb...@i-2000.com>
Subject question about processPath() line item in ActionServlet
Date Fri, 06 Jul 2001 13:53:25 GMT
Gentlemen.  In the ActionServlet's processPath() method the below code exists.


processPath(HttpServletRequest request) {
    .......
    .......
    if ((period >= 0) && (period > slash))path = path.substring(0, period);
    .......
}




Shouldnt the code instead read:
    if ((period >= 0) && (period > slash))path = path.substring(slash, period);

Mime
View raw message