RE: TC4, does it reuse / pool custom tags?
TC can reuse tag instances (since TC 3.3 I think), but doesn't by default. Look for TagPoolManagerInterceptor / in server.xml to turn that feature on. Ulf -Original Message- From: Peter Mutsaers [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 9:01 AM To: [EMAIL PROTECTED] Subject: TC4, does it reuse / pool custom tags? Hello, I was wondering if TC4 ever reuses instances of custom tags. It looks like I get a new instance each time. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Loading a file in servlet
You could specify the file name as an init parameter for your servlet in the web.xml file. That way you only need to restart your web application to pick up the new value. If a restart is too much of a disruption, create a little form where the file name can be submitted, and is then stored in a global/static variable, from where it can be picked up whenever the servlet is invoked. Ulf -Original Message- From: Rajesh Kannan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 3:50 PM To: [EMAIL PROTECTED] Subject: Loading a file in servlet Dear all, We are developing a web application consisting of some servlets and JSPs. To execute our servlets we need to get some values from a property file. Presently we are hardcoding the path of the property file and loading it. As in realtime we may be knowing the path we want to load that file without hardcoding. How normally property files are loaded into Java servlets??? Can any one throw light on this? We will be grateful if you give some hints. Thanks in advance With regards K.RajeshKannan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: installing Tomcat on MAC
Sara, a quick search for tomcat macintosh on www.alltheweb.com reveals that the new location is http://www.basilbourque.com/java4u/tomcat_on_macintosh/index.html You'll need to have Apple's MRJ SDK installed (i.e., the jar file with the Java compiler needs to be in the folder where all MRJ libraries go, something like System folder/Extensions/MRJ Libraries/MRJ Classes). That should be sufficient. Ulf -Original Message- From: sara frucht [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 4:12 PM Subject: installing Tomcat on MAC Hi - I need instructions on how to install Tomcat on the Mac. I am running OS 8.6 on a power Mac. I saw in your archives that Basil Bourque already answered this question, but the link he provided, www.rainwatersoft.com/java4u/tomcat_on_macintosh/index.html is no longer valid. Do you have an updated link, or some other place where I can get instructions?By the way, I have Java developement tools for writing and running applets already. Is Tomcat all I need to write and run JSP's? Thank you. Sara Frucht -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ServletContext - PLS HELP!!
Michael, Request attributes and Context attributes are two separate things. You should not expect to store an item in one and retrieve it from the other. The servlet context can be gotten be calling getServletContext() from within a servlet. Ulf -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: ServletContext - PLS HELP!! Hi! Can you help me, in what I'm doing wrong? I set an attribute in the servletcontext:in the initmethod! i can access the object using: config.getServletContext().getAttribute(test) but not request.getAttribute(test) WHY??? how to access this attribute if I only know the HttpServletRequest-object but not the HttpServlet-object, though I know the contextpath (request.getContextPath())??? thanks michi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]