Perhaps I¹m naïve, but I was looking for a Tomcat provided ³getCurrentURL ()² call, and assumed that nothing else could have that. :-)
Thank you for the SecurityManager suggestion, I hadn¹t thought about that. I¹ll look in to how much of a pain that is. -- Gregory Dougherty Sr. Analyst/Programmer | Information Technology Information Technology (507) 284-8493 | dougherty.greg...@mayo.edu On 2/11/16, 5:33 PM, "Mark Thomas" <ma...@apache.org> wrote: >On 11/02/2016 22:56, Dougherty, Gregory T., M.S. wrote: >> I would like to have a jar file in tomcat/lib that can be called from >>any of the running web apps. I need for the code in the jar to behave >>differently depending on which web app called it. It is not in this >>case possible for the code to ³trust² the caller to tell it the URL of >>the caller. >> >> Is it possible for that code to independently determine the URL of the >>caller? > >If you can't trust the caller to tell you the URL, you can't trust that >the caller isn't going to tinker with whatever mechanism you do use to >determine the URL. > >You'd have a better chance of doing this if you ran under a >SecurityManager but unless you write an application from the start with >the intention of running it under a SecurityManager it is usually a lot >of additional effort to update the app so it runs correctly. > >Mark > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org