Closed GoogleCodeExporter closed 9 years ago
这可能就是req.getRequestURI 和 req.getPathInfo的区别。
Original comment by jiongs...@gmail.com
on 20 May 2010 at 10:08
我印象中 Nutz用的是 req.getPathInfo
Original comment by wendal1985@gmail.com
on 20 May 2010 at 11:02
Nutz 获取 request 的路径是逻辑:
===================================================================
public static String getRequestPath(HttpServletRequest req) {
String path = req.getPathInfo();
if (null == path)
path = req.getServletPath();
if (null == path)
return "";
int lio = path.lastIndexOf('.');
if (lio > 0)
path = path.substring(0, lio);
return path;
}
===================================================================
更多情况请参看 wiki: http://code.google.com/p/nutz/wiki/mvc_url_mapping
Original comment by zozoh...@gmail.com
on 20 May 2010 at 4:11
Original issue reported on code.google.com by
jiongs...@gmail.com
on 20 May 2010 at 10:07