RE : Struts-config.xml and multiple module
-Message d'origine- De : Raj Atchutuni [mailto:[EMAIL PROTECTED] Envoyé : mercredi 13 août 2003 14:04 À : Struts Users Mailing List Objet : Re: Struts-config.xml and multiple module Laurent, Here is how i implemented mutiple modules. It is working. 1. I am loading all the tile-defs from the 1st-config.xml 2. I removed Tiles-plugin from the 2nd-config.xml. Note: Since i didnt have time to go through books i assumed, I cant use Tiles-plugin in multiple config-xmls. Vola, it is working. Ex: Assumed you have stable Struts 1.1. - init-param param-nameconfig/param-name param-value/WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml/param-value /init-param - Good luck No, i would like to have that to respect The article seven lessons from the trenches Point number3: use application modules init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameconfig/project/param-name param-value/WEB-INF/struts-config-project.xml/param-value /init-param - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-config.xml and multiple module
Raj is right; you can use a Tiles plugin in each module. Also: in the tiles-doc application are 3 concrete examples for switching !!! Only problem I'm encoutering is my log files shows each plugin is loaded twice (see lines marked with ) and the ReloadTiles and ViewTiles action give a null pointer exception... Starting service Tomcat-Standalone Apache Tomcat/4.0.3 13-aug-2003 14:10:54 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.apache.struts.tiles.TilesPlugin init INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:10:58 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.tiles.TilesPlugin init INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. Starting service Tomcat-Apache Apache Tomcat/4.0.3 -Original Message- From: Raj Atchutuni [mailto:[EMAIL PROTECTED] Sent: woensdag 13 augustus 2003 14:04 To: Struts Users Mailing List Subject: Re: Struts-config.xml and multiple module Laurent, Here is how i implemented mutiple modules. It is working. 1. I am loading all the tile-defs from the 1st-config.xml 2. I removed Tiles-plugin from the 2nd-config.xml. Note: Since i didnt have time to go through books i assumed, I cant use Tiles-plugin in multiple config-xmls. Vola, it is working. Ex: Assumed you have stable Struts 1.1. - init-param param-nameconfig/param-name param-value/WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml/param-value /init-param - Good luck Laurent MARQUEZ [EMAIL PROTECTED] wrote: Hi, please complete my configuration file for multiple module. I have now 2 struts-config.xml And the link in my tiles-def.xml doesn't work, why? ## In web.xml ## config /WEB-INF/struts-config.xml config/project /WEB-INF/struts-config-project.xml ## In tiles-def.xml ## path=/WEB-INF/jsp/layouts/menu.jsp link=/project/manager.do classtype=org.apache.struts.tiles.beans.SimpleMenuItem / ## In struts-config-project.xml ## forward=/WEB-INF/jsp/project/manager.jsp Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-config.xml and multiple module
I assumed, since i am loading the Tiles-plugin from the 1st-config.xml all my tiles-defs are already loaded. So there is no point in loading the Tiles-plugin from the 2nd-config.xml. I had this same problem. So, just remove Tiles-plugin from the 2nd-config.xml and list all your Tiles-defs in the 1st-config.xml. Marcel Overdijk [EMAIL PROTECTED] wrote: Raj is right; you can use a Tiles plugin in each module. Also: in the tiles-doc application are 3 concrete examples for switching !!! Only problem I'm encoutering is my log files shows each plugin is loaded twice (see lines marked with ) and the ReloadTiles and ViewTiles action give a null pointer exception... Starting service Tomcat-Standalone Apache Tomcat/4.0.3 13-aug-2003 14:10:54 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:55 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.apache.struts.tiles.TilesPlugin init INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:10:58 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.tiles.TilesPlugin init INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. Starting service Tomcat-Apache Apache Tomcat/4.0.3 -Original Message- From: Raj Atchutuni [mailto:[EMAIL PROTECTED] Sent: woensdag 13 augustus 2003 14:04 To: Struts Users Mailing List Subject: Re: Struts-config.xml and multiple module Laurent, Here is how i implemented mutiple modules. It is working. 1. I am loading all the tile-defs from the 1st-config.xml 2. I removed Tiles-plugin from the 2nd-config.xml. Note: Since i didnt have time to go through books i assumed, I cant use Tiles-plugin in multiple config-xmls. Vola, it is working. Ex: Assumed you have stable Struts 1.1. - config /WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml - Good luck Laurent MARQUEZ wrote: Hi, please complete my configuration file for multiple module. I have now 2 struts-config.xml And the link in my tiles-def.xml doesn't work, why? ## In web.xml ## config /WEB-INF/struts-config.xml config/project /WEB-INF/struts-config-project.xml ## In tiles-def.xml ## path=/WEB-INF/jsp/layouts/menu.jsp link=/project/manager.do classtype=org.apache.struts.tiles.beans.SimpleMenuItem / ## In struts-config-project.xml ## forward=/WEB-INF/jsp/project/manager.jsp Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Struts-config.xml and multiple module
Laurent, Here is how i implemented mutiple modules. It is working. 1. I am loading all the tile-defs from the 1st-config.xml 2. I removed Tiles-plugin from the 2nd-config.xml. Note: Since i didnt have time to go through books i assumed, I cant use Tiles-plugin in multiple config-xmls. Vola, it is working. Ex: Assumed you have stable Struts 1.1. - init-param param-nameconfig/param-name param-value/WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml/param-value /init-param - Good luck Laurent MARQUEZ [EMAIL PROTECTED] wrote: Hi, please complete my configuration file for multiple module. I have now 2 struts-config.xml And the link in my tiles-def.xml doesn't work, why? ## In web.xml ## config /WEB-INF/struts-config.xml config/project /WEB-INF/struts-config-project.xml ## In tiles-def.xml ## path=/WEB-INF/jsp/layouts/menu.jsp link=/project/manager.do classtype=org.apache.struts.tiles.beans.SimpleMenuItem / ## In struts-config-project.xml ## forward=/WEB-INF/jsp/project/manager.jsp Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: struts-config.xml question
Look at the following : http://www.mail-archive.com/[EMAIL PROTECTED]/msg68361.html Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Dan Tarkenton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: struts-config.xml question When defining an action element in the struts-config.xml file, we always utilize the path attribute. For example, I have two actions defined in my struts-config.xml *snippet* actionpath=/home type=foo.strutsApp.ContentAction name=contentForm forward name=fail path=/Login.jsp / /action actionpath=/login type=ginsu.strutsApp.LoginAction name=loginForm forward name=fail path=/Login.jsp / /action */snippet* Say I want to make the first action element be invoked by any path that starts with /home (like /homeshop or /homes). Basically, can I define a wildcard in the path attribute? I would like to have the ability to have a few different URLs mapped to the same action WITHOUT having to define all of those relative URLs in more action elements. In essence I would like to have something along the lines of: actionpath=/home* type=foo.strutsApp.ContentAction name=contentForm forward name=fail path=/Login.jsp / /action So that the path attribute is mapping potentially any number of relative URLs that begin with /home to this action. This would allow me some great flexibility for real time content updating. Is this possible? TIA. - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-config.xml question
Hey, talk about exactly what I was looking for. Thanks, Jerry. I'm perusing the download right now. Anyone in this community using the Wildcard-Matched Actions project? Wildcard-Matched Actions Project: http://www.twdata.org/struts-wildcard/ It seems to be just 2 new classes with code pulled from the Cocoon project, and is dependent upon using Struts 1.1. I think upgrading to Struts 1.1 shouldn't be too hard. I've read some about this in the Struts in Action book -- great resource by the way. It would be somewhat comforting to hear from people who are utilizing this. Jerry Jalenak [EMAIL PROTECTED] wrote: Look at the following : http://www.mail-archive.com/[EMAIL PROTECTED]/msg68361.html Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Dan Tarkenton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: struts-config.xml question When defining an action element in the struts-config.xml file, we always utilize the path attribute. For example, I have two actions defined in my struts-config.xml *snippet* type=foo.strutsApp.ContentAction name=contentForm type=ginsu.strutsApp.LoginAction name=loginForm */snippet* Say I want to make the first action element be invoked by any path that starts with /home (like /homeshop or /homes). Basically, can I define a wildcard in the path attribute? I would like to have the ability to have a few different URLs mapped to the same action WITHOUT having to define all of those relative URLs in more action elements. In essence I would like to have something along the lines of: type=foo.strutsApp.ContentAction name=contentForm So that the path attribute is mapping potentially any number of relative URLs that begin with /home to this action. This would allow me some great flexibility for real time content updating. Is this possible? TIA. - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
RE: struts-config.xml question
I haven't yet, but it caught my eye the other day when it was announced. Sounded like something that could be of use though Let us know how it goes for you Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Dan Tarkenton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:39 AM To: Struts Users Mailing List Subject: RE: struts-config.xml question Hey, talk about exactly what I was looking for. Thanks, Jerry. I'm perusing the download right now. Anyone in this community using the Wildcard-Matched Actions project? Wildcard-Matched Actions Project: http://www.twdata.org/struts-wildcard/ It seems to be just 2 new classes with code pulled from the Cocoon project, and is dependent upon using Struts 1.1. I think upgrading to Struts 1.1 shouldn't be too hard. I've read some about this in the Struts in Action book -- great resource by the way. It would be somewhat comforting to hear from people who are utilizing this. Jerry Jalenak [EMAIL PROTECTED] wrote: Look at the following : http://www.mail-archive.com/[EMAIL PROTECTED]/msg68361.html Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Dan Tarkenton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: struts-config.xml question When defining an action element in the struts-config.xml file, we always utilize the path attribute. For example, I have two actions defined in my struts-config.xml *snippet* type=foo.strutsApp.ContentAction name=contentForm type=ginsu.strutsApp.LoginAction name=loginForm */snippet* Say I want to make the first action element be invoked by any path that starts with /home (like /homeshop or /homes). Basically, can I define a wildcard in the path attribute? I would like to have the ability to have a few different URLs mapped to the same action WITHOUT having to define all of those relative URLs in more action elements. In essence I would like to have something along the lines of: type=foo.strutsApp.ContentAction name=contentForm So that the path attribute is mapping potentially any number of relative URLs that begin with /home to this action. This would allow me some great flexibility for real time content updating. Is this possible? TIA. - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-config.xml
Tell me about it! ClearCase XML merges are completely useless. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 2:23 AM To: [EMAIL PROTECTED] Subject: RE: struts-config.xml I work with ClearCase and WSAD 4.0.3 and can tell you that merging xml files of the size you are talking about is terrible. We have about 100+ different xml files about 2/3 the size or larger than what you describe, and I can tell you that of the 8 developers here, that is what we hate the most. We loose more time on xml merges than any other merge by double. Of coarse it might just be clearcase and WSAD _ 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: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - 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: struts-config.xml
Just set your 'config' init-param to something like this: init-param param-nameconfig/param-name param-value /WEB-INF/struts-config-main.xml, /WEB-INF/struts-config-customer.xml, /WEB-INF/struts-config-order.xml, /WEB-INF/struts-config-inventory.xml /param-value /init-param Joe - Original Message - From: Richard Raquepo [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 8:08 PM Subject: Re: struts-config.xml can you give us a working of your web.xml. i'm kind of thinking your kind of solution. thanks... - Original Message - From: Joseph Fifield [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, March 21, 2003 5:26 AM Subject: RE: struts-config.xml If you are using 1.1, you can simply split the file into multiple files, and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3. We have one for every major part of our application, and it required no additional code changes. Joe -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] - 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: struts-config.xml
You can also have imultiple files and then have ANT use a skeleton struts-config.xml file to build the final file. Just use variable replacement in ANT to insert all the seperate files into one master file (that is how we do it) -- Sloan - Original Message - From: Joseph Fifield [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:26 PM Subject: RE: struts-config.xml If you are using 1.1, you can simply split the file into multiple files, and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3. We have one for every major part of our application, and it required no additional code changes. Joe -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts-config.xml
Sloan Seaman ([EMAIL PROTECTED]) wrote: You can also have imultiple files and then have ANT use a skeleton struts-config.xml file to build the final file. Just use variable replacement in ANT to insert all the seperate files into one master file (that is how we do it) Great idea! Who cares what the deployed struts-config.xml file looks like after all. Man, maybe struts developers could have saved the time and just relied on ant. Oh well, guess options are good. Mind you code post? Okay, I won't beat around the bush, can you post that snippet from your ant build file? I would be most appreciative! Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Real programmers just hate to get up in the morning, and contrary to Ordinary People, they're in better shape as it gets closer to nighttime. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts-config.xml
Here is a snipit of my struts-config.skeleton.xml: form-beans @core.formbean @campaign.formbean @promotion.formbean @promotionTypes.pantryLoading.formbean /form-beans action-mappings @core.action @campaign.action @promotion.action @promotionTypes.pantryLoading.action /action-mappings Here is the snipit from the build: Notes: there may be a better way to do this, this was quick and dirty Also, each individual developer has three files: struts-action.xml struts-formbean.xml validation.xml I use struts-action for the actions, struts-formbean for the formbeans, and I also build the validation file so that is what validation.xml is for target name=struts.config.build echo message=Building struts-config.xml/ delete file=${j2ee.struts}/ !-- struts-config.xml -- !-- build the struts-config.xml -- copy file=${j2ee.struts.skeleton} tofile=${j2ee.struts}/ loadfile property=struts.config.core.action srcFile=${src.core}/${j2ee.struts.action}/ loadfile property=struts.config.core.formbean srcFile=${src.core}/${j2ee.struts.formbean}/ replace file=${j2ee.struts} token=@core.action value=${struts.config.core.action}/ replace file=${j2ee.struts} token=@core.formbean value=${struts.config.core.formbean}/ You should be able to get this gist from that Works very well -- Sloan - Original Message - From: Dan Allen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 21, 2003 9:31 AM Subject: Re: struts-config.xml Sloan Seaman ([EMAIL PROTECTED]) wrote: You can also have imultiple files and then have ANT use a skeleton struts-config.xml file to build the final file. Just use variable replacement in ANT to insert all the seperate files into one master file (that is how we do it) Great idea! Who cares what the deployed struts-config.xml file looks like after all. Man, maybe struts developers could have saved the time and just relied on ant. Oh well, guess options are good. Mind you code post? Okay, I won't beat around the bush, can you post that snippet from your ant build file? I would be most appreciative! Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Real programmers just hate to get up in the morning, and contrary to Ordinary People, they're in better shape as it gets closer to nighttime. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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: struts-config.xml
Thanks Joseph! This is exactly the solution we are looking for. We can break our struts-config.xml file into multiple files and do not have the added complexity of using application modules. Pat Young --- Joseph Fifield [EMAIL PROTECTED] wrote: If you are using 1.1, you can simply split the file into multiple files, and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3. We have one for every major part of our application, and it required no additional code changes. Joe -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-config.xml
Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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: struts-config.xml
Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-config.xml
If you're using struts 1.1, probably you can modularize the struts config. Each module has its own xml file. The modules can be broken down by developer groups/functions Wayne Christian Sr. Staff Software Engineer Genesys Telecommunications Labs 2100 Gateway Centre Blvd. Suite 300 Morrisville, NC 27560 ? Office: (919) 466-6151 Fax:(919) 466-6157 ? EMail: mailto:[EMAIL PROTECTED] -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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: struts-config.xml
You use the new module architecture. This allows you to separate your application in multiple modules and each module have its own config file. reguards. Lionel Roux __ Lionel Roux mail: [EMAIL PROTECTED] __ This messages is certified virus free by NAV 2003 - Original Message - From: Pat Young [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:13 PM Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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: struts-config.xml
If you are using 1.1, you can simply split the file into multiple files, and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3. We have one for every major part of our application, and it required no additional code changes. Joe -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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: struts-config.xml
Use a concurrent source code control mechanism such as CVS. This way multiple people can work on on the same file at the same time. On Thu, 2003-03-20 at 13:13, Pat Young wrote: I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ David H. Patton [EMAIL PROTECTED] (202) 276-8998 - pcs -BEGIN PGP PUBLIC KEY BLOCK- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w 3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa 2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF GwMACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T 5WDzzKEGsyxOI+GYeGRKO0ZAYITG9HxevvKa1GMHBwRYNr2Qv62ckkHTy5rdmzZe PFM/am8B9maH5gKg6oIqzJwfmvb+ll8DRbhfI25trLqzggifrFcZHkOwTVGLNfdM cPWK/Yu4dOLAKCow06q0G/tDmXNkcyx12R6Z4Y/cQ5Qyvt1WP+eQAM/HBJI8rR9c cxS80pEorJIx4a7x9EsiwmB8milqBrXqHN2GRe/PnZSM9czBK7kBDQQ7ouqNAQgA sWO4lchFwK6leJClCpdaCjL4oUGjiZorW+XG2YKtQW6a+oYlplcHFkMSibkTN6Jc RdPEkarRvJ7sj+UgsUfkj4//EtqARuHTXhnMlsjqISTXlS2l61fQFg1d0iwvinyV sq6lVDtrr7UBe2b5TOuoRe13CzGWyhNQafV1gMcpBx9KxNi24UowJiT+cJpnxMCu +DNElC2AmG7phPagSFL8F4f++dGL2l8kAkxCSCl3Kr+8HUlFmOwwZ1PGSSM83pM/ NNZKDAdGUiBRKqC32oOhKacxb6cf4ta1kZ6GDZcqVo+5qlz4OtUKbRLtW5Y8tiFc PwkDePX/F1490V3YWgHVzwARAQABiQEiBBgBAgAMBQI7ouqNBRsMAAoJEOWQ 5D6nisB/8xsIAJLNUQC8SOQF5txBrO22W7uAJ9xU9RK66Pyf9a+KjdNf4rE6vK4n vhbSGmtoPB4bzOQ9RKpo8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6 4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+ TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3 XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0= =/zoc -END PGP PUBLIC KEY BLOCK-
Re: struts-config.xml
can you give us a working of your web.xml. i'm kind of thinking your kind of solution. thanks... - Original Message - From: Joseph Fifield [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, March 21, 2003 5:26 AM Subject: RE: struts-config.xml If you are using 1.1, you can simply split the file into multiple files, and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3. We have one for every major part of our application, and it required no additional code changes. Joe -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-config.xml
I work with ClearCase and WSAD 4.0.3 and can tell you that merging xml files of the size you are talking about is terrible. We have about 100+ different xml files about 2/3 the size or larger than what you describe, and I can tell you that of the 8 developers here, that is what we hate the most. We loose more time on xml merges than any other merge by double. Of coarse it might just be clearcase and WSAD _ 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: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:23 PM To: Struts Users Mailing List Subject: RE: struts-config.xml Yes, I have looked at sub-applications and we are considering it. Using sub-applications does have some technical considerations that have to be accounted for.I realize that we could use a merge feature of a versioning tool also. I was curious if anyone had any other creative ideas around this problem or if there was a feature in Struts that I had missed. Pat Young --- Mike Jasnowski [EMAIL PROTECTED] wrote: Well, version control considerations aside (for issues around merges when new struts-config.xml are checked in), Have you also looked at Struts sub-applications? Each can have it's own struts-config.xml. -Original Message- From: Pat Young [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:14 PM To: [EMAIL PROTECTED] Subject: struts-config.xml I am curious as to how others are working with the struts-config.xml file. I am working on a large project with a team of 8 other developers. So far we have over 200 actions. The struts-config.xml is becoming a bottle neck, because each developer needs to update the file at the same with entries into this file. Does anyone have any ideas as to how to make working with this file any easier? Thanks in advance. Pay Young __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts-config.xml parse errors (can't find source)
place yout formbeans before your global-forwards On Tuesday 11 March 2003 11:23 am, Rob wrote: I'm just throwing together a demo application to refresh myself w/ struts but have run into a problem where the struts-config.xml is resulting in parsing errors, problem is I can't figure out where the error is. If someone could point it out I would appreciate it. ?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; struts-config global-forwards !-- Query Database -- forward name=query path=/do/query/ !-- Browse Database -- forward name=browse path=/do/browse/ !-- Submit Bug Report -- forward name=newbug path=/do/newbug/ /global-forwards form-beans form-bean name=QueryForm type=web.QueryForm/ form-bean name=BrowseForm type=web.BrowseForm/ form-bean name=NewbugForm type=web.NewbugForm/ /form-beans action-mappings action path=/query type=web.QueryAction name=QueryForm input=/WEB-INF/pages/query.jsp scope=request /action action path=/browse type=web.BrowseAction name=BrowseForm input=/WEB-INF/pages/browse.jsp scope=request /action action path=/newbug type=web.NewbugAction name=NewbugForm input=/WEB-INF/pages/newbug.jsp scope=request /action /action-mappings /struts-config The error I'm getting from tomcat is, line 46 column 17 refers to a non-existent position in the document. While the document does have 46 lines it is the last line and column 17 is beyond the closing of the /structs-config tag. SEVERE: Parse Error at line 46 column 17: The content of element type struts-config must match (data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp i ngs?,controller?,message-resources*,plug-in*). org.xml.sax.SAXParseException: The content of element type struts-config must match (data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp i ngs?,controller?,message-resources*,plug-in*). - 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: struts-config.xml parse errors (can't find source)
Struts Console should help with issues like this as it validates config files and can point out where in a file a problem is. http://www.jamesholmes.com/struts/ -james --- Stephen Smithstone [EMAIL PROTECTED] wrote: place yout formbeans before your global-forwards On Tuesday 11 March 2003 11:23 am, Rob wrote: I'm just throwing together a demo application to refresh myself w/ struts but have run into a problem where the struts-config.xml is resulting in parsing errors, problem is I can't figure out where the error is. If someone could point it out I would appreciate it. ?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; struts-config global-forwards !-- Query Database -- forward name=query path=/do/query/ !-- Browse Database -- forward name=browse path=/do/browse/ !-- Submit Bug Report -- forward name=newbug path=/do/newbug/ /global-forwards form-beans form-bean name=QueryForm type=web.QueryForm/ form-bean name=BrowseForm type=web.BrowseForm/ form-bean name=NewbugForm type=web.NewbugForm/ /form-beans action-mappings action path=/query type=web.QueryAction name=QueryForm input=/WEB-INF/pages/query.jsp scope=request /action action path=/browse type=web.BrowseAction name=BrowseForm input=/WEB-INF/pages/browse.jsp scope=request /action action path=/newbug type=web.NewbugAction name=NewbugForm input=/WEB-INF/pages/newbug.jsp scope=request /action /action-mappings /struts-config The error I'm getting from tomcat is, line 46 column 17 refers to a non-existent position in the document. While the document does have 46 lines it is the last line and column 17 is beyond the closing of the /structs-config tag. SEVERE: Parse Error at line 46 column 17: The content of element type struts-config must match (data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp i ngs?,controller?,message-resources*,plug-in*). org.xml.sax.SAXParseException: The content of element type struts-config must match (data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mapp i ngs?,controller?,message-resources*,plug-in*). - 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] __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts-config.xml : data-source : Setup Question /Problem - Need help!
You're missing the type attribute on the datasource element. See the struts-config dtd for details. David From: Arun Prakash [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: struts-config.xml : data-source : Setup Question /Problem - Need help! Date: Thu, 13 Feb 2003 09:42:53 -0500 Hi I am trying to set the data source. Using DataDirect Connect JDBC Driver. Using Tommcat 4.1.18 SQLServer Database installed on my local box. data-sources data-source set-property property=driverClass value=com.ddtek.jdbc.sqlserver.SQLServerDriver / set-property property=url value=jdbc.datadirect:sqlserver://L0067285\\TEST_DB / set-property property=maxCount value=4 / set-property property=minCount value=1 / set-property property=user value=dbdtsadmin / set-property property=password value=dbadmin / set-property property=autoCommit value=false / /data-source /data-sources When I start my tomcat server, I get this error message 2003-02-13 08:58:40 action: Initializing configuration from resource path /WEB-INF/struts-config.xml 2003-02-13 08:58:40 action: Initializing application data source org.apache.struts.action.DATA_SOURCE 2003-02-13 08:58:40 StandardContext[/competitive-analysis]: Servlet /competitive-analysis threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.NullPointerException at org.apache.struts.util.GenericConnection.init(GenericConnection.java:115) at org.apache.struts.util.GenericDataSource.createConnection(GenericDataSource.java:733) at org.apache.struts.util.GenericDataSource.open(GenericDataSource.java:668) at org.apache.struts.action.ActionServlet.initDataSources(ActionServlet.java:1078) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at
RE: Struts-config.xml and DynaBeans
MJ, using Digester and org.apache.commons.beanutils package, its not that difficult to do this. In our most recent project, we leverage DynaBeans heavily for creating view objects to avoid having to physically create them (RowSetDynaClass was not around). We define them in an xml file and read them into memory at run time. So when we need a view it looks something like this: ViewFactory vf = ViewFactory.getInstance(); DynaBean view = vf.getView(myView); Adding a new view is as simple as adding a few lines of XML. This approach allows use to leverage DynaBeans and not necessarily be dependent on Struts. robert -Original Message- From: MJ McLaren, Information Systems and Computing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 7:30 AM To: [EMAIL PROTECTED] Subject: Struts-config.xml and DynaBeans Hi, This is my very first contribution. I am new to Struts and fairly new to JSP (so go easy on me). I am working on a project that is considering using Struts 1.1. So far I am very impressed, anything that reduces the amount of Java code I need to write gets my vote. I have been looking at dynabeans and the struts version of DynaActionFormClass. I noted that in the Struts configuration file the section for describing form-beans. This is great but being a very lazy programmer, what about a section for describing any type of DynaBean and not just form-beans specifically. The temptation is to write any DynaBean that I use in my web application as a form-bean in the Struts-Config file even when I have no intention of making it an actual form-bean i.e. writing a validate method or using it via a form. Other than that fact that it make my Struts configuration file confusing, any reason why I should not be doing this? Thanks, Mark -- 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]
RE: Struts-config.xml and DynaBeans
Can you give me an example of your factory? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: January 22, 2003 7:56 AM To: Struts Users Mailing List Subject: RE: Struts-config.xml and DynaBeans MJ, using Digester and org.apache.commons.beanutils package, its not that difficult to do this. In our most recent project, we leverage DynaBeans heavily for creating view objects to avoid having to physically create them (RowSetDynaClass was not around). We define them in an xml file and read them into memory at run time. So when we need a view it looks something like this: ViewFactory vf = ViewFactory.getInstance(); DynaBean view = vf.getView(myView); Adding a new view is as simple as adding a few lines of XML. This approach allows use to leverage DynaBeans and not necessarily be dependent on Struts. robert -Original Message- From: MJ McLaren, Information Systems and Computing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 7:30 AM To: [EMAIL PROTECTED] Subject: Struts-config.xml and DynaBeans Hi, This is my very first contribution. I am new to Struts and fairly new to JSP (so go easy on me). I am working on a project that is considering using Struts 1.1. So far I am very impressed, anything that reduces the amount of Java code I need to write gets my vote. I have been looking at dynabeans and the struts version of DynaActionFormClass. I noted that in the Struts configuration file the section for describing form-beans. This is great but being a very lazy programmer, what about a section for describing any type of DynaBean and not just form-beans specifically. The temptation is to write any DynaBean that I use in my web application as a form-bean in the Struts-Config file even when I have no intention of making it an actual form-bean i.e. writing a validate method or using it via a form. Other than that fact that it make my Struts configuration file confusing, any reason why I should not be doing this? Thanks, Mark -- 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]
RE: Struts-config.xml and DynaBeans
Objects are defined in an XML file like so: view-configs view-config view-nameaddress/view-name view-attributenamestreet1/nametypejava.lang.String/typevalue/va lue/view-attribute view-attributenamestreet2/nametypejava.lang.String/typevalue/va lue/view-attribute view-attributenamecity/nametypejava.lang.String/typevalue/value /view-attribute view-attributenamestate/nametypejava.lang.String/typevalue/valu e/view-attribute view-attributenamecountry/nametypejava.lang.String/typevalue/va lue/view-attribute /view-config view-config etc... /view-config /view-configs The ViewFactory is initialized when the web app is initialized and uses Digester to create a collection of ViewConfig objects. These are just objects that represent the XML structure view-config. ViewFactory then iterates over the ViewConfigs and creates instances of DynaClass objects which are cached under their unique name (view-name). The ViewFactory.getView() just looks up the view using the specified name, gets the DynaClass instance and invokes DynaClass.newInstance() to return a new instance of the DynaClass which implements the DynaBean interface. Currently the value/ has no meaning, but may be enhanced in the future to allow for default values. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: RE: Struts-config.xml and DynaBeans Can you give me an example of your factory? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: January 22, 2003 7:56 AM To: Struts Users Mailing List Subject: RE: Struts-config.xml and DynaBeans MJ, using Digester and org.apache.commons.beanutils package, its not that difficult to do this. In our most recent project, we leverage DynaBeans heavily for creating view objects to avoid having to physically create them (RowSetDynaClass was not around). We define them in an xml file and read them into memory at run time. So when we need a view it looks something like this: ViewFactory vf = ViewFactory.getInstance(); DynaBean view = vf.getView(myView); Adding a new view is as simple as adding a few lines of XML. This approach allows use to leverage DynaBeans and not necessarily be dependent on Struts. robert -Original Message- From: MJ McLaren, Information Systems and Computing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 7:30 AM To: [EMAIL PROTECTED] Subject: Struts-config.xml and DynaBeans Hi, This is my very first contribution. I am new to Struts and fairly new to JSP (so go easy on me). I am working on a project that is considering using Struts 1.1. So far I am very impressed, anything that reduces the amount of Java code I need to write gets my vote. I have been looking at dynabeans and the struts version of DynaActionFormClass. I noted that in the Struts configuration file the section for describing form-beans. This is great but being a very lazy programmer, what about a section for describing any type of DynaBean and not just form-beans specifically. The temptation is to write any DynaBean that I use in my web application as a form-bean in the Struts-Config file even when I have no intention of making it an actual form-bean i.e. writing a validate method or using it via a form. Other than that fact that it make my Struts configuration file confusing, any reason why I should not be doing this? Thanks, Mark -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-config.xml
Thank you for the confirmation that the multi-modules is working in the 1.1 version. I am looking for some examples and documentation; would you point me to some. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Mon 12/16/2002 11:04 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Cc: Subject: RE: Struts-config.xml On Mon, 16 Dec 2002, Andrew Hill wrote: Date: Mon, 16 Dec 2002 19:04:33 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Struts-config.xml 1.1 is officially still in beta (b2 with b3 any time soon) at the moment, but if thats not a 'political' problem it has far more functionality , and in my opinion is stabler (I could be wrong) than the ancient 1.0.2 One of the new features is an ability to split your application into multiple 'modules' , each of which I believe has its own struts-config.xml Ive not used this feature yet myself, but you could check out the docs for it and see if it would be of use for you. In addition to this feature, recent nightly builds also let you split up the struts-config.xml for a single application module into separate files if you want to. Simply specify a comma-separated list of resource paths for the config init parameter. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-config.xml
struts 1.1 already supports that.But I am not sure if u want to use struts 1.1 as of yet as its not that stable But we are using struts 1.0 for a fairly large application (some 300 pages and 150 actions).As u said, struts config becomes big and managing it in a big team is a bit of problem as well. -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:37 AM To: struts-user Cc: usha Subject: Struts-config.xml Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- 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]
RE: Struts-config.xml
lol. Its far more stable than 1.0.2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 18:03 To: [EMAIL PROTECTED] Subject: RE: Struts-config.xml struts 1.1 already supports that.But I am not sure if u want to use struts 1.1 as of yet as its not that stable But we are using struts 1.0 for a fairly large application (some 300 pages and 150 actions).As u said, struts config becomes big and managing it in a big team is a bit of problem as well. -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:37 AM To: struts-user Cc: usha Subject: Struts-config.xml Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts-config.xml
Hi do u mean that i can use the verison 1.1 now. then how it solves my problem then usha Andrew Hill wrote: lol. Its far more stable than 1.0.2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 18:03 To: [EMAIL PROTECTED] Subject: RE: Struts-config.xml struts 1.1 already supports that.But I am not sure if u want to use struts 1.1 as of yet as its not that stable But we are using struts 1.0 for a fairly large application (some 300 pages and 150 actions).As u said, struts config becomes big and managing it in a big team is a bit of problem as well. -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:37 AM To: struts-user Cc: usha Subject: Struts-config.xml Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- 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] -- 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]
RE: Struts-config.xml
1.1 is officially still in beta (b2 with b3 any time soon) at the moment, but if thats not a 'political' problem it has far more functionality , and in my opinion is stabler (I could be wrong) than the ancient 1.0.2 One of the new features is an ability to split your application into multiple 'modules' , each of which I believe has its own struts-config.xml Ive not used this feature yet myself, but you could check out the docs for it and see if it would be of use for you. -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 18:53 To: Struts Users Mailing List Subject: Re: Struts-config.xml Hi do u mean that i can use the verison 1.1 now. then how it solves my problem then usha Andrew Hill wrote: lol. Its far more stable than 1.0.2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 18:03 To: [EMAIL PROTECTED] Subject: RE: Struts-config.xml struts 1.1 already supports that.But I am not sure if u want to use struts 1.1 as of yet as its not that stable But we are using struts 1.0 for a fairly large application (some 300 pages and 150 actions).As u said, struts config becomes big and managing it in a big team is a bit of problem as well. -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 6:37 AM To: struts-user Cc: usha Subject: Struts-config.xml Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts-config.xml
You can use the Struts Console for making easy work of managing a large config file. http://www.jamesholmes.com/struts/ -james --- usha [EMAIL PROTECTED] wrote: Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-config.xml
You can also use XML entities to split up any XML file, example below. I have not use this with 1.0.2 but it works fine with 1.1b2 and I don't see why it wouldn't work with 1.0.2. Good luck. ?xml version=1.0 encoding=UTF-8? !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 forms SYSTEM form-beans/forms.xml !ENTITY plugins SYSTEM plug-in/isman.xml !ENTITY misc-actions SYSTEM action-mappings/misc-action.xml !ENTITY classifieds-actions SYSTEM action-mappings/classifieds.xml !ENTITY category-actions SYSTEM action-mappings/category.xml !ENTITY employee-actions SYSTEM action-mappings/employee.xml !ENTITY customer-actions SYSTEM action-mappings/customer.xml !ENTITY salesorder-actionsSYSTEM action-mappings/salesorder.xml !ENTITY report-actionsSYSTEM action-mappings/report.xml ] struts-config !-- bean definition -- form-beans forms; /form-beans !-- == Global Forward Definitions == -- global-forwards forward name=welcome path=/index.jsp / forward name=logout path=/do/logout / forward name=login path=/do/force-login / /global-forwards !-- == Action Mappings Definitions == -- action-mappings type=org.apache.struts.config.SecureActionConfig classifieds-actions; category-actions; employee-actions; customer-actions; salesorder-actions; report-actions; misc-actions; /action-mappings ... .. . /struts-config -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 12:37 AM To: [EMAIL PROTECTED] Subject: Struts-config.xml Hi I am new to the Struts, testing some sample applications. we want to implement the struts in our existing project. right now we have almost 50 tables and more than 200 submittion pages. what my concern about the struts is if i have to configure all the form beans and the action mappings the struts-config.xml will become large file. is there any way i can create new configuration file and the action servlet class referes to this config.xml. what i mean is can i divide into different config files. Thanks usha -- 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]
RE: Struts-config.xml
On Mon, 16 Dec 2002, Andrew Hill wrote: Date: Mon, 16 Dec 2002 19:04:33 +0800 From: Andrew Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Struts-config.xml 1.1 is officially still in beta (b2 with b3 any time soon) at the moment, but if thats not a 'political' problem it has far more functionality , and in my opinion is stabler (I could be wrong) than the ancient 1.0.2 One of the new features is an ability to split your application into multiple 'modules' , each of which I believe has its own struts-config.xml Ive not used this feature yet myself, but you could check out the docs for it and see if it would be of use for you. In addition to this feature, recent nightly builds also let you split up the struts-config.xml for a single application module into separate files if you want to. Simply specify a comma-separated list of resource paths for the config init parameter. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts-config.xml
On Mon, 16 Dec 2002 19:04:33 +0800, Andrew Hill wrote: 1.1 is officially still in beta (b2 with b3 any time soon) at the moment, but if thats not a 'political' problem it has far more functionality , and in my opinion is stabler (I could be wrong) than the ancient 1.0.2 Mind you, for pretty well any commercial project I have worked on, it is almost certain that you won't be able to use a beta version of a product. Sure, the beta may be more stable than the official release - but you can't guarantee that it will be static - there is no way to be sure that you won't have to change your code to cope with changes in later beta versions. The official release should only change if there are bug-fixes, and even then the public interfaces shouldn't change. - Korny, who'd really like to be using 1.1 :) p.s. Hi to the list! -- Kornelis Sietsma http://www.sietsma.com/korny [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-config.xml
Yep. Pretty much sums it up, although, just because a newer beta gets put out doesnt mean you have to upgrade to it. If they one you are using is fine and its bugs dont affect your code then you could quite conceivably stick with it forever... -Original Message- From: Kornelis Sietsma [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 09:14 To: Struts Users Mailing List Subject: Re: Struts-config.xml On Mon, 16 Dec 2002 19:04:33 +0800, Andrew Hill wrote: 1.1 is officially still in beta (b2 with b3 any time soon) at the moment, but if thats not a 'political' problem it has far more functionality , and in my opinion is stabler (I could be wrong) than the ancient 1.0.2 Mind you, for pretty well any commercial project I have worked on, it is almost certain that you won't be able to use a beta version of a product. Sure, the beta may be more stable than the official release - but you can't guarantee that it will be static - there is no way to be sure that you won't have to change your code to cope with changes in later beta versions. The official release should only change if there are bug-fixes, and even then the public interfaces shouldn't change. - Korny, who'd really like to be using 1.1 :) p.s. Hi to the list! -- Kornelis Sietsma http://www.sietsma.com/korny [EMAIL PROTECTED] -- 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]
Re: struts-config.xml
2002. december 3. 17:39 dátummal Cathy Osekizoglu ezt írtad: I have html: form action=/pay.do?id=1type= + type/ in my Jsp. What should be in path of action tag of struts-config.xml? Can I simply have path=pay or I must include parameter in the path. Thank you for your reply. If you would like to add some unmodifiable parameters to your form, use the hidden tags. html:form action=/pay html:hidden property=id value=1/ etc etc Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts-config.xml
Prefer to use the hidden parameters : html:form action=/pay html:hidden property=id [value=yourvalue] / html:hidden property=type [value=yourvalue] / ... /html:form id and type must be a declared property in your form bean. (or dynamic if you use DynaActionForm). You must set the id and type value with your form bean instance ... or with the value attribute. -emmanuel Cathy Osekizoglu lt;[EMAIL PROTECTED]gt; a écrit : I have in my Jsp. What should be in path of action tag of struts-config.xml? Can I simply have path=pay or I must include parameter in the path. Thank you for your reply. Cathy - Post your free ad now! Yahoo! Canada Personals - Soyez solidaire soutenez laction du Téléthon avec Yahoo! France. Cliquez ici pour faire un don !
RE: struts-config.xml question
Victor and Emmanuel, thanks for your answers. With them, and the later discussion on similar topics I think I understand. Part of my confusion comes from a bug I've not been able to repeat. At one point in time I changed the 'attribute' property to 'name' and my application stopped working. It seems that I had done something else (not sure what) and the problem had nothing to do with using 'name'. I've just tried to repeat it in isolation and I can't. Again, thanks. Kevin. __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml question
'attribute' is an alias for 'name'. if none is specified, name is used. You can look at the javadoc of ActionMapping for complete doc on the action tag. -Message d'origine- De : Kevin HaleBoyes [mailto:[EMAIL PROTECTED]] Envoye : mardi 1 octobre 2002 17:23 A : [EMAIL PROTECTED] Objet : struts-config.xml question I'm looking at the struts-example and its struts-config.xml file. In the action section for editRegistration, 'attribute' is set to 'registrationForm'. As I understand it (from the DTD), attribute is the name of the scoped (session or request) attribute that is used to access the ActionForm bean. Now in the action section for saveRegistration 'name' is set to 'registrationForm'. 'name' is the name of the form bean that is associated with this mapping. What is the difference between 'attribute' and 'name'? It seems that they are the same thing. Is this true? Looking at the source for the edit and save registration actions, they both call mapping.getAttribute() to get the name of the ActionForm bean. Why does that work for the saveRegistration action when it doesn't even have an 'attribute' defined for its action? Why doesn't saveRegistration use 'attribute' instead of 'name'? Thanks, Kevin. __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- 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]
RE: struts-config.xml Explanation Needed - Ryan Norman
Ryan, . Go to http://jakarta.apache.org/struts/doc-1.0.2/api/index.html read Class ActionMapping . ActionMapping is the object that holds the value of action tag validate is explained here . same for ActionFormBean only name and type. . html:form action=X with the action X is equal to path in action + .do have fun, Leonardo Maciel -Original Message- From: Ryan Norman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:40 PM To: Struts User Mailing List Subject: struts-config.xml Explanation Needed - Ryan Norman Hi, I am Ryan Norman. I started with struts about a week ago. I went through the documentation. Still I could not understand some portions of struts. Can somebody explain me the following: . Dissection of this tag. !-- Add User action -- action path=/addUser type=strutstest1.SystemUserAction name=userForm scope=request input=/admin/dsp_User.jsp validate=false forward name=success path=/admin/dsp_User.jsp/ forward name=failure path=/admin/search/dsp_SearchUser.jsp/ /action . What am I achieving by giving the validate=false in the above tag. . Dissection of this tag form-bean name=userForm type=strutstest1.SystemUserForm / What is the association of of the html:form action=X with the action tag. Thanks in advance Ryan Norman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml not loading - WL6.0 - urgent
Hi San. I'm working with weblogic6.1, and there's no problem with struts, if u can be more specific about, the web.xml and struts-confix.xml content And where did u put struts.jar. Look at the struts example it should work. -Original Message- From: Santhosh Kumar [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 03, 2002 7:39 AM To: '[EMAIL PROTECTED]' Subject: struts-config.xml not loading - WL6.0 - urgent Hi I am using Weblogic 6.0. My problem is its not loading the action mapping at the time of startup. I have kept struts-config.xml in web-inf and struts.jar in classpath. I have pasted down the console messages. Please let me know if any of you have any clue. Thanks in advance San == Mar 3, 2002 10:36:37 AM GMT+05:30 Info HTTP [WebAppServletContext(5093971,applications/web)] action: init Mar 3, 2002 10:36:37 AM GMT+05:30 Info HTTP [WebAppServletContext(5093971,applications/web)] action: Initializing configuration from resource path /WEB-INF/struts-config.xml resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Not registered, use system identifier resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Not registered, use system identifier register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/D:/Projects/sant/deploy/cma/applications/web/WEB-INF/lib/struts.j ar!/org/apache/struts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:/D:/Projects/sant/deploy/cma/applications/web/WEB-INF/lib/struts.j ar!/org/apache/struts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:/D:/Projects/sant/deploy/cma/applications/web/WEB-INF/lib/struts.j ar!/org/apache/struts/resources/web-app_2_3.dtd' resolveEntity('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd') Resolving to alternate DTD 'jar:file:/D:/Projects/sant/deploy/cma/applications/web/WEB-INF/lib/struts.j ar!/org/apache/struts/reso urces/web-app_2_2.dtd' Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.St ring,*.action/java.lang.String) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts-config.xml
What you are really asking is how to have different buttons fire different actions. There are several approach to this. The JavaScript approach is described here: http://jguru.com/faq/view.jsp?EID=543699 There is also the new org.apache.struts.actions.LookupDispatchAction in the nightly build. Also in the contrib folder of the nightly build, there is a package called scaffold with another standard Action, org.apache.scaffold.http.FindForwardAction (my personal favorite). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Rajan, Jeffy wrote: I hope someone can provide me a sample struts-config.xml snippet for my workflow stated as below: 1. A form is displayed to the user. The form has some fields with defaults values (i.e. current date etc) and blank fields 2. The form has the following actions permitted: SAVE (update/insert), DELETE and RESET 3. When the user SAVES, a form validate might restrict the save, a validation in the action class might restrict the save, database exception might restrict the save, or the save is successful. In all these cases, the user is displayed the same form with data entered by the user with a notification of the success or failure of the action at the top of the form. 4. When the user DELETES, on error the same form is displayed with the error on top. if successful, a blank form is displayed with a message on top informing the user that the delete was successful 5. When the user RESETS, a blank form is displayed with no messages on top of the form. Thanks -- 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]
RE: Struts-config.xml
Thanks Ted, I checked the URL and I am doing something similar using JavaScript. I have a question.. My forwards is as below forward name=update path=/do/prospect/Store/ forward name=reset path=/do/prospect/Store/ forward name=delete path=/do/prospect/Store/ pls note all forwards are same I do the following for a delete action now if(action.equals(delete) success) form.reset(); return mapping.findForward(request.getParameter(forward)); another scenario if(action.equals(insert){ int success = data.insert(); //something similar if(Constants.SUCCESSFUL) errors.add(new ActionError(error.save.successful)); else if (Constants.DATBABASE_ERROR) errors.add(new ActionError(error.save.databaseerror)); else if (Constants.GENERAL_ERROR) errors.add(new ActionError(error.save.systemerror)); } return mapping.findForward(request.getParameter(forward)); Is there a better way? Thanks. for ref from http://jguru.com/faq/view.jsp?EID=543699 QUOTE A good trick here is to use a generic routing or relay action, so you don't have to hardcode some type of switch into the Action. It's just one line in the perform method: return mapping.findForward(request.getParameter(forward)); This can be used any number of times in a Struts application, just by changing the form bean and the local forwards in its mapping. action path=/prospect/Submit type=org.apache.scaffold.http.RelayAction name=prospectForm scope=request validate=false forward name=update path=/do/prospect/Store/ forward name=cancel path=/do/prospect/Current/ UNQUOTE -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 10:52 AM To: Struts Users Mailing List Subject: Re: Struts-config.xml What you are really asking is how to have different buttons fire different actions. There are several approach to this. The JavaScript approach is described here: http://jguru.com/faq/view.jsp?EID=543699 There is also the new org.apache.struts.actions.LookupDispatchAction in the nightly build. Also in the contrib folder of the nightly build, there is a package called scaffold with another standard Action, org.apache.scaffold.http.FindForwardAction (my personal favorite). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Rajan, Jeffy wrote: I hope someone can provide me a sample struts-config.xml snippet for my workflow stated as below: 1. A form is displayed to the user. The form has some fields with defaults values (i.e. current date etc) and blank fields 2. The form has the following actions permitted: SAVE (update/insert), DELETE and RESET 3. When the user SAVES, a form validate might restrict the save, a validation in the action class might restrict the save, database exception might restrict the save, or the save is successful. In all these cases, the user is displayed the same form with data entered by the user with a notification of the success or failure of the action at the top of the form. 4. When the user DELETES, on error the same form is displayed with the error on top. if successful, a blank form is displayed with a message on top informing the user that the delete was successful 5. When the user RESETS, a blank form is displayed with no messages on top of the form. Thanks -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml-Is there a tool to find errors in it?
What kind of error do you mean? Does it parse and validate against the provided DTD? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:14 AM To: Struts Users Mailing List Subject: struts-config.xml-Is there a tool to find errors in it? Hi I have an error with my struts-config.xml file and I cannot find where the error is. Is there a tool which will help me track down where the error is, the messages in the tomcat log files are not very helpful in tracking down the error. Cheers Tony -- 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]
Re: struts-config.xml-Is there a tool to find errors in it?
Here is the part of the debug log which shows the error ---start tomcat log-- [snip] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' New org.apache.struts.action.ActionFormBean Set org.apache.struts.action.ActionFormBean properties Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:528) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) at org.apache.catalina.core.StandardContext.start(StandardContext.java) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java) at org.apache.catalina.core.StandardHost.install(StandardHost.java) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java) at org.apache.catalina.startup.HostConfig.start(HostConfig.java) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardHost.start(StandardHost.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java) at org.apache.catalina.core.StandardService.start(StandardService.java) at org.apache.catalina.core.StandardServer.start(StandardServer.java) at org.apache.catalina.startup.Catalina.start(Catalina.java) at org.apache.catalina.startup.Catalina.execute(Catalina.java) at org.apache.catalina.startup.Catalina.process(Catalina.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java) Starting service Tomcat-Apache Apache Tomcat/4.0.1 -end tomcat log-- Jeff Martin wrote: What kind of error do you mean? Does it parse and validate against the provided DTD? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:14 AM To: Struts Users Mailing List Subject: struts-config.xml-Is there a tool to find errors in it? Hi I have an error with my
Re: struts-config.xml-Is there a tool to find errors in it?
try this link. it might help. Struts Console version 1.2 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.2.zip [EMAIL PROTECTED] wrote: Hi I have an error with my struts-config.xml file and I cannot find where the error is. Is there a tool which will help me track down where the error is, the messages in the tomcat log files are not very helpful in tracking down the error. Cheers Tony -- 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]
Re: struts-config.xml-Is there a tool to find errors in it?
Can I use this without using an IDE? ejf wrote: try this link. it might help. Struts Console version 1.2 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.2.zip [EMAIL PROTECTED] wrote: Hi I have an error with my struts-config.xml file and I cannot find where the error is. Is there a tool which will help me track down where the error is, the messages in the tomcat log files are not very helpful in tracking down the error. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts-config.xml-Is there a tool to find errors in it?
Yes I am using 1.4beta. But an almost identical webapp works with 1.4beta. Strange I say. Tuomo Syvänperä wrote: Hi Antony, Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an instance of declaring class' - error when I used JDK 1.4. Try switching to 1.3 /tuomo [EMAIL PROTECTED] wrote: Here is the part of the debug log which shows the error ---start tomcat log-- [snip] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' New org.apache.struts.action.ActionFormBean Set org.apache.struts.action.ActionFormBean properties Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:528) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) at org.apache.catalina.core.StandardContext.start(StandardContext.java) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java) at org.apache.catalina.core.StandardHost.install(StandardHost.java) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java) at org.apache.catalina.startup.HostConfig.start(HostConfig.java) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardHost.start(StandardHost.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java) at org.apache.catalina.core.StandardService.start(StandardService.java) at org.apache.catalina.core.StandardServer.start(StandardServer.java) at org.apache.catalina.startup.Catalina.start(Catalina.java) at org.apache.catalina.startup.Catalina.execute(Catalina.java) at org.apache.catalina.startup.Catalina.process(Catalina.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java) Starting service Tomcat-Apache Apache Tomcat/4.0.1 -end tomcat log-- Jeff Martin wrote: What kind of error do you mean? Does it parse and validate against the provided DTD?
Re: struts-config.xml-Is there a tool to find errors in it?
The problem only came up occasionally. If I had two webapps and I started the servlet container and accessed one of them, it works fine. If after that I try to access the other one, it gives the error below. Everything has worked fine since I switched back to 1.3 JDK. /tuomo [EMAIL PROTECTED] wrote: Yes I am using 1.4beta. But an almost identical webapp works with 1.4beta. Strange I say. Tuomo Syvänperä wrote: Hi Antony, Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an instance of declaring class' - error when I used JDK 1.4. Try switching to 1.3 /tuomo [EMAIL PROTECTED] wrote: Here is the part of the debug log which shows the error ---start tomcat log-- [snip] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' New org.apache.struts.action.ActionFormBean Set org.apache.struts.action.ActionFormBean properties Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:528) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) at org.apache.catalina.core.StandardContext.start(StandardContext.java) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java) at org.apache.catalina.core.StandardHost.install(StandardHost.java) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java) at org.apache.catalina.startup.HostConfig.start(HostConfig.java) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardHost.start(StandardHost.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java) at org.apache.catalina.core.StandardService.start(StandardService.java) at org.apache.catalina.core.StandardServer.start(StandardServer.java) at org.apache.catalina.startup.Catalina.start(Catalina.java) at org.apache.catalina.startup.Catalina.execute(Catalina.java) at org.apache.catalina.startup.Catalina.process(Catalina.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at
Re: struts-config.xml-Is there a tool to find errors in it?
I changed to have tomcat run with 1.3 and it works fine now. Question for someone. Is the active development of struts done with Suns JDK1.3 or Suns JDK1.4? or some other vendors JDK. Cheers Tony Tuomo Syvänperä wrote: The problem only came up occasionally. If I had two webapps and I started the servlet container and accessed one of them, it works fine. If after that I try to access the other one, it gives the error below. Everything has worked fine since I switched back to 1.3 JDK. /tuomo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts-config.xml-Is there a tool to find errors in it?
Does it pose any problems developing an application with JDK1.4 and running it on Tomcat4 using JRE1.3? Cheers Tony Tuomo Syvänperä wrote: The problem only came up occasionally. If I had two webapps and I started the servlet container and accessed one of them, it works fine. If after that I try to access the other one, it gives the error below. Everything has worked fine since I switched back to 1.3 JDK. /tuomo [EMAIL PROTECTED] wrote: Yes I am using 1.4beta. But an almost identical webapp works with 1.4beta. Strange I say. Tuomo Syvänperä wrote: Hi Antony, Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an instance of declaring class' - error when I used JDK 1.4. Try switching to 1.3 /tuomo [EMAIL PROTECTED] wrote: Here is the part of the debug log which shows the error ---start tomcat log-- [snip] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' New org.apache.struts.action.ActionFormBean Set org.apache.struts.action.ActionFormBean properties Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:528) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) at org.apache.catalina.core.StandardContext.start(StandardContext.java) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java) at org.apache.catalina.core.StandardHost.install(StandardHost.java) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java) at org.apache.catalina.startup.HostConfig.start(HostConfig.java) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardHost.start(StandardHost.java) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java) at org.apache.catalina.core.StandardService.start(StandardService.java) at org.apache.catalina.core.StandardServer.start(StandardServer.java) at org.apache.catalina.startup.Catalina.start(Catalina.java) at org.apache.catalina.startup.Catalina.execute(Catalina.java) at org.apache.catalina.startup.Catalina.process(Catalina.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
RE: struts-config.xml-Is there a tool to find errors in it?
I use xmllint. It is very simplistic, but works well. It comes as part of the gnome xml library, but you can download the sources and compile with cygwin on windows if you need to run it there. homepage at http://xmlsoft.org/ Sources at ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/ hope this helps. Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:14 AM To: Struts Users Mailing List Subject: struts-config.xml-Is there a tool to find errors in it? Hi I have an error with my struts-config.xml file and I cannot find where the error is. Is there a tool which will help me track down where the error is, the messages in the tomcat log files are not very helpful in tracking down the error. Cheers Tony -- 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]
RE: struts-config.xml-Is there a tool to find errors in it?
Hi Why dont you amend the example from http://www.ecerami.com/xerces/ where the xml document is validated against a dtd. The stack trace and warnings should be sufficient to figure out where the problem in the xml lies? Martin -Original Message- From: Bryant, Doug [mailto:[EMAIL PROTECTED]] Sent: 19 December 2001 13:40 To: 'Struts Users Mailing List' Subject: RE: struts-config.xml-Is there a tool to find errors in it? I use xmllint. It is very simplistic, but works well. It comes as part of the gnome xml library, but you can download the sources and compile with cygwin on windows if you need to run it there. homepage at http://xmlsoft.org/ Sources at ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/ hope this helps. Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:14 AM To: Struts Users Mailing List Subject: struts-config.xml-Is there a tool to find errors in it? Hi I have an error with my struts-config.xml file and I cannot find where the error is. Is there a tool which will help me track down where the error is, the messages in the tomcat log files are not very helpful in tracking down the error. Cheers Tony -- 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] ** For great Emap magazine subscription gift offers visit http://www.emapmagazines.co.uk ** The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Emap plc and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml question
Hi Edward You will need to add a mapping into your web.xml. Jon. -Original Message- From: Edward Q. Bridges [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 09:36 To: [EMAIL PROTECTED] Subject: struts-config.xml question given the below struts config which is part of a war file named 'wizard.war', i am trying to have a url that appears in the client web-browser address bar of the sort: http://localhost:8080/wizard/logon but the only thing i can get to work is: http://localhost:8080/wizard/logon.jsp how can i accomplish this? struts-config form-beans form-bean name=logonForm type=logon.LogonForm/ /form-beans global-forwards forward name=logon path=/logon.jsp/ /global-forwards action-mappings actionpath=/logon type=logon.LogonAction name=logonForm scope=session input=/logon.jsp /action /action-mappings /struts-config TIA --e-- argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- 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]
RE: struts-config.xml question
ahh, yes. i have that too: servlet-mapping servlet-nameaction/servlet-name url-pattern/wizard/*/url-pattern /servlet-mapping where 'action' is the name of org.apache.struts.action.ActionServlet besides, isn't the name of the warfile taken as the default context for the web application? (am using jetty/jboss as a servlet container) thanks --e-- On Thu, 6 Dec 2001 09:41:49 -, Jon.Ridgway wrote: Hi Edward You will need to add a mapping into your web.xml. Jon. -Original Message- From: Edward Q. Bridges [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 09:36 To: [EMAIL PROTECTED] Subject: struts-config.xml question given the below struts config which is part of a war file named 'wizard.war', i am trying to have a url that appears in the client web-browser address bar of the sort: http://localhost:8080/wizard/logon but the only thing i can get to work is: http://localhost:8080/wizard/logon.jsp how can i accomplish this? struts-config form-beans form-bean name=logonForm type=logon.LogonForm/ /form-beans global-forwards forward name=logon path=/logon.jsp/ /global-forwards action-mappings actionpath=/logon type=logon.LogonAction name=logonForm scope=session input=/logon.jsp /action /action-mappings /struts-config TIA --e-- argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- 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] argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml question
Hi, you should use a url like: http://server_name/context_name/web_xml_mapping/struts-config_mapping assuming your app is under webapps/myApp/..., your server is called myServer then the url is: http://myServer/myApp/wizard/logon at least that's how it works... Alexander Jesse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 10:59 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: struts-config.xml question ahh, yes. i have that too: servlet-mapping servlet-nameaction/servlet-name url-pattern/wizard/*/url-pattern /servlet-mapping where 'action' is the name of org.apache.struts.action.ActionServlet besides, isn't the name of the warfile taken as the default context for the web application? (am using jetty/jboss as a servlet container) thanks --e-- On Thu, 6 Dec 2001 09:41:49 -, Jon.Ridgway wrote: Hi Edward You will need to add a mapping into your web.xml. Jon. -Original Message- From: Edward Q. Bridges [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 09:36 To: [EMAIL PROTECTED] Subject: struts-config.xml question given the below struts config which is part of a war file named 'wizard.war', i am trying to have a url that appears in the client web-browser address bar of the sort: http://localhost:8080/wizard/logon but the only thing i can get to work is: http://localhost:8080/wizard/logon.jsp how can i accomplish this? struts-config form-beans form-bean name=logonForm type=logon.LogonForm/ /form-beans global-forwards forward name=logon path=/logon.jsp/ /global-forwards action-mappings actionpath=/logon type=logon.LogonAction name=logonForm scope=session input=/logon.jsp /action /action-mappings /struts-config TIA --e-- argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- 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] argo_tec gmbh ed.q.bridges tel. 089-368179.552 fax 089-368179.79 osterwaldstraße 10 (haus F eingang 21) 80805 münchen /argo_tec gmbh -- 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]
RE: struts-config.xml
James, Does this fix involve changing the way the Digester handles XML external entity references (includes) by any chance? I ask because I am having trouble getting this to work. Thanks, Vaughan. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 8:01 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: struts-config.xml Dirk-- I am working on a patch for Struts to allow multiple config files and application resource files to be used. This would allow the application to be more modularized and would solve the problem/complaint of very large unmanageable config files. -james [EMAIL PROTECTED] http://www.ejcenter.com/struts/ --- storck [EMAIL PROTECTED] wrote: Hi, is it somehow possible that struts reads its configuration wich is defined in struts-config.xml and the content of the ApplicationResources.properties from a database? Is it possible to define for each and a bundle of JSP-Pages one ApplicationRescources.properties file so I dont have to put all in one file? Could be very confuse/large Thanks! __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
RE: struts-config.xml
No this would simply just be a change to the ActionServlet to read digest multiple files and does not involve any changes to the Digester code. -james --- Vaughan Jackson [EMAIL PROTECTED] wrote: James, Does this fix involve changing the way the Digester handles XML external entity references (includes) by any chance? I ask because I am having trouble getting this to work. Thanks, Vaughan. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 8:01 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: struts-config.xml Dirk-- I am working on a patch for Struts to allow multiple config files and application resource files to be used. This would allow the application to be more modularized and would solve the problem/complaint of very large unmanageable config files. -james [EMAIL PROTECTED] http://www.ejcenter.com/struts/ --- storck [EMAIL PROTECTED] wrote: Hi, is it somehow possible that struts reads its configuration wich is defined in struts-config.xml and the content of the ApplicationResources.properties from a database? Is it possible to define for each and a bundle of JSP-Pages one ApplicationRescources.properties file so I dont have to put all in one file? Could be very confuse/large Thanks! __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Re: struts-config.xml
Dirk-- I am working on a patch for Struts to allow multiple config files and application resource files to be used. This would allow the application to be more modularized and would solve the problem/complaint of very large unmanageable config files. -james [EMAIL PROTECTED] http://www.ejcenter.com/struts/ --- storck [EMAIL PROTECTED] wrote: Hi, is it somehow possible that struts reads its configuration wich is defined in struts-config.xml and the content of the ApplicationResources.properties from a database? Is it possible to define for each and a bundle of JSP-Pages one ApplicationRescources.properties file so I dont have to put all in one file? Could be very confuse/large Thanks! __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
Re: struts-config.xml : input attribute ?
input defines where control will return if validation errors are generated. For complete documentation on struts-config.xml, check out the comments in the DTD.You can view it here: http://cvs.apache.org/viewcvs/jakarta-struts/conf/share/struts-config_1_0.dt d?annotate=1.5 - Original Message - From: emmanuel.boudrant [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 3:01 AM Subject: struts-config.xml : input attribute ? Hello, How works the input attribute in struts-config.xml ? action path=/logon type=com.meeschaert.struts.logon.LogonAction name=logonForm input=/logon/logon.jsp forward name=success path=/logon/success.jsp / forward name=failure path=/logon/failure.jsp / /action When a request /logon.do, the /logon/logon.jsp page doesn't displayed. Thanx ___ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com
RE: struts-config.xml
Now you should write something like that : data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=My Data Source Configuration/ set-property property=driverClass value=oracle.jdbc.driver.OracleDriver/ set-property property=maxCount value=8/ set-property property=minCount value=2/ set-property property=user value=myuser/ set-property property=password value=secrer/ set-property property=url value=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(HOST=myhost)(PROTOCOL=tc p)(PORT=1))(CONNECT_DATA=(SID=mysid)))/ !-- requete utilisee pour faire un ping sur la base. Celle-ci doit etre tres rapide -- set-property property=pingQuery value=SELECT * FROM STOCK.VIDE/ /data-source /data-sources Arnaud -Message d'origine- De: Pfingstl Gernot [SMTP:[EMAIL PROTECTED]] Date: mercredi 8 aout 2001 11:35 A: '[EMAIL PROTECTED]' Objet: struts-config.xml In struts-config_1_0.dtd there is a note in the data-source section that the use of url, autocommit and so on as attributes is deprecated, you should use set-property instead. How can I use set-property in struts-config.xml? I have following datasource: data-source autoCommit=false description=My Data Source Configuration driverClass=oracle.jdbc.driver.OracleDriver maxCount=8 minCount=2 password=secrer url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(HOST=myhost)(PROTOCOL=tcp) (POR T=1))(CONNECT_DATA=(SID=mysid))) user=myuser/ How can I rewrite this description so that it uses set-property as it is stated in the DTD? Thank you, Gernot Fichier: ATT00010.htm
Re: struts-config.xml
On Wed, 11 Jul 2001, gdelgado wrote: On the struts-config.xml file: 1)Can someone give me a description of the use of the 'input' attribute under an action tag. The documentation is in the DTD itself. Basically, this attribute defines where Struts will return control to if the validate() method returns an error. 2)How can I handle the fact that the input may come from two different JPSs (either one or the other). Then you'll want to *not* use the standard mechanism of return a set of errors from your validate() method. Instead, have the validate() method store its errors in a request attribute, and let the action itself figure out where to return control to. At first glance, it is tempting to think of using the Referer header for this purpose. However, in a Struts-based application, this header will not be particularly useful -- because it only records the *browser's* notion of what the submitting page was. Because the browser doesn't know about any of the RequestDispatcher.forward() calls occurring on the server side, this will almost always be the URL of the last action that was executed, not the JSP page that was submitted. To get around this, I would suggest using a hidden form variable in your pages, so that the action can tell them apart. Craig McClanahan
Re: struts-config.xml - How do I open a success path as a new window???
When you say 'return', do you mean you want to close the new window? Or do you want to open a new link in the original window? If you just want to close the window, then you can use a javascript command such as: window.close() However, if you want to open a link in the parent window, it is a bit more tricky. I wrote a quick test to see if it would work...Here is the code I used: The parent page: HTML BODY form name=test1 id=test1 method=POST target=_blank action=testOpenerUpdate.html INPUT type=submit value=test setting window.opener URL /form a href=javascript:window.open('testOpenerUpdate.html', 'testwindow', location='yes')test setting window.opener URL/a /BODY /HTML the child page (testOpenerUpdate.html): HTML HEAD SCRIPT language=JavaScript function setOpenerUrl(newUrl) { window.opener.document.location.replace(newUrl); window.close(); } /SCRIPT /HEAD BODY FORM name=myForm id=myForm method=POST INPUT type=button name=test id=test onClick=setOpenerUrl('http://www.lycos.com') value=send parent window to lycos /FORM /BODY /HTML It appears that when submitting a form to a target '_blank', that the new window is not actually a child of the current window. Therefore, you cannot refer back to it. However, if you use a javascript, open() call, then you do create an actual child. I know that this is not a complete solution for you, but hopefully it is a step in the right direction?? Pete Linnea Ahlbeck wrote: Hi Pete!! This works, I didn´t know that I could use the target attribute in the html:form tag! Thanks! Do you also know how to specify the old window as target from the second window , I would like to return to the first window when the actions here are done? /Linnéa - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 7:33 PM Subject: Re: struts-config.xml - How do I open a success path as a new window??? On Thu, 14 Jun 2001, Peter Alfors wrote: What happens when you execute this? td align=lefta class=leftnav href=myAction.do target=_blankbean:message key=icon.calendar//td I would think that this should do what you want?? You can also use the target attribute on an html:form or html:link tag: td align=left html:link styleclass=leftnav page=/myAction.do target=_blank bean:message key=icon.calendar/ /html:link /td One advantage to this is that URL rewriting is automatically applied to maintain session state even if you're not using cookies. Pete Craig -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa
Re: struts-config.xml - How do I open a success path as a new window???
Your javascript code looks correct. :) However, if at all possible, I would avoid using javascript. Basically, because the user may have javascript turned off in their browser. Pete Abraham Kang wrote: Hi Linnea, I think it would be easier to usea class=leftnav href=javascript:window.open('yourAction.do','windowName', 'status=no')Your action will return mapping.findForward(success) to load the popup windows contents.Pete, my javascript is rusty so if you see any errors please correct.--Abraham -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa begin:vcard n:; x-mozilla-html:FALSE org:BRIMG SRC=http://www.irista.com/logo/irista.gif;BRBRFONT Color=#80FONT SIZE=2BBringing Vision to Your Supply Chain adr:;; version:2.1 end:vcard
Re: struts-config.xml - How do I open a success path as a new window???
Hi Abraham and Pete! Thanks for your help! The problem is - I don´t use a link directly from my jsp page to reach this new window. I have two submit buttons on my jsp-page, Save and Insert Address . The form:action on the jsp-page is: html:form action=/saveComposeMessageAction.do?action=Save in Struts-Config.xml this action looks like this: !-- Save compose message -- action path=/saveComposeMessage type=com.appium.UM.Control.Web.Mail.SaveComposeMessageAction name=composeMessageForm scope=session validate=false forward name=success path=/ComposeMessage.jsp?action=Create/ forward name=success2 path=/viewInsertAddress.do?action=Insert/ forward name=failure path=/ErrorLDAP.jsp/ forward name=failure2 path=/ComposeMessage.jsp/ /action If i click on the submit button InsertAddress, saveComposeAction is the first action. From the action class I check if Insert Address was the button the user clicked on, if this is the case I return success2 and the path is: path=/viewInsertAddress.do?action=Insert/ The action in struts_config.xml looks like this: !-- View insert address-- action path=/viewInsertAddress type=com.appium.UM.Control.Web.Mail.ViewInsertAddressAction name=insertAddressForm scope=session validate=false forward name=successpath=/InsertAddress.jsp/ forward name=failurepath=/ErrorLDAP.jsp/ /action From this class I return success and the path is : path=/InsertAddress.jsp/ As it is now InsertAddress.jsp is onpened in the same window as the first jsp-page but a want a new window!! Where do I enter this information and how?? Any suggestions??? Thank you in advance! /lLinnéa - Original Message - From: Peter Alfors [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 3:57 PM Subject: Re: struts-config.xml - How do I open a success path as a new window??? Your javascript code looks correct. :) However, if at all possible, I would avoid using javascript. Basically, because the user may have javascript turned off in their browser. Pete Abraham Kang wrote: Hi Linnea, I think it would be easier to usea class=leftnav href=javascript:window.open('yourAction.do','windowName', 'status=no')Your action will return mapping.findForward(success) to load the popup windows contents.Pete, my javascript is rusty so if you see any errors please correct.--Abraham -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa
Re: struts-config.xml - How do I open a success path as a new window???
You could use javascript to set the target in the form tag to _blank if you want it in a new window. As Pete said, however, the drawback is that they may have Javascript turned off. Dave Linnea Ahlbeck [EMAIL PROTECTED] on 06/14/2001 10:30:04 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: struts-config.xml - How do I open a success path as a new window??? Hi Abraham and Pete! Thanks for your help! The problem is - I don´t use a link directly from my jsp page to reach this new window. I have two submit buttons on my jsp-page, Save and Insert Address . The form:action on the jsp-page is: html:form action=/saveComposeMessageAction.do?action=Save in Struts-Config.xml this action looks like this: !-- Save compose message -- action path=/saveComposeMessage type=com.appium.UM.Control.Web.Mail.SaveComposeMessageAction name=composeMessageForm scope=session validate=false forward name=success path=/ComposeMessage.jsp?action=Create/ forward name=success2 path=/viewInsertAddress.do?action=Insert/ forward name=failure path=/ErrorLDAP.jsp/ forward name=failure2 path=/ComposeMessage.jsp/ /action If i click on the submit button InsertAddress, saveComposeAction is the first action. From the action class I check if Insert Address was the button the user clicked on, if this is the case I return success2 and the path is: path=/viewInsertAddress.do?action=Insert/ The action in struts_config.xml looks like this: !-- View insert address-- action path=/viewInsertAddress type=com.appium.UM.Control.Web.Mail.ViewInsertAddressAction name=insertAddressForm scope=session validate=false forward name=successpath=/InsertAddress.jsp/ forward name=failurepath=/ErrorLDAP.jsp/ /action From this class I return success and the path is : path=/InsertAddress.jsp/ As it is now InsertAddress.jsp is onpened in the same window as the first jsp-page but a want a new window!! Where do I enter this information and how?? Any suggestions??? Thank you in advance! /lLinnéa - Original Message - From: Peter Alfors [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 3:57 PM Subject: Re: struts-config.xml - How do I open a success path as a new window??? Your javascript code looks correct. :) However, if at all possible, I would avoid using javascript. Basically, because the user may have javascript turned off in their browser. Pete Abraham Kang wrote: Hi Linnea, I think it would be easier to usea class=leftnav href=javascript:window.open('yourAction.do','windowName', 'status=no')Your action will return mapping.findForward(success) to load the popup windows contents.Pete, my javascript is rusty so if you see any errors please correct.--Abraham -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa
Re: struts-config.xml - How do I open a success path as a new window???
On Thu, 14 Jun 2001, Peter Alfors wrote: What happens when you execute this? td align=lefta class=leftnav href=myAction.do target=_blankbean:message key=icon.calendar//td I would think that this should do what you want?? You can also use the target attribute on an html:form or html:link tag: td align=left html:link styleclass=leftnav page=/myAction.do target=_blank bean:message key=icon.calendar/ /html:link /td One advantage to this is that URL rewriting is automatically applied to maintain session state even if you're not using cookies. Pete Craig -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa
RE: struts-config.xml - How do I open a success path as a new window???
Thanks Pete, Abraham -Original Message- From: Peter Alfors [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 6:57 AM To: [EMAIL PROTECTED] Subject: Re: struts-config.xml - How do I open a success path as a new window??? Your javascript code looks correct. :) However, if at all possible, I would avoid using javascript. Basically, because the user may have javascript turned off in their browser. Pete Abraham Kang wrote: Hi Linnea, I think it would be easier to usea class=leftnav href=javascript:window.open('yourAction.do','windowName', 'status=no')Your action will return mapping.findForward(success) to load the popup windows contents.Pete, my javascript is rusty so if you see any errors please correct.--Abraham -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 1:52 AM To: [EMAIL PROTECTED] Subject: struts-config.xml - How do I open a success path as a new window??? Hi!! I want to my path forward name=success path=/InsertAddress.jsp/ to open the jsp-page as a new window/page ( like the html tag td align=lefta class=leftnav href=http://./; target=_blankbean:message key=icon.calendar//td ) Any ideas how to do this with struts??? Thanks / Linnéa
RE: struts-config.xml - How do I open a success path as a new window???
Hi Linnea, I think it would be easier to use a class="leftnav" href="javascript:window.open('yourAction.do','windowName', 'status=no')" Your action will return mapping.findForward("success") to load the popup windows contents. Pete, my javascript is rusty so if you see any errors please correct. --Abraham -Original Message-From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 2001 1:52 AMTo: [EMAIL PROTECTED]Subject: struts-config.xml - How do I open a "success" path as a new window??? Hi!! I want to my path forward name="success" path="/InsertAddress.jsp"/ to open the jsp-page as a new window/page ( like the html tag td align="left"a class="leftnav" href="http://./" target="_blank"bean:message key="icon.calendar"//td ) Any ideas how to do this with struts??? Thanks / Linnéa
Re: struts-config.xml question
In general, you shouldn't need to specify the form name or type in the JSP at all. The form tag will lookup that up from the struts-config.xml, according to where you are submitting the form (action path = action path). html:form action=/insertQuestion html:text property=questionDesc/ /html:form action path=/insertQuestion type=com.companyname.actionmap.InsertQuestionAction name=questionForm scope=request validate=false forward name=success path=/strutstest.jsp/ /action should be all you need. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Bill Clinton wrote: Hello, I just am starting out with struts, and I have a question. I started with this syntax in my test jsp: html:form name=questionForm action=insertQuestion html:text property=questionDesc/ /html:form and this in my struts-config.xml: form-bean name=questionForm type=com.companyname.actionform.QuestionForm/ but I was getting this error: javax.servlet.jsp.JspException: Must specify type attribute if name is specified # After searching this list's archives, I saw a reply to a similar question from Craig McClanahan that states: If you specify name here, you must also specify type. If you change this to: form:form action=regstep1.do The tag will be smart enough to figure out what form bean name you want, without having to specify it both here and in struts-config.xml. so, to test, I specified the name in my jsp html:form tag so it looked like this: html:form name=questionForm type=com.companyname.actionform.QuestionForm action=insertQuestion and this worked. # But, I don't want to have to list the classnames in the JSPs, so I tried to follow craigs suggestion. I changed the lines in the JSP to: html:form name=questionForm action=insertQuestion and tried this in my struts-config.xml: form-bean name=questionForm type=com.companyname.actionform.QuestionForm/ actionpath=/insertQuestion type=com.companyname.actionmap.InsertQuestionAction name=questionForm scope=request validate=false forward name=success path=/strutstest.jsp/ /action but now I get this error: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection I also searched on this error, but the messages I found did not seem to match my situation. ### Since it works when I specify both the name and type in the html:form tag, I am starting to wonder if my struts-config.xml (in my WEB-INF dir) is being read. Is it enough to put this file in the WEB-INF directory? Also, when I had the name in my html:form tag and the type in the form-bean tag, it seemed obvious how these two things were linked (even thought this was not correct). When I follow Craig's suggestion, I am unsure how The tag will be smart enough to figure out what form bean name you want. Does it use the JSP name to link to the path attribute of the action tag, and link the name attribute of the action tag to the name attribute of the form-bean tag? Sorry about the length of this message, but I wanted to try to be as specific as possible about the problem. Also, if anyone knows of any good documentation links, I am open to suggestions. Other than the docs on the apache site, I have only found www.husted.com , which has lots of useful tips. Any others out there? Thanks, Bill
Re: struts-config.xml question
Hello Bill, Try to use html:form action=insertQuestion.do html:text property=questionDesc/ /html:form not html:form action=insertQuestion html:text property=questionDesc/ /html:form and restart servlet container (Tomcat, Resin, etc.) after strut-config.xml changing (or call http://host:port/path/admin/reload) Friday, June 08, 2001, 11:43:06 PM, you wrote: BC Hello, BC I just am starting out with struts, and I have a question. I BC started with this syntax in my test jsp: BC html:form name=questionForm action=insertQuestion BC html:text property=questionDesc/ BC /html:form BC and this in my struts-config.xml: BC form-bean name=questionForm BC type=com.companyname.actionform.QuestionForm/ BC but I was getting this error: BC javax.servlet.jsp.JspException: Must specify type attribute if name is BC specified BC # BC After searching this list's archives, I saw a reply to a similar BC question from Craig McClanahan that states: BC If you specify name here, you must also specify type. BC BC If you change this to: BC BC form:form action=regstep1.do The tag will be smart enough BC to figure out what form bean name you want, without BC having to specify it both here and in struts-config.xml. BC BC so, to test, I specified the name in my jsp html:form tag so it looked BC like this: BC html:form name=questionForm BC type=com.companyname.actionform.QuestionForm action=insertQuestion BC and this worked. BC # BC But, I don't want to have to list the classnames in the JSPs, so I tried BC to follow craigs suggestion. I changed the lines in the JSP to: BC html:form name=questionForm action=insertQuestion BC and tried this in my struts-config.xml: BC form-bean name=questionForm BC type=com.companyname.actionform.QuestionForm/ BC actionpath=/insertQuestion BC type=com.companyname.actionmap.InsertQuestionAction BC name=questionForm BCscope=request BC validate=false BCforward name=success path=/strutstest.jsp/ BC /action BC but now I get this error: BC javax.servlet.jsp.JspException: Cannot find ActionMappings or BC ActionFormBeans collection BC I also searched on this error, but the messages I found did not seem to BC match my situation. BC ### BC Since it works when I specify both the name and type in the html:form BC tag, I am starting to wonder if my struts-config.xml (in my WEB-INF dir) BC is being read. Is it enough to put this file in the WEB-INF directory? BC Also, when I had the name in my html:form tag and the type in the BC form-bean tag, it seemed obvious how these two things were linked (even BC thought this was not correct). BC When I follow Craig's suggestion, I am unsure how The tag will be smart BC enough to figure out what form bean name you want. Does it use the JSP BC name to link to the path attribute of the action tag, and link the BC name attribute of the action tag to the name attribute of the form-bean tag? BC Sorry about the length of this message, but I wanted to try to be as BC specific as possible about the problem. BC Also, if anyone knows of any good documentation links, I am open to BC suggestions. Other than the docs on the apache site, I have only found BC www.husted.com , which has lots of useful tips. Any others out there? BC Thanks, Bill -- Best regards, Olegmailto:[EMAIL PROTECTED]
RE: struts-config.xml question
you need not have the name attribute in the html:form tag. It can get it from the struts_config file. Do you have setters and getters for all your attributes in the actionform? hope that helps. VA -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: struts-config.xml question Hello, I just am starting out with struts, and I have a question. I started with this syntax in my test jsp: html:form name=questionForm action=insertQuestion html:text property=questionDesc/ /html:form and this in my struts-config.xml: form-bean name=questionForm type=com.companyname.actionform.QuestionForm/ but I was getting this error: javax.servlet.jsp.JspException: Must specify type attribute if name is specified # After searching this list's archives, I saw a reply to a similar question from Craig McClanahan that states: If you specify name here, you must also specify type. If you change this to: form:form action=regstep1.do The tag will be smart enough to figure out what form bean name you want, without having to specify it both here and in struts-config.xml. so, to test, I specified the name in my jsp html:form tag so it looked like this: html:form name=questionForm type=com.companyname.actionform.QuestionForm action=insertQuestion and this worked. # But, I don't want to have to list the classnames in the JSPs, so I tried to follow craigs suggestion. I changed the lines in the JSP to: html:form name=questionForm action=insertQuestion and tried this in my struts-config.xml: form-bean name=questionForm type=com.companyname.actionform.QuestionForm/ actionpath=/insertQuestion type=com.companyname.actionmap.InsertQuestionAction name=questionForm scope=request validate=false forward name=success path=/strutstest.jsp/ /action but now I get this error: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection I also searched on this error, but the messages I found did not seem to match my situation. ### Since it works when I specify both the name and type in the html:form tag, I am starting to wonder if my struts-config.xml (in my WEB-INF dir) is being read. Is it enough to put this file in the WEB-INF directory? Also, when I had the name in my html:form tag and the type in the form-bean tag, it seemed obvious how these two things were linked (even thought this was not correct). When I follow Craig's suggestion, I am unsure how The tag will be smart enough to figure out what form bean name you want. Does it use the JSP name to link to the path attribute of the action tag, and link the name attribute of the action tag to the name attribute of the form-bean tag? Sorry about the length of this message, but I wanted to try to be as specific as possible about the problem. Also, if anyone knows of any good documentation links, I am open to suggestions. Other than the docs on the apache site, I have only found www.husted.com , which has lots of useful tips. Any others out there? Thanks, Bill
Re: struts-config.xml question
Now that you mention it, the FAQ-o-Matic is up again. http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayTopics/action/SetAll/project_id/2/faq_id/36 Bill Clinton wrote: Also, if anyone knows of any good documentation links, I am open to suggestions. Other than the docs on the apache site, I have only found www.husted.com , which has lots of useful tips. Any others out there? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/
Re: struts-config.xml suggestion
I think the same can be applied to action and its type so that there can be a possibility of using an action in diffenet mappings e.g. actionType name="editReg" type="org.apache.struts.example.EditRegistrationAction"/ action path="/editRegistration" actionType="editReg" name="registrationForm" scope="request" validate="false" forward name="success" path="/registration.jsp"/ /action By doing this, I can reuse editReg for different purposes while having the ability to change the implementation at one place. References are always nice :) --- Bryan Field-Elliot [EMAIL PROTECTED] wrote: Using 1.0 beta -- I have many "global forwards" in my config. All of my "input forms" are represented as global forwards. e.g.: global-forwards forward name="logon" path="/jsp/logon.jsp"/ /global-forwards In my action mappings, those which require ActionForms have an "input" tag: action ... input="/jsp/logon.jsp" /action It would be nice if the "input" attribute of the "action" tag would allow me to refer to a global-forward, instead of an absolute filename. If it did, then if I were to change the filename of my logon JSP page, I would only have to change it in one place. If I am missing something and I can already do this some other way, then please direct me. Thanks, Bryan __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/