> > 1. It produces some really horrible URLS. For example ~ > > http://www.yyy.com/index.jsp?level1=Products&level2=Goo&level3=... > > You don't have to use a query string. The above URL could >be http://www.yyy.com/products/Goo/MiracleGoo. Map the >entire 'products' tree to a single servlet, and then use >Request.getPathInfo() to get the rest of the path. Break >apart the path and use it to construct your database query >(or whatever) just like you would have done with a query >string.
I had actually tried exactly that, using JSPs but it didn't work. For example, using one of the 'snoop' example JSP that comes with Tomcat, the following creates a 'Page not found' error ~ http://127.0.0.1:8080/examples/jsp/snp/snoop.jsp/Products/Goo But as you correctly say, it works with a servlet ~ http://127.0.0.1:8080/examples/servlet/RequestInfoExample/Products/Goo Why is Tomcat clever enough to realize that in the latter case RequestInfoExample is a servlet and 'Products/Goo' is the pathinfo but in the first case it does not recognize snoop.jsp as the JSP and '/Products/Goo' as the pathinfo ? Anyway, I'll try this with a servlet now. Our dept head really wanted us to standardize on JSPs (he thinks wrongly that it separates form from functionality and that it will make it easier for programmers to work with designers) but I think Velocity will enable us to do everything that we can do with JSP. Thank you. Soefara. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
