RE: Connect to MySQL.
IMHO I wouldn't put the jar in your Java installation. I would put it in CATALINA_HOME/common/lib. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+--- | | Wilson, Allen | | | [EMAIL PROTECTED]| | | search.com | | | | | | 10/20/2003 08:58 AM | | | Please respond to | | | Tomcat Users List | | | | |-+--- ---| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Connect to MySQL. | ---| Are you trying to make the connection to MySQL as part of the tomcat startup (Connection Pooling)? If so, I put the jar file in the jre/lib/ext of my java installation. Allen -Original Message- From: Nuno Paquete [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 7:16 AM To: [EMAIL PROTECTED] Subject: Connect to MySQL. Hi everyone. I'm having problems to connetc to MySQL. I put the connector driver in the respective directory, like it's writen in MySQL web site but i can connect. I think it's not a problem of source code, i think it a problem with the driver. Does anyone can tell me where should i put the driver? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to format number
Check out the class java.text.DecimalFormat from the j2se SDK. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+ | | Lawence | | | [EMAIL PROTECTED]| | | o.com | | || | | 10/07/2003 10:44 | | | AM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: Re: How to format number | ---| There are some non-standard nice library classes you can use for this purpose. Just google it. These classes enable you to format things like you are working with c/c++. Lee Chin Khiong [EMAIL PROTECTED] wrote: How to format a double in JSP or java ? for example : 10/3=3.3 I want to format it to 3.33. - Do you Yahoo!? The New Yahoo! Shopping - with improved product search This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TRACE/TRACK methods
Our company conducted a security audit and Tomcat was reported as supporting TRACE and TRACK. It said, It has been shown that servers supporting this method are subject to cross-site-scripting attacks, dubbed XST for 'Cross-Site-Tracing', when used in conjunction with various weaknesses in browsers. I have been assigned the task of turning off this support, but I have searched Google, tomcat-user archives and the Tomcat documentation to no avail. Does anyone know how to disable these methods? Thanks. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TRACE/TRACK methods
I'm not sure exactly how to do this. The Servlet Spec is pretty vague on how to add a security-constraint denying access via an http-method. Could you give me an example? Thanks. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+ | | Tim Funk | | | [EMAIL PROTECTED]| | | rg | | || | | 09/11/2003 11:44 | | | AM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: Re: TRACE/TRACK methods | ---| You can add a security constraint in web.xml to disable TRACE. -Tim Mark Lenz wrote: Our company conducted a security audit and Tomcat was reported as supporting TRACE and TRACK. It said, It has been shown that servers supporting this method are subject to cross-site-scripting attacks, dubbed XST for 'Cross-Site-Tracing', when used in conjunction with various weaknesses in browsers. I have been assigned the task of turning off this support, but I have searched Google, tomcat-user archives and the Tomcat documentation to no avail. Does anyone know how to disable these methods? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TRACE/TRACK methods
Thanks, that seems to have done the trick. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+ | | Tim Funk | | | [EMAIL PROTECTED]| | | rg | | || | | 09/11/2003 03:24 | | | PM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: Re: TRACE/TRACK methods | ---| I think this *might* work ... Otherwise google works very nice ... security-constraint web-resource-collection web-resource-namecowbell/web-resource-name url-pattern/*/url-pattern http-methodTRACE/http-method /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint -Tim Mark Lenz wrote: I'm not sure exactly how to do this. The Servlet Spec is pretty vague on how to add a security-constraint denying access via an http-method. Could you give me an example? Thanks. Mark Lenz Software Engineer Control Systems Group Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] |-+ | | Tim Funk | | | [EMAIL PROTECTED]| | | rg | | || | | 09/11/2003 11:44 | | | AM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: Re: TRACE/TRACK methods | ---| You can add a security constraint in web.xml to disable TRACE. -Tim Mark Lenz wrote: Our company conducted a security audit and Tomcat was reported as supporting TRACE and TRACK. It said, It has been shown that servers supporting this method are subject to cross-site-scripting attacks, dubbed XST for 'Cross-Site-Tracing', when used in conjunction with various weaknesses in browsers. I have been assigned the task of turning off this support, but I have searched Google, tomcat-user archives and the Tomcat documentation to no avail. Does anyone know how to disable these methods? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you
Lomboz or Sysdeo Eclipse Plugin?
Hi everyone! Which plugin are you guys using for JSP development in Eclipse? Have you tried other plugins or just started using your current one? Mark Lenz Pierce Manufacturing, Inc. (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context Mapping
No, I haven't. Do I need to define a servlet-mapping for a context with only JSP's? (Yes, I know they're really servlets.) Mark Lenz (920) 832-3523 [EMAIL PROTECTED] Jeanfrancois Arcand [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: 12/13/2002 12:01 AM Subject:Re: Context Please respond to Tomcat Users Mapping List This output occurs when Tomcat try to match element defined under servlet-mapping in the web.xml. How have you defined the servlet-mapping element? -- Jeanfrancois Mark Lenz wrote: I have Tomcat installed and have started to write some JSP's. I looked at my logs today and saw this everytime I accessed a JSP: 2002-12-12 14:02:20 StandardContext[/czis]: Mapping contextPath='/czis' with requestURI='/czis/index.jsp' and relativeURI='/index.jsp' 2002-12-12 14:02:20 StandardContext[/czis]: Trying exact match 2002-12-12 14:02:20 StandardContext[/czis]: Trying prefix match 2002-12-12 14:02:20 StandardContext[/czis]: Trying extension match 2002-12-12 14:02:20 StandardContext[/czis]: Mapped to servlet 'jsp' with servlet path '/index.jsp' and path info 'null' and update=true I have a context like this: Context path=/czis docBase=czis debug=3 swallowOutput=true Shouldn't it match the context instead of the extension? Or am I being paranoid and Tomcat is doing exactly what it should? Mark Lenz (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- 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] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context Mapping
No, I haven't. Do I need to define a servlet-mapping for a context with only JSP's? (Yes, I know they're really servlets.) Mark Lenz (920) 832-3523 [EMAIL PROTECTED] Jeanfrancois Arcand [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: 12/13/2002 12:01 AM Subject:Re: Context Please respond to Tomcat Users Mapping List This output occurs when Tomcat try to match element defined under servlet-mapping in the web.xml. How have you defined the servlet-mapping element? -- Jeanfrancois Mark Lenz wrote: I have Tomcat installed and have started to write some JSP's. I looked at my logs today and saw this everytime I accessed a JSP: 2002-12-12 14:02:20 StandardContext[/czis]: Mapping contextPath='/czis' with requestURI='/czis/index.jsp' and relativeURI='/index.jsp' 2002-12-12 14:02:20 StandardContext[/czis]: Trying exact match 2002-12-12 14:02:20 StandardContext[/czis]: Trying prefix match 2002-12-12 14:02:20 StandardContext[/czis]: Trying extension match 2002-12-12 14:02:20 StandardContext[/czis]: Mapped to servlet 'jsp' with servlet path '/index.jsp' and path info 'null' and update=true I have a context like this: Context path=/czis docBase=czis debug=3 swallowOutput=true Shouldn't it match the context instead of the extension? Or am I being paranoid and Tomcat is doing exactly what it should? Mark Lenz (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- 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] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Context Mapping
I have Tomcat installed and have started to write some JSP's. I looked at my logs today and saw this everytime I accessed a JSP: 2002-12-12 14:02:20 StandardContext[/czis]: Mapping contextPath='/czis' with requestURI='/czis/index.jsp' and relativeURI='/index.jsp' 2002-12-12 14:02:20 StandardContext[/czis]: Trying exact match 2002-12-12 14:02:20 StandardContext[/czis]: Trying prefix match 2002-12-12 14:02:20 StandardContext[/czis]: Trying extension match 2002-12-12 14:02:20 StandardContext[/czis]: Mapped to servlet 'jsp' with servlet path '/index.jsp' and path info 'null' and update=true I have a context like this: Context path=/czis docBase=czis debug=3 swallowOutput=true Shouldn't it match the context instead of the extension? Or am I being paranoid and Tomcat is doing exactly what it should? Mark Lenz (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Connection Pooling
I'm trying to set up DB Connection Pooling with Tomcat 4.1.12 and MySQL 4.0.4. Looking at the sample xml configs I noticed that you have to specify the database, username and password. Is there a way that I can change the username and database from within my JSP's? Or do I just have to create different DB contexts in the server.xml file for each database I want to use and which user I want to connect with? Mark Lenz (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you.
Re: Tomcat Connection Pooling
When I try that, I get a java.lang.UnsupportedOperationException at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329) ... It's thrown during the getConnection(username, password) function. I tried including the username and password parameters in the server.xml file without a value like this: parameter nameusername/name value/value /parameter And also completely excluding the username and password parameters. Mark Lenz (920) 832-3523 [EMAIL PROTECTED] Leo Przybylski [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: 10/17/2002 05:31 PM Subject:Re: Tomcat Please respond to Tomcat Connection Pooling Users List If you are using multiple databases, I believe you have to set up multiple Resources (one for each database). However, you do not have to specify a username/password. When you retrieve your DataSource from the java:comp/env namespace, you can use getConnection( username, password). If you don't use multiple users for the database, then this may seem impractical. You do need a different Resource definition for each database though. -Leo http://www.foopan.ath.cx On Thu, 2002-10-17 at 14:19, Mark Lenz wrote: I'm trying to set up DB Connection Pooling with Tomcat 4.1.12 and MySQL 4.0.4. Looking at the sample xml configs I noticed that you have to specify the database, username and password. Is there a way that I can change the username and database from within my JSP's? Or do I just have to create different DB contexts in the server.xml file for each database I want to use and which user I want to connect with? Mark Lenz (920) 832-3523 [EMAIL PROTECTED] The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org The information contained in this electronic mail message is confidential information and intended only for the use of the individual or entity named above, and may be privileged. If the reader of this messages is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please contact the sender immediately, delete this material from your computer and destroy all related paper media. Please note that the documents transmitted are not intended to be binding until a hard copy has been manually signed by all parties. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org