[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: request.getRequestURI() in an include filter
Hello, thanks, yes, I see now that it's the way the API is designed, and in a way it is logical. My way would be logical too I guess, maybe even more, but I suppose it starts to be a matter of taste. Anyway, if it is, then I suppose there's something wrong with portlets - if invoking an include in them changes the requestURI. -- Cheers, Adam View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938548#3938548 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938548 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: request.getRequestURI() in an include filter
Adam, I would expect this behavior. If you do not understand this then review the Java API for RequestDispatcher. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938127#3938127 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938127 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: request.getRequestURI() in an include filter
Hello, I've read the javadocs, but in description of the include method there is no explition mention about how the request object is modified (as opposed to forward - For a RequestDispatcher obtained via getRequestDispatcher(), the ServletRequest object has its path elements and parameters adjusted to match the path of the target resource.). And if I include a resource, logically, the requestURI does change. Also, behaviour of this is different in portlets - there, if you include a resource in exactly the same way (except that the request dispatcher is obtained with a PortletRequest, not a ServletRequest), the requestURI is changed. -- Adam View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938131#3938131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938131 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: request.getRequestURI() in an include filter
Adam, I am not sure how to make you understand the difference. The API is very clear as far as I can tell. The include description does not mention changing the request because it does not change the request. Maybe if you consider the request/response cycle things will become more clear. When a request is processed, if an forward is called, the request is altered to new resource and the response is cleared. This would be kind of like starting the request/response cycle over only keeping any request processing in tact. If an include is called, the request is not changed. The included resource is called using same request object and the output is appended to the response. Does this help? cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938169#3938169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938169 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user