in src/java/org/apache/fulcrum/parser/DefaultParameterParser.java [207:244]
private void handlePathInfo( HttpServletRequest request )
{
// Also cache any pathinfo variables that are passed around as
// if they are query string data.
try
{
boolean isNameTok = true;
String paramName = null;
String paramValue = null;
for ( StringTokenizer st =
new StringTokenizer(request.getPathInfo(), "/");
st.hasMoreTokens();)
{
if (isNameTok)
{
paramName = URLDecoder.decode(st.nextToken(), getCharacterEncoding());
isNameTok = false;
}
else
{
paramValue = URLDecoder.decode(st.nextToken(), getCharacterEncoding());
if (paramName != null && paramName.length() > 0)
{
add(paramName, paramValue);
}
isNameTok = true;
}
}
}
catch (Exception e)
{
// If anything goes wrong above, don't worry about it.
// Chances are that the path info was wrong anyways and
// things that depend on it being right will fail later
// and should be caught later.
}
}