Open GoogleCodeExporter opened 9 years ago
usare
o 3.2 Using the Managed Query Parameter facility
o 3.5 Parsing complex / dynamic-length URLs
public class UrlParsingBean
{
public String parseComplexUrl() throws UnsupportedEncodingException
{
String uri = PrettyContext.getCurrentInstance().getOriginalUri();
List<String> categoryChain = new ArrayList<String>();
while(uri.length() > 0)
{
int index = uri.indexOf('/');
String value = uri.substring(0, index);
categoryChain.add(URLDecoder.decode(value, "UTF-8"));
uri = uri.substring(index);
}
//now load the data...
return "/blag/viewArticle.jsf";
}
}
Original comment by fiorenzino@gmail.com
on 17 Apr 2010 at 9:55
Original issue reported on code.google.com by
fiorenzino@gmail.com
on 16 Apr 2010 at 11:14