Tomcat 4.1.18 session objects
Where can I find the changes list from Tomcat 4.0.x to Tomcat 4.1.x. Could someone answer 'session' question mentioned below | I moved my web appl from Tomcat 4.0.4 to Tomcat4.1.18. | For each user session I store the reference| to the session in a Vector so that I | can tell what users are logged-in, last-accessed-time etc. It was working fine | in Tomcat 4.0.4. But in Tomcat4.1.18 (perhaps due to new specifications) session | objects are pooled (StandardSessionFactory) and hence the references I | am storing in the Vector become useless across the jsp page calls. I have a | thread that uses this Vector to clean up the users that are timedout but since | the session refs in my Vector are useless I can do nothing. Instead of | storing the refs if I store Session IDs then can I get ref to a session from | JSP Server so that I can get the attributes I have set in it. Please comment. -- Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Block a dir to not display its content
holger.klein I tried but. Where inside web.xml I need to put! -- - Original Message - From: Holger Klein-Altstedde [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 4:53 PM Subject: AW: Block a dir to not display its content Try init-param param-namelistings/param-name param-valuefalse/param-value /init-param in your web.xml. This will force Tomcat not indexing your directory. Regs Holger -Ursprüngliche Nachricht- Von: D Bamud [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. August 2002 13:21 An: Tomcat Users List Betreff: Block a dir to not display its content Tomcat4.0.4 / J2SDK1.4.0/W2K My application is webapps/bbc. It works just fine. The dirs inside it are jsp and WEB-INF. Inside the jsp dir I have my *.jsp files and also some directories like doc, src, images etc. These are the directories that the end user should not see content of via the browser. If someone make a URL like /bbc/jsp/doc the contents are displayed on the browser and the user could see/save them. I want to prevent them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x onwards). How to do it. One way is of-course put default file like index.html (based on the configuration). But I am looking for more better way (WEB-INF way). Where and what I need to delcare. -- Thanks -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Block a dir to not display its content
Many thanks! - Original Message - From: Holger Klein-Altstedde [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 5:01 PM Subject: AW: Block a dir to not display its content I attached the file /conf/web.xml Ist in the servlet section. Regs Holger -Ursprüngliche Nachricht- Von: R.C.Nougain [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. August 2002 13:27 An: Tomcat Users List Betreff: Re: Block a dir to not display its content holger.klein I tried but. Where inside web.xml I need to put! -- - Original Message - From: Holger Klein-Altstedde [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 4:53 PM Subject: AW: Block a dir to not display its content Try init-param param-namelistings/param-name param-valuefalse/param-value /init-param in your web.xml. This will force Tomcat not indexing your directory. Regs Holger -Ursprüngliche Nachricht- Von: D Bamud [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. August 2002 13:21 An: Tomcat Users List Betreff: Block a dir to not display its content Tomcat4.0.4 / J2SDK1.4.0/W2K My application is webapps/bbc. It works just fine. The dirs inside it are jsp and WEB-INF. Inside the jsp dir I have my *.jsp files and also some directories like doc, src, images etc. These are the directories that the end user should not see content of via the browser. If someone make a URL like /bbc/jsp/doc the contents are displayed on the browser and the user could see/save them. I want to prevent them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x onwards). How to do it. One way is of-course put default file like index.html (based on the configuration). But I am looking for more better way (WEB-INF way). Where and what I need to delcare. -- Thanks -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp in packages
Craig, Your response confirms what I thought. My questions was purely educational and not that I am having such cases in my code. Thanks for your response. Surely no one should put logic in the PL (jsp). But someone could define and use a utility method (eg putting a HTML table showing some data eg date etc) in jsp. I positive that this is something that could be done if not in current JSP version but in future versions. There could be a directive eg THIS.doit() that gets translated by the JSP engine into something like colrs$jsp.doit() (colrs.jsp is the jsp file). Though it is certainly not that important as required but could be done. Perhaps also at instance level! Thanks - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 9:18 PM Subject: Re: jsp in packages On Tue, 13 Aug 2002, D Bamud wrote: Date: Tue, 13 Aug 2002 12:27:53 +0530 From: D Bamud [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: jsp in packages Q1. Can I declare my jsp files in packages? How? No. You have zero control over what package the JSP compiler puts your page in, or even what the class name of the generated servlet is. Q2. I have written a static method in one jsp page. I want to call this method in another jsp page. How to do it? I do not want to take this method out from the jsp and put into a class (.java) and use it in both the jsp files. You need to rethink your do not want to take this method out statement. JSP pages and servlets are designed to be totally independent components, and you can't get a reference to an instance of one page or servlet from another. Shared logic and shared data *must* be stored in separate classes. And, you're going to need to understand how to organize your code properly to work on larger scale projects anyway, so now is a good time to start. Hint -- putting logic in your JSP pages is not a good design practice. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection aborted by peer: socket write error
Tomcat3.2.3 / JDK1.3.1 / IE5.0 Q1. I am getting following error. Any idea why it is happening? 2002-06-10 14:16:55 - Ctx( /act ): IOException in: R( /act + js/utils.js + null) Connection aborted by peer: socket write error. I have a line in my html page that looks as SCRIPT LANGUAGE=JavaScript SRC=js/utils.js/SCRIPT in my jsp file. Q2. Is there a method to know if a given session object is invalidated or not? Q3. Is there ready made API that can give the list of session objects currently active. I know HttpSessionContext is deprecated. Regards -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]