RE: Build the Tiles
Have you (the strut's commitors) discuss about the possibility to separate the struts components (tiles, valdator, struts-html, struts-bean, ...) into differents jars ? a good advantage is not to wait struts versioning for an enhancement on one of these components.(very similar to the commons-XX.jar files) Guillaume -Message d'origine- De: Cedric Dumoulin [SMTP:[EMAIL PROTECTED] Date: vendredi 4 avril 2003 10:16 À:Struts Users Mailing List Objet:Re: Build the Tiles Yes you can build the tiles from the sources. You need to compile classes under o.a.s.tiles and o.a.s.taglib.tiles. Another simplest solution is to get the struts.jar, rename it to tiles.jar, open it with winzip or whatever you want, and suppress all the classes not related to tiles. Cedric Vernon wrote: Hi, all, I need to use the Tiles as a standalone component in my project. I am new to Tiles in less than on week. I follow the chapter 11, Developing applications with Tiles, of Struts in Action to set up Tiles. I run into a couple of problem and hope someone can give me a hand. The tiles.jar file I get from Cedric Dumoulln's site, which was built in the last Noverber. But the all common libraries are the most recent releases. I think the old build might cause those problem. After uploaded the rc1 source base, I only can see the Tiles installation, but not compiling and archive Tiles. Can I build Tile from the source? If yes, how I can do it? Thanks for your helps. Vernon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Questions concerning Tiles
Cédric, is that make sense to define a bean type for printing the today date with the scope of the application ( in order not to instanciate the Date each time) ? Thx! Guillaume Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to switch of logging with log4j at initialization
according to me (as the simplest way), you need to have a commons-logging.propeties file with org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF actory usersguide.html hope thats help Guillaume Compagnon -Message d'origine- De: Martin Monsorno [SMTP:[EMAIL PROTECTED] Date: mercredi 26 mars 2003 09:25 À:Struts Users Mailing List Objet:Re: how to switch of logging with log4j at initialization Stephen Smithstone [EMAIL PROTECTED] writes: if you have the log4j.properties on the classpath in the file just add log4j.logger.org.apache.struts = warn that will stop the struts stuff Hmm, I didn't understand completely what you recommended, but I - did put the log4j.property file on the classpath (before that, I specified it by setting the log4j.configuration-system-property, which worked for all logging stuff but the described one) - put the line log4j.logger.org.apache.struts = warn into my log4j.properties file. This did not change anything, so I deleted .struts in this line, because the problematic logging is done mostly by commons classes as it seems, but no difference. Any hints? -- Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pièces jointes (ci-après le message) sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite.Tout message électronique est susceptible d'altération. Le CREDIT DU NORD et ses filiales déclinent toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about message-resources
I ve published a patch to enhance MessageResources in order to register several MessageResources objets under the same ServletContext attribute key. have a look ... http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18194 Guillaume Compagnon Linkvest -Message d'origine- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Date: mardi 25 mars 2003 14:38 À:[EMAIL PROTECTED] Objet:RE: Question about message-resources That makes so much more sense to me than just having one resource file. Would it make sense if I created 1 per page set? I have a set of pages; 1 is a view, and the other is the editable page. I plan to have around 15-20 total pages when complete with this app, but it _must_ be multi-lingual, and it must be maintainable for around 5-7 languages. _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:33 PM To: Struts Users Mailing List Subject: Re: Question about message-resources I use the following a lot: html:errors property=foo bundle=VALIDATOR_BUNDLE where i've added message-resources parameter=torch.webapp.panthers.ValidatorResources null=false key=VALIDATOR_BUNDLE /message-resources to my struts-config.xml file. -jeff On Tuesday, March 25, 2003, at 07:27 AM, [EMAIL PROTECTED] wrote: Then is there a key=... attribute in html:* tags? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:23 PM To: Struts Users Mailing List Subject: Re: Question about message-resources The first resource bundle loaded gets the 'default' key, so to access resources from the second and subsequent bundles, you have to supply a separate key name for them. -jeff On Tuesday, March 25, 2003, at 06:40 AM, [EMAIL PROTECTED] wrote: Appreciate the response, but I am wondering what the section in the struts-config.xml is used for: !-- == Message Resources Definitions === -- message-resources parameter=TrackerRes/ message-resources parameter=ISOCodeRes key=ISOCodeRes/ !-- == Plug Ins Configuration == -- plug-in className=com.fgm.web.menu.MenuPlugIn set-property property=menuConfig value=/WEB-INF/menu-config.xml/ /plug-in /struts-config I have looked through the code in struts-menu, but can't seems to see how the 2 message-resources are being used and to what extent they can be used. Plus, what is the 'key=ISOCodeRes' attribute on the message-resource? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 11:32 AM To: Struts Users Mailing List Subject: Re: Question about message-resources Hi, Regarding how to manage very long Message-resources property file, you can use the following possibility : In your strust-config.xml add a : ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; [ !ENTITY action-users SYSTEM action-mappings/backoffice/users.xml !ENTITY action-entite SYSTEM action-mappings/backoffice/entite.xml !ENTITY action-dynamicforms SYSTEM action-mappings/backoffice/dynamicforms.xml !ENTITY action-groupes SYSTEM action-mappings/backoffice/groupes.xml !ENTITY action-activites SYSTEM action-mappings/backoffice/activites.xml ] And in the appropriate section of the Action Mapping Definitions use the action-users; action-entite; to refer to your files. And for each of your modules (here like users.xml or groupes.xml) you have a property file. In that way it is more easily to manage the multi-lingual fonctionnalitie. each of this file are placed under /WEB-INF/conf/action-mappings/. Has this is a type of include, do not add XML header to this file. :-) Xav - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 9:25 AM Subject: Question about message-resources I am looking into struts-menu, and am confused about the extent I can use message-resources. Like:
RE: Question about message-resources
on bugzilla, the attachments have always AFAIK the name showattachement. in our case, it's a jar file , you download it, and rename it into .jar -Message d'origine- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Date: mardi 25 mars 2003 15:38 À:[EMAIL PROTECTED] Objet:RE: Question about message-resources 1. I can't seem to donwload the patch. I kee getting promted to just download the download page instead. Could be my firewall, but is there somewhere else to get this file or could you email it to me? 2. What do I do with the file? Is is just a class that I add to my project EAR, or do I have to compile Struts to get this to work? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: COMPAGNON GUILLAUME [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:18 PM To: 'Struts Users Mailing List' Subject: RE: Question about message-resources I ve published a patch to enhance MessageResources in order to register several MessageResources objets under the same ServletContext attribute key. have a look ... http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18194 Guillaume Compagnon Linkvest -Message d'origine- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Date: mardi 25 mars 2003 14:38 À: [EMAIL PROTECTED] Objet: RE: Question about message-resources That makes so much more sense to me than just having one resource file. Would it make sense if I created 1 per page set? I have a set of pages; 1 is a view, and the other is the editable page. I plan to have around 15-20 total pages when complete with this app, but it _must_ be multi-lingual, and it must be maintainable for around 5-7 languages. _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:33 PM To: Struts Users Mailing List Subject: Re: Question about message-resources I use the following a lot: html:errors property=foo bundle=VALIDATOR_BUNDLE where i've added message-resources parameter=torch.webapp.panthers.ValidatorResources null=false key=VALIDATOR_BUNDLE /message-resources to my struts-config.xml file. -jeff On Tuesday, March 25, 2003, at 07:27 AM, [EMAIL PROTECTED] wrote: Then is there a key=... attribute in html:* tags? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 2:23 PM To: Struts Users Mailing List Subject: Re: Question about message-resources The first resource bundle loaded gets the 'default' key, so to access resources from the second and subsequent bundles, you have to supply a separate key name for them. -jeff On Tuesday, March 25, 2003, at 06:40 AM, [EMAIL PROTECTED] wrote: Appreciate the response, but I am wondering what the section in the struts-config.xml is used for: !-- == Message Resources Definitions === -- message-resources parameter=TrackerRes/ message-resources parameter=ISOCodeRes key=ISOCodeRes/ !-- == Plug Ins Configuration == -- plug-in className=com.fgm.web.menu.MenuPlugIn set-property property=menuConfig value=/WEB-INF/menu-config.xml/ /plug-in /struts-config I have looked through the code in struts-menu, but can't seems to see how the 2 message-resources are being used and to what extent they can be used. Plus, what is the 'key=ISOCodeRes' attribute on the message-resource? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 11:32 AM To: Struts Users Mailing List Subject: Re: Question about message-resources Hi, Regarding how to manage very long Message-resources property file, you can use the following possibility : In your strust-config.xml add a : ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration
[OT]Question about message-resources
What is AFAIK? As Far As I Known Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.1 RC1 - Validator problems on Linux only
ensure you ve got the very last version of commons-validator in fact, with the commons validator bundled with 1.1RC1, there is a bug when the machine has no connection to the Internet for more information, have a look to the bug database. regards Guillaume Compagnon -Message d'origine- De: Reinhard Nägele [SMTP:[EMAIL PROTECTED] Date: vendredi 21 mars 2003 11:07 À:[EMAIL PROTECTED] Objet:Struts 1.1 RC1 - Validator problems on Linux only Hi, we've been developing an application with Struts 1.1 RC1 which runs fine on Win 2000 machines. Today we deployed it to a Linux machine (Red Hat, JDK 1.4.1_01, Tomcat 4.1.12) and found out that the validator didn't work as expected, i. e. validation simply never failed. So I decided to attach to the VM and debug into the code. To do so, I needed the validator sources which, unfortunately, are not part of the Struts source distribution. So, I used the latest nightly build of the validator, attached to the process in order to debug into it, and, guess what, now it worked. So, I really wonder what this was. Has anybody else experienced such behavior? Are there any Linux-specific issues? Thanks, Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: internationalization
MessageResource works like the java.util.ResourceBundle if no properties file for italian exits (applicationResources_it.properties for example), it takes the default one (applicationResources.properties) no exception, just a default case... otherwise, if no default file exists ... you will have a null for the message or a ??unknown?? (if null=false in the struts-config file) grazie mille ... Guillaume Compagnon -Message d'origine- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Date: vendredi 21 mars 2003 11:08 À:[EMAIL PROTECTED] Objet:internationalization Hi i've a simple question: is possible obtain the languages supported from application? With the MessageResources class i could obtain the message in a particular language, if it is supported from application. For example if i've the properties file for the french languages i could obtain a message in this language...but how i know the language supported of my application ( in fact the file properties that there are in my application ). Is stupid try to obtain the message in all language for example try to obtain the message in french and if exists i know that there is a file properties for french...how obtain the list of file properties of application? Thank in advantage. Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.1 RC1 - Validator problems on Linux only
this is the bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17470 -Message d'origine- De: Reinhard Nägele [SMTP:[EMAIL PROTECTED] Date: vendredi 21 mars 2003 11:52 À:Struts Users Mailing List Objet:Re: Struts 1.1 RC1 - Validator problems on Linux only Thanks for the info. I guess, the Internet connection was the problem then. I searched the bug database but couldn't find this. I'll check again. Reinhard COMPAGNON GUILLAUME wrote: ensure you ve got the very last version of commons-validator in fact, with the commons validator bundled with 1.1RC1, there is a bug when the machine has no connection to the Internet for more information, have a look to the bug database. regards Guillaume Compagnon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to workaround with the java.net.UnknownHostException: jakarta .apache.org exception (was RE: error deploying struts-example on tomcat 4 .1.18)
There is a bug into the commons-validator bundled with Struts 1.1 RC1: the disgester instancied by the ValidatorResourcesInitializer uses the local DTD located into /org/apache/commons/resources instead of /org/apache/commons/validator/resources... so as the digester doesn't find the DTD, it makes a lookup over the web. (you should not have your server accessing the web) 2 solutions: the first dirty but direct ... put the validator_1_0.dtd into your classpath into the directory /org/apache/commons/resources or the second, cleaner get the last commons-validator build. the bug is corrected regards Guillaume Compagnon -Message d'origine- De: Enrico Donelli [SMTP:[EMAIL PROTECTED] Date: lundi 17 mars 2003 17:31 À:'Struts Users Mailing List' Objet:error deploying struts-example on tomcat 4.1.18 Deploying the struts-examples.war from struts rc1 on tomcat4.1.18 (win2k, SUN j2sdk 1.4.1), I get the following error I can't not solve: 17:26:52,824 ERROR [Digester] Parse Fatal Error at line 3 column -1: External entity not found: http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;. java.net.UnknownHostException: jakarta.apache.org [...] any idea? Thanks in advance Enrico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]