Re: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'

2004-12-04 Thread Ray
Yep. Sure. Thanks ... :-) -- MessageResource.properties - # Resources file for STRUTS # Errors errors.header= errors.footer= # -- validator -- errors.invalid={0} is invalid. errors.maxlength={0} can not be greater than {1} characters. errors.minlength={0} can not be less than {1

Re: Filter/...

2004-12-04 Thread Craig McClanahan
If you're using Servlet 2.4 (such as Tomcat 5.x or later), you can configure a filter to be applied on RequestDispatcher.forward() and RequestDispatcher.include() calls, as well as on the original request. See the docs for the revised element. If you are on Servlet 2.3, there is no solution to g

RE: Filter/...

2004-12-04 Thread Brij Naald
thanks for the help, But the problem remains. The SecurityFilter will put a wrapper around the request, but my filter also wants to set some attributes (the lastServlet) right. Example: Assume that you type in /servlet1 in your browser. In that case the filter will get called, it will put the w

RE: Filter/...

2004-12-04 Thread David G. Friedman
Brij, I think I saw a usable filter solution when reading through the code of Security Filter. If I recall correctly, their filter code uses the HttpServletRequestWrapper class and adds their own getUserPrincipal() orverloading method. Surely you could do the same with your getServletPath() by o

RE: Filter/...

2004-12-04 Thread Brij Naald
My application needs to know the path of the servlet which is going to be called. Therefore the filter does: setLastServlet(((HttpServletRequest)request).getServletPath()); and then the filter invokes the servlet wtih a wrapper around its request The wrapper overrides the public Object getAttribu

Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
Hi Ichy. Thanks a lot for your answer !! You have resolved my problem. I had put a lot of different path in the getResource() method but not the one which takes a slash at the begining of the path :-/ Now all is ok and I don't need any O/R framework. Mille mercis. Philippe --- ichy <[EMAIL

RE: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'

2004-12-04 Thread David G. Friedman
Ray, Can you include your validatoin.xml and validator-rules.xml files plus copy in the application resources from any files it may be using for messages? regards, David -Original Message- From: Ray [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 5:33 AM To: [EMAIL PROTECTED]

Way OT: Win a free Sony Portable PlayStation

2004-12-04 Thread Vic
http://contests.1up.com All you have to do is: #1: register #2: invite most other people to register So if you have free time and a fast conection . . . I love MLM. All I want for X-Mass is a Sony Portable PlayStation, it be sooo cl on a plane to have that before others. Check me out while I p

Re: Access to a database with a configuration file

2004-12-04 Thread ichy
Hi, Philippe. (B (B>But I have a problem when I want to load the database.xml file : I can't get (B>its path when my webapp is loaded. (B> (B>The instruction getClass().getResource(".").getFile() always return null. (B> (B> (B> (B>How could I do ? (B (Bif your question is how to load xm

RE: Access to a database with a configuration file

2004-12-04 Thread Freddy Villalba A.
Hi, If you're looking for simplicity, I'd suggest you go for sql2java (sourceforge). It's absolutely independent and automatic. In a few words, it's a class generator. It analyzes your database and automatically generates the DAO classes (the Java source, and even the javadocs) for it, including t

Re: Access to a database with a configuration file

2004-12-04 Thread Vic
Philippe PONSONNET wrote: I have already seen the hibernate framework but I prefere to not use an OR for beginning. I would like to only use my very simple Database class. I suppose it is possible to load this xml file by by a specific way, isnt-it ? iBatis is not O/R! It's SQL or E/R. I do no

Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
I have already seen the hibernate framework but I prefere to not use an OR for beginning. I would like to only use my very simple Database class. I suppose it is possible to load this xml file by by a specific way, isnt-it ? --- Vic <[EMAIL PROTECTED]> a écrit : > Consider reading iBatis Stu

Re: Access to a database with a configuration file

2004-12-04 Thread Vic
Consider reading iBatis Sturts jPetStore on DAO or Rick Reumans Struts How to DAO tutorial. (DAO = Data Base Access) .V Philippe PONSONNET wrote: This solution seems to be not possible because my Database class is not a Servlet but a classic class. Is it possible to load my resource Database.xml

Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
This solution seems to be not possible because my Database class is not a Servlet but a classic class. Is it possible to load my resource Database.xml with the web.xml descriptor file ? And how could I load it with my Database class ? Thanks --- Niall Pemberton <[EMAIL PROTECTED]> a écrit :

Re: Off topic : IBM Portlet

2004-12-04 Thread Mark Benussi
With IBM Websphere Portal Server CDs you get the option to install the Test environment. This will give you a Webpshere Portal Server test environment option in WSAD. Its a VERY tempremental installation. Good luck - To unsubsc

Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'

2004-12-04 Thread Ray
Hi there. I've been fighting with a weird problem for a while now. The app I'm running at home, won't load when I deploy it on my ISPs server. The first problem was that Struts refused to load the struts-config.xml file. I managed to get round it by stripping the DTD definition from the start o

javascript validation of e-mail and 2 fields to be equals

2004-12-04 Thread Richard Tuquet Laburre
Hello and excuse me for my bad english (i am french) 1/ On a form, i use the javascript validation for an input field ; but when the tld is .info, the validations fails How can correct this ? 2/ i want to verify (validate with javascript) that 2 fields (password) have the same value ; i find a c