[validator] Help Regarding Commons Validator to use it in servlets/jsp application

2010-11-10 Thread Muhammad Asif
Dear all, I am a good programmer and I also had SCJP 1.5 but unfortunately have not worked on Java for a long time. At the moment I want to know how can we use commons validator in a simple servlet or jsp application without any other framework like struts, spring or jsf. Can anyone point me to

[validator] Help Regarding Commons Validator to use it in servlets/jsp application

2010-11-10 Thread Muhammad Asif
Thank you very much Mohammad nour El-Din. I am taking a look at the recommended link. Can you answer a few short questions. 1. Do we always need a bean based validation. I believe in this scenario we must have to create a bean based on our form post 2. Can we also use a validation framework or

Re: [validator] Help Regarding Commons Validator to use it in servlets/jsp application

2010-11-10 Thread Muhammad Asif
Ok thanks for your kind help though. I will look for these there. On Wed, Nov 10, 2010 at 5:59 PM, Mohammad Nour El-Din nour.moham...@gmail.com wrote: Please ask these question on the user mailing of Apache Bean Validation :) . On Wed, Nov 10, 2010 at 12:54 PM, Muhammad Asif

Re: DBCP - unclosed connections

2010-11-10 Thread Phil Steitz
On 11/8/10 7:19 PM, Tyson Lowery wrote: I have a JSP page that is getting reported for not closing connections in catalina.out. I'm running Tomcat 6.0.26, so I believe we are on DBCP 1.2. I've racked my brain trying to figure out how these connections could possible remain unclosed. Does anyone

Re: [validator] Help Regarding Commons Validator to use it in servlets/jsp application

2010-11-10 Thread Mohammad Nour El-Din
No problem :), I am sorry I have no direct answers to your questions this is why BeanValidation User Mailing list is the right place go look at :). On Wed, Nov 10, 2010 at 1:01 PM, Muhammad Asif muasi...@gmail.com wrote: Ok thanks for your kind help though. I will look for these there. On Wed,

Re: DBCP - unclosed connections

2010-11-10 Thread Tyson Lowery
Thanks Phil for the reply. I've changed maxWait to 1000 and removeAbandonedTimeout to 300. MySQL wait_timeout is set to 500. I've put some System.out.printlns in and can see that this page is taking less than 1 second to process, even in the cases where I get the DBCP object created

Re: [IO] tailer sample code

2010-11-10 Thread Niall Pemberton
2010/11/10 Sébastien Roux roux.sebast...@gmail.com: I'm not a Java specialist but quite curious about the new tailer classes in commons IO 2.0. Now what does this mean : TailerListener listener = ... Its just an abbreviation to show the line is not complete. You have to create your own

Re: DBCP - unclosed connections

2010-11-10 Thread Phil Steitz
I will check or someone else can confirm DBCP and pool versions. If not the latest you can upgrade them independently of Tomcat and you should try that. See the Tomcat datasource docs for instructions on how to do this. Ask here or on tomcat-user if you need help. The answer to your