Re: Struts and db connections :: best practice

2005-10-13 Thread Bryon Lape
I'm not sure about best practices, but I try to avoid database connections in my actions. I tend to put this code in the model objects and let them handle exceptions and so forth. > Hi all, > In a well written struts application, we assume declarative exception > handling is used. Therefore the c

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-12 Thread Bryon Lape
Along similar lines, I have a question of using modules for internationalization. We have a requirement to not only support i18n, but to be able to tell the client how many of their visitors are seeing which language version of any particular web page. I had thought of using modules to help keep

Re: Struts, Tiles and Internationalization

2005-10-10 Thread Bryon Lape
issue. It will work anyway by > Struts reading the browser default settings, but language-swich buttons > are a little bit more tricky. Ask if you need it. > > Greetz > > Danny > > > > Bryon Lape schrieb: >> A customer of ours has a site that they want to move int

Struts, Tiles and Internationalization

2005-10-06 Thread Bryon Lape
A customer of ours has a site that they want to move into Canada. This means every page will need to be translated into Canadan French and abide by Canadian law. Currently, the site is en_US. THe site was built using Struts and Tiles, but the tiles are not defined in Tiles XML, instead there are

iPlanet 6 and Struts 1.2

2005-10-04 Thread Bryon Lape
I've tried every single combination of message file names, struts, tiles and the like to get iPlanet to see the messages and nothing worked. I've come to the conclusion that iPlanet is just a big pile of heisse Schiesse. It is odd because I use property files to config my own objects and they can

iPlanet 6 and Struts 1.2

2005-09-29 Thread Bryon Lape
I am beginning to believe that iPlanet is the root of my problems. I was successful in getting iPlanet to use the 1.4 version of the JVM, but it still does not resolves the MessageResources properly. In the debug log, I do see what looks like it is reading the files, but I do not see a "found thi

Re: ValidWhen and string comparison

2005-09-29 Thread Bryon Lape
> Niall Pemberton a écrit : > >>What you have should work - but its always going to give an error unless >>statut is set to "Doctorant". >> >> > Yes! It's what i want. > >>Are you sure "statut" is in your bean and getting populated? >> >> > Yes, because when the error happen (every time with any "s

Re: [OT]Open source Backup software for windows

2005-09-28 Thread Bryon Lape
> Hello > Does anyone know or used an open source for databaup > from windows XP, i need this software to be able > select folders for backup, backup files changed, add > if does not exist, and schedule backup from my laptop > and desktop > I'm guess you mean something in place of the backup progr

Perhaps more info on my MessageResource problem

2005-09-28 Thread Bryon Lape
I now have logging giving me something useful. When a form is submitted with validation errors and below is an excerpt. No errors reported, but it can't find tiles-def files. There is a tiles-def.xml, but the html form is not listed there. Nor are the inputs or success urls. ---

Re: Debugging

2005-09-28 Thread Bryon Lape
Configuring a .File and giving it a name I've been able to find the log. I can see it converting the parameter on and converts it to a String. WHat I don't see is it reading it nor are there any errors. I even put a value in of a file that does not exist and still no error. ---

Re: Debugging

2005-09-28 Thread Bryon Lape
>> > hm strange ... in this case I don't know what ot tell you ... > the file name should be struts.log > may be somebody who is more familiar with log4j should give you an idea > ... > borislav Let me do a search on the whole harddrive for that file name. ---

Re: Debugging

2005-09-28 Thread Bryon Lape
> Bryon Lape wrote: > >>>Bryon Lape wrote: >>> >>> >>> >>>>>Bryon Lape wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I am looking for good pointers

Re: Debugging

2005-09-28 Thread Bryon Lape
> Bryon Lape wrote: > >>>Bryon Lape wrote: >>> >>> >>> >>>>I am looking for good pointers on getting debug logging turned on in >>>>Struts. I've added debug and detail params to my web.xml file, but I >>>> get

Re: Debugging

2005-09-28 Thread Bryon Lape
> Bryon Lape wrote: > >>I am looking for good pointers on getting debug logging turned on in >>Struts. I've added debug and detail params to my web.xml file, but I get >>nothing. Do I need log4j? In the Struts Cookbook I've found some things >>on

Re: Debugging

2005-09-28 Thread Bryon Lape
n connect remotely with your IDE and step through > the code and observe variable values. > > -Richard > > > Bryon Lape wrote: >>> Bryon Lape wrote: >>> >>> >>>> My goodness, it is as long as I thought. I can at least cut and paste >>&g

Re: Debugging

2005-09-28 Thread Bryon Lape
> Bryon Lape wrote: > >>My goodness, it is as long as I thought. I can at least cut and paste >>this instead of doing all that typing. >> >> >> > is it so much? > >>Thanks. I'll let you know how it goes. I am running under iPlanet Web >&g

Re: Debugging

2005-09-28 Thread Bryon Lape
> I hope this could help you: > 1. get log4j and put it together with other jars of your web project > 2. create a log4j.properties file and put on the root of your web app. > 3. add following lines in log4j.properties > > > Borislav My goodness, it is as long as I thought. I can at least cut and

Debugging

2005-09-28 Thread Bryon Lape
I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very complex to configure. Is this correct? Is gettin

RE: e-mail address validator

2005-09-28 Thread Bryon Lape
Wow, even better. Thanks. > > It's a standard build in validation of the validator see > http://struts.apache.org/userGuide/dev_validator.html > > Gr, > Bram > > I'm looking for a regular expression or something I can plug into Struts > 1.2 to validate e-mail addresses off of a DynaForms. Anyone

Re: e-mail address validator

2005-09-27 Thread Bryon Lape
> I'm looking for a regular expression or something I can plug into Struts > 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any > pointers? > > Never mind. I found this one on an ASP.Net page: [EMAIL PROTECTED],3} it is good enough for my needs.