subform definition in struts-config.xml and validation.xml
I have found cases in an application I am developing where I can use tiles to define subforms that I can use in several places. For example, I have a registration form that collects contact information. Once registered, a user can change their contact information. I defined a tiles subform to collect the contact information, which is really useful. But in defining the form-bean (struts-config.xml) and formset/form (validation.xml) for the two different forms I need to cut and paste the information in both files. How can I define chunks of xml representing the subform components for the two configuration files and include them twice so that I don't have to cut and paste. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters to an Action in struts-config.xml
Hi Is there a why to give config parameters to an Action entry in the struts-config.xml (I mean several parameters - the parameter attribute isn't enuff) Thanks Boaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Parameters to an Action in struts-config.xml
Yes. Here is an example: action path=/blah type=com.example.MyAction className=com.example.MyActionMapping name=blah scope=request set-property property=foo value=hamlet/ set-property property=bar value=othello/ set-property property=baz value=romeo / /action You set the className attribute of the actionmapping to your ActionMapping subclass that has setters (and usually getters) for the properties you want. You have to set those properties using the set-property element (darn nuisance) to get around the dtd. And remember that the properties belong not to the action instance but to the mapping so in your action you could use mapping.getFoo() to get the value... hth Andrew -Original Message- From: Boaz Barkai [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 18:05 To: 'Struts Users Mailing List' Subject: Parameters to an Action in struts-config.xml Hi Is there a why to give config parameters to an Action entry in the struts-config.xml (I mean several parameters - the parameter attribute isn't enuff) Thanks Boaz - 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: Using Parameter in Action via the struts-config.xml
It worked!!! Thanks a lot Anand -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:49 PM To: Struts Users Mailing List Subject: RE: Using Parameter in Action via the struts-config.xml There's a mapping.getParameter() method to fetch the parameter value. I remember reading that its mostly used while using LookupDispatchAction. Personally, I have used this parameter attibute to represent a flag/indicator to my action it works fine. -jayash -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:06 PM To: [EMAIL PROTECTED] Subject: Using Parameter in Action via the struts-config.xml Hi All, The struts configuration DTD supports having a parameter attribute to a action. But how can I get the value specified in the parameter attribute in my action class. Also using set-property inside a action tag does not work? Anyone have any idea about this? Regards Anand Patil - 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]
Using Parameter in Action via the struts-config.xml
Hi All, The struts configuration DTD supports having a parameter attribute to a action. But how can I get the value specified in the parameter attribute in my action class. Also using set-property inside a action tag does not work? Anyone have any idea about this? Regards Anand Patil
RE: Using Parameter in Action via the struts-config.xml
But how can I get the value specified in the parameter attribute in my action class. ActionMapping.getParameter() will get you the value of the parameter attribute. Also using set-property inside a action tag does not work? It works for me. You have to subclass ActionMapping and declare it in your struts-config file. action-mappings type=com.companyname.SubclassedActionMapping So when you use set-property, Struts can set those values using reflection. My guess as to why its not working is that it silently fails to set those properties because they don't exist in the default ActionMapping class. robert -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 4:06 PM To: [EMAIL PROTECTED] Subject: Using Parameter in Action via the struts-config.xml Hi All, The struts configuration DTD supports having a parameter attribute to a action. But how can I get the value specified in the parameter attribute in my action class. Also using set-property inside a action tag does not work? Anyone have any idea about this? Regards Anand Patil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Parameter in Action via the struts-config.xml
There's a mapping.getParameter() method to fetch the parameter value. I remember reading that its mostly used while using LookupDispatchAction. Personally, I have used this parameter attibute to represent a flag/indicator to my action it works fine. -jayash -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:06 PM To: [EMAIL PROTECTED] Subject: Using Parameter in Action via the struts-config.xml Hi All, The struts configuration DTD supports having a parameter attribute to a action. But how can I get the value specified in the parameter attribute in my action class. Also using set-property inside a action tag does not work? Anyone have any idea about this? Regards Anand Patil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: causing a problem in forward URL in struts-config.xml
causing a problem in forward URL in struts-config.xmlReplace all the in the url with amp; (The xml entity for '' character as '' itself is reserved (for use in specifying entities... :- )) -Original Message- From: Swaminathan Rajagopalan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 January 2004 14:40 To: [EMAIL PROTECTED] Subject: causing a problem in forward URL in struts-config.xml When I specify in the URL for a forward in the action mapping, the XML does not get loaded. How to solve the same? Regards, Swaminathan Rajagopalan, Ph : (8520261) Extn: 55955 Mail : [EMAIL PROTECTED]
causing a problem in forward URL in struts-config.xml
Title: causing a problem in forward URL in struts-config.xml When I specify in the URL for a forward in the action mapping, the XML does not get loaded. How to solve the same? Regards, Swaminathan Rajagopalan, Ph : (8520261) Extn: 55955 Mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration Issue when Splitting up the struts-config.xml file
All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR] ActionServlet - -Parsing error processing resource path WEB-INF/struts-config.xml WEB-INF/struts-arrest.xml WEB-INF/struts-history.xml WEB-INF/struts-profiles.xml WEB-INF/struts-reports.xml WEB-INF/struts-subject.xml WEB-INF/struts-support.xml java.lang.NullPointerException My web.xml file looks like this servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value WEB-INF/struts-config.xml, WEB-INF/struts-arrest.xml, WEB-INF/struts-history.xml, WEB-INF/struts-profiles.xml, WEB-INF/struts-reports.xml, WEB-INF/struts-subject.xml, WEB-INF/struts-support.xml /param-value /init-param Is there some sort of parsing or setup problem that I am unaware of? If so, is there a patch that I can download to fix this. I am using JDeveloper 9i to build and run my application if it makes a difference. Thanks, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Issue when Splitting up the struts-config.xml file
Straight from Craig McClanahan splitting struts-config.xml: ?xml version=1.0? !DOCTYPE ... [ !ENTITY part1 SYSTEM form-beans.xml !ENTITY part2 SYSTEM global-forwards.xml !ENTITY part3 SYSTEM action-mappings.xml ] struts-config form-beans part1; /form-beans global-forwards part2; /global-forwards action-mappings part3; /action-mappings /struts-config -Martin - Original Message - From: Harrison, Joseph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 8:18 AM Subject: Configuration Issue when Splitting up the struts-config.xml file All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR] ActionServlet - -Parsing error processing resource path WEB-INF/struts-config.xml WEB-INF/struts-arrest.xml WEB-INF/struts-history.xml WEB-INF/struts-profiles.xml WEB-INF/struts-reports.xml WEB-INF/struts-subject.xml WEB-INF/struts-support.xml java.lang.NullPointerException My web.xml file looks like this servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value WEB-INF/struts-config.xml, WEB-INF/struts-arrest.xml, WEB-INF/struts-history.xml, WEB-INF/struts-profiles.xml, WEB-INF/struts-reports.xml, WEB-INF/struts-subject.xml, WEB-INF/struts-support.xml /param-value /init-param Is there some sort of parsing or setup problem that I am unaware of? If so, is there a patch that I can download to fix this. I am using JDeveloper 9i to build and run my application if it makes a difference. Thanks, Joe - 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: Configuration Issue when Splitting up the struts-config.xml file
Try inserting a leading / in your paths. For example: /WEB-INF/struts-arrest.xml. Also ensure that each of the config files is valid with respect to the Struts 1.1 config DTD. Quoting Harrison, Joseph [EMAIL PROTECTED]: All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR] ActionServlet - -Parsing error processing resource path WEB-INF/struts-config.xml WEB-INF/struts-arrest.xml WEB-INF/struts-history.xml WEB-INF/struts-profiles.xml WEB-INF/struts-reports.xml WEB-INF/struts-subject.xml WEB-INF/struts-support.xml java.lang.NullPointerException My web.xml file looks like this servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value WEB-INF/struts-config.xml, WEB-INF/struts-arrest.xml, WEB-INF/struts-history.xml, WEB-INF/struts-profiles.xml, WEB-INF/struts-reports.xml, WEB-INF/struts-subject.xml, WEB-INF/struts-support.xml /param-value /init-param Is there some sort of parsing or setup problem that I am unaware of? If so, is there a patch that I can download to fix this. I am using JDeveloper 9i to build and run my application if it makes a difference. Thanks, Joe -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuration Issue when Splitting up the struts-config.xml f ile
I added the / and have ensured that my sub config files are Struts 1.1 config DTD compliant. I am using tiles and am using the definition names in lieu of the jsp page for my paths. Would this be a problem? -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 8:51 AM To: Struts Users Mailing List Subject: Re: Configuration Issue when Splitting up the struts-config.xml file Try inserting a leading / in your paths. For example: /WEB-INF/struts-arrest.xml. Also ensure that each of the config files is valid with respect to the Struts 1.1 config DTD. Quoting Harrison, Joseph [EMAIL PROTECTED]: All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR] ActionServlet - -Parsing error processing resource path WEB-INF/struts-config.xml WEB-INF/struts-arrest.xml WEB-INF/struts-history.xml WEB-INF/struts-profiles.xml WEB-INF/struts-reports.xml WEB-INF/struts-subject.xml WEB-INF/struts-support.xml java.lang.NullPointerException My web.xml file looks like this servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value WEB-INF/struts-config.xml, WEB-INF/struts-arrest.xml, WEB-INF/struts-history.xml, WEB-INF/struts-profiles.xml, WEB-INF/struts-reports.xml, WEB-INF/struts-subject.xml, WEB-INF/struts-support.xml /param-value /init-param Is there some sort of parsing or setup problem that I am unaware of? If so, is there a patch that I can download to fix this. I am using JDeveloper 9i to build and run my application if it makes a difference. Thanks, Joe -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.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: Configuration Issue when Splitting up the struts-config.xml f ile
Have you tried running the app outside of JDeveloper to make sure it's not an IDE config issue? Although I'm not that familiar with Tiles, I don't think that's your problem. Quoting Harrison, Joseph [EMAIL PROTECTED]: I added the / and have ensured that my sub config files are Struts 1.1 config DTD compliant. I am using tiles and am using the definition names in lieu of the jsp page for my paths. Would this be a problem? -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 8:51 AM To: Struts Users Mailing List Subject: Re: Configuration Issue when Splitting up the struts-config.xml file Try inserting a leading / in your paths. For example: /WEB-INF/struts-arrest.xml. Also ensure that each of the config files is valid with respect to the Struts 1.1 config DTD. Quoting Harrison, Joseph [EMAIL PROTECTED]: All, I recently brought my struts application to a relatively stable point (no problems whatsoever). However, I split apart my struts-config.xml file into 6 sub struts xml files. I updated the web.xml file, but it gives me the following error when trying to parse the resource paths. [ERROR] ActionServlet - -Parsing error processing resource path WEB-INF/struts-config.xml WEB-INF/struts-arrest.xml WEB-INF/struts-history.xml WEB-INF/struts-profiles.xml WEB-INF/struts-reports.xml WEB-INF/struts-subject.xml WEB-INF/struts-support.xml java.lang.NullPointerException My web.xml file looks like this servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value WEB-INF/struts-config.xml, WEB-INF/struts-arrest.xml, WEB-INF/struts-history.xml, WEB-INF/struts-profiles.xml, WEB-INF/struts-reports.xml, WEB-INF/struts-subject.xml, WEB-INF/struts-support.xml /param-value /init-param Is there some sort of parsing or setup problem that I am unaware of? If so, is there a patch that I can download to fix this. I am using JDeveloper 9i to build and run my application if it makes a difference. Thanks, Joe -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Key words in struts-config.xml
Title: Key words in struts-config.xml Hi, I have to specify a URL in the path for an action mapping in struts-config.xml. The URL has a key word context and on server start up the xml file could not be loaded. How to overcome the same? Regards, Swaminathan Rajagopalan, Ph : (8520261) Extn: 55955 Mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Key words in struts-config.xml
Could you provide your struts-config.xml file as well as any output from your servlet container indicating what errors happen when you try to load the application? Kirk Wylie M7 Corporation Swaminathan Rajagopalan wrote: Hi, I have to specify a URL in the path for an action mapping in struts-config.xml. The URL has a key word context and on server start up the xml file could not be loaded. How to overcome the same? ///Regards,/ /Swaminathan Rajagopalan,/// /Ph : (8520261) Extn: 55955/ /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: Multiple struts-config.xml
On Sat, 20 Dec 2003, Sudhakar G wrote: Hi, Can any one give me a example how struts supports multiple struts-config.xml file? See the struts-example.war that comes with the distribution. Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer / Struts Evangelist http://www.struts-atlanta.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple struts-config.xml
Hi Ashutosh, My application is huge one and hence the single struts-config.xml becomes bulky. Sometimes even we are getting exception while in purging the struts-config file. So I want to split it in two. From that persepective after going through your mail I have two doubts regarding this. 1. Is splitting the file in the way you mentioned in your mail is possible in Struts 1.0.2 ? 2. If both the struts file related to same application how do we set the relative path of the second struts file in param-name element ? Regards, Sourav -Original Message- From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:37 AM To: Struts Users Mailing List Subject: RE: Multiple struts-config.xml Hi, In order to use multiple struts config file, you need to modify the web descriptor file as mentioned below. Thus, the ActionServlet loads each of the application related config file. servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/config/struts1.xml/param-value /init-param init-param param-nameconfig/secondApp/param-name param-value/WEB-INF/config/struts2.xml/param-value /init-param load-on-startup2/load-on-startup /servlet While invoking the Action classes you need to use proper relative path. For this particular case, say you have an Action mapping - Action1 defined in struts1.xml and Action2 defined in struts2.xml To invoke them the URL should be http://hostname/Action1.do http://hostname/secondApp/Action2.do Regards, Ashutosh Satyam -Original Message- From: Sudhakar G [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: Multiple struts-config.xml Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - 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: Multiple struts-config.xml
Your problem could be solve by this simple method init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml, /WEB-INF/struts-config-timesheet.xml, /WEB-INF/struts-config-recruitment.xml, /WEB-INF/struts-config-staffing.xml, /WEB-INF/struts-config-training.xml, /WEB-INF/struts-config-employeedetails.xml /param-value /init-param Or else the following method posted by Craig. ?xml version=1.0? !DOCTYPE ... [ !ENTITY part1 SYSTEM form-beans.xml !ENTITY part2 SYSTEM global-forwards.xml !ENTITY part3 SYSTEM action-mappings.xml ] struts-config form-beans part1; /form-beans global-forwards part2; /global-forwards action-mappings part3; /action-mappings /struts-config Mohan -Original Message- From: souravm [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 12:28 PM To: Struts Users Mailing List Subject: RE: Multiple struts-config.xml Hi Ashutosh, My application is huge one and hence the single struts-config.xml becomes bulky. Sometimes even we are getting exception while in purging the struts-config file. So I want to split it in two. From that persepective after going through your mail I have two doubts regarding this. 1. Is splitting the file in the way you mentioned in your mail is possible in Struts 1.0.2 ? 2. If both the struts file related to same application how do we set the relative path of the second struts file in param-name element ? Regards, Sourav -Original Message- From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:37 AM To: Struts Users Mailing List Subject: RE: Multiple struts-config.xml Hi, In order to use multiple struts config file, you need to modify the web descriptor file as mentioned below. Thus, the ActionServlet loads each of the application related config file. servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/config/struts1.xml/param-value /init-param init-param param-nameconfig/secondApp/param-name param-value/WEB-INF/config/struts2.xml/param-value /init-param load-on-startup2/load-on-startup /servlet While invoking the Action classes you need to use proper relative path. For this particular case, say you have an Action mapping - Action1 defined in struts1.xml and Action2 defined in struts2.xml To invoke them the URL should be http://hostname/Action1.do http://hostname/secondApp/Action2.do Regards, Ashutosh Satyam -Original Message- From: Sudhakar G [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: Multiple struts-config.xml Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - 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]
Multiple struts-config.xml
Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple struts-config.xml
Just specify whatever files you want to use as a comma-delimited list in the web-xml. See the Struts Mailreader (struts-example) for a working example. HTH, Ted Sudhakar G wrote: Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple struts-config.xml
Hi, In order to use multiple struts config file, you need to modify the web descriptor file as mentioned below. Thus, the ActionServlet loads each of the application related config file. servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/config/struts1.xml/param-value /init-param init-param param-nameconfig/secondApp/param-name param-value/WEB-INF/config/struts2.xml/param-value /init-param load-on-startup2/load-on-startup /servlet While invoking the Action classes you need to use proper relative path. For this particular case, say you have an Action mapping - Action1 defined in struts1.xml and Action2 defined in struts2.xml To invoke them the URL should be http://hostname/Action1.do http://hostname/secondApp/Action2.do Regards, Ashutosh Satyam -Original Message- From: Sudhakar G [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: Multiple struts-config.xml Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - 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: generating struts-config.xml using xdoclet
On Yesterday at 2:15pm, DG=Damm, Gary [EMAIL PROTECTED] wrote: DG I have two action tags defined in a single action class. Each action DG has it's own action-forward element. When the struts-config.xml is DG generated it generates two action elements but each action element has DG both action forwards (each should only have one). DG Gary, Sorry I can't give you a very helpful answer, but just wanted to let you know that I have found that xdoclet behaves the same way for me as well. For now, I've been cognizant of this short-coming and, so far, have not run into a situation where it has become a problem for me. You might want to take a look at: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-715 which has an exaplanation and a work-around for your exact problem (not tested by me). Cheers, -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Size of struts-config.xml in struts 1.0.2
Hi All, Is there any limitation of size of strusts-config.xml in struts 1.0.2 ? If there exists a limit is there any work around for that ? Regards, Sourav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Size of struts-config.xml in struts 1.0.2
I don't know if there is a logical limitation of struts-config.xml but you can do the following: ?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 form-beans SYSTEM form-beans.xml !ENTITY global-forwards SYSTEM global-forwards.xml !ENTITY actions-mappings SYSTEM action-mappings.xml !ENTITY plugins SYSTEM plugins.xml ] struts-config form-beans; global-forwards; actions-mappings; plugins; /struts-config Marcus Em Seg, 2003-12-15 s 06:22, souravm escreveu: Hi All, Is there any limitation of size of strusts-config.xml in struts 1.0.2 ? If there exists a limit is there any work around for that ? Regards, Sourav - 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]
generating struts-config.xml using xdoclet
I have two action tags defined in a single action class. Each action has it's own action-forward element. When the struts-config.xml is generated it generates two action elements but each action element has both action forwards (each should only have one). /** * @struts.action * path=/HomeLink * * @struts.action-forward * name=success * path=/UserSearch.jsp * * @struts.action * path=/UserCreateLink * * @struts.action-forward * name=success * path=/UserCreate.jsp * */ generates this: action path=/HomeLink type=foo.bar.SuccessAction unknown=false validate=true forward name=success path=/UserSearch.jsp redirect=false / forward name=success path=/UserCreate.jsp redirect=false / /action action path=/UserCreateLink type=foo.bar.SuccessAction unknown=false validate=true forward name=success path=/UserSearch.jsp redirect=false / forward name=success path=/UserCreate.jsp redirect=false / /action but I want this: action path=/HomeLink type=com.qualcomm.bds.usermgr.web.action.SuccessAction unknown=false validate=true forward name=success path=/UserSearch.jsp redirect=false / /action action path=/UserCreateLink type=com.qualcomm.bds.usermgr.web.action.SuccessAction unknown=false validate=true forward name=success path=/UserCreate.jsp redirect=false / /action Is there a way to identify that a forward tag belongs with a specific action so when the struts-config.xml is generated each action element only has a single forward associated with it? Thanks in advance, Gary
Apply an Xslt to the struts-config.xml
Hello all, I am looking for a nice presentation of the struts-config.xml. I want to apply a Xslt file on the struts-config.xml in order to have a well displayed view of my struts-config. the result format should be HTML, SVG or Does somedy have already seen something like that ? Is there a tool, somebody has already developped an Xsl for doing that ? Today, i've found on google a Xslt which examines the struts-config.xml and looks for inconsistencies and reports the errors. http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php thanks for advance ... adrien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apply an Xslt to the struts-config.xml
Adrien, StrutsDoc, my project, does this. You can check it out at: http://struts.sf.net/strutsdoc Feel free to contact me with questions or comments. On Wed, Nov 12, 2003 at 02:41:22PM +0100, Adrien GEYMOND wrote: Hello all, I am looking for a nice presentation of the struts-config.xml. I want to apply a Xslt file on the struts-config.xml in order to have a well displayed view of my struts-config. the result format should be HTML, SVG or Does somedy have already seen something like that ? Is there a tool, somebody has already developped an Xsl for doing that ? Today, i've found on google a Xslt which examines the struts-config.xml and looks for inconsistencies and reports the errors. http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php thanks for advance ... adrien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nick Heudecker SystemMobile, Inc. Email: [EMAIL PROTECTED] Web: http://www.systemmobile.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apply an Xslt to the struts-config.xml
Attached is a simple XSL file you can use. You might want to adapt it to display different Informations, though. Stephan Nick Heudecker wrote: Adrien, StrutsDoc, my project, does this. You can check it out at: http://struts.sf.net/strutsdoc Feel free to contact me with questions or comments. On Wed, Nov 12, 2003 at 02:41:22PM +0100, Adrien GEYMOND wrote: Hello all, I am looking for a nice presentation of the struts-config.xml. I want to apply a Xslt file on the struts-config.xml in order to have a well displayed view of my struts-config. the result format should be HTML, SVG or Does somedy have already seen something like that ? Is there a tool, somebody has already developped an Xsl for doing that ? Today, i've found on google a Xslt which examines the struts-config.xml and looks for inconsistencies and reports the errors. http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php thanks for advance ... adrien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=html / xsl:variable name=server select='http://127.0.0.1:8080/crs'/ !-- Head *** -- xsl:template match=struts-config html head titleStruts Forward Definitionen/title meta http-equiv=content-type content=text/html; charset=ISO-8859-1 / /head body xsl:apply-templates select=*/ /body/html /xsl:template xsl:template match=* /xsl:template xsl:template match=//global-forwards h2Forwards/h2 table border=1 trthLink/ththDatei/th/tr xsl:apply-templates select=*/ /table br / br / /xsl:template xsl:template match=forward tr tdxsl:value-of select=@name //td td axsl:attribute name=hrefxsl:value-of select=$server/xsl:value-of select=@path //xsl:attribute xsl:value-of select=@path / /a /td /tr /xsl:template !-- ** -- xsl:template match=//form-beans h2Form-Beans/h2 table border=1 trthName/ththKlasse/th/tr xsl:apply-templates select=*/ /table br / br / /xsl:template xsl:template match=form-bean tr tdxsl:value-of select=@name //td td xsl:value-of select=@type //td /tr /xsl:template !-- ** -- xsl:template match=//action-mappings h2Action-Mappings/h2 table border=1 trthName/ththPfad/th/tr xsl:apply-templates select=*/ /table br / br / /xsl:template xsl:template match=action tr tdxsl:value-of select=@name //td td xsl:value-of select=@path /: table border=0 xsl:apply-templates select=*/ /table /td /tr /xsl:template xsl:template match=action/forward trtdxsl:value-of select=@name //td td ==gt; axsl:attribute name=hrefxsl:value-of select=$server/xsl:value-of select=@path //xsl:attribute xsl:value-of select=@path / /a /td/tr /xsl:template /xsl:stylesheet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having more than one struts-config.xml
Is it possible to have more than one struts-config.xml..If that so how to give entry for second struts-config.xml(Say struts-config1.xml). Thanks in advance.. Regards Partha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having more than one struts-config.xml
You can specify it like this in your web descriptor file. servlet servlet-nameaction/servlet-name servlet-class org.apache.struts.action.ActionServlet /servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/config/struts-config.xml/param-value /init-param init-param param-nameconfig/app2param-name param-value/WEB-INF/config/ struts-config1.xml/param-value /init-param load-on-startup2/load-on-startup /servlet Regards, Ashutosh -Original Message- From: Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 1:04 PM To: '[EMAIL PROTECTED]' Subject: Having more than one struts-config.xml Is it possible to have more than one struts-config.xml..If that so how to give entry for second struts-config.xml(Say struts-config1.xml). Thanks in advance.. Regards Partha - 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: Having more than one struts-config.xml
Yes, you can have many struts-config.xml. But each one refers to a sub-application. for example : in the web.xml, you have following code init-param param-nameconfig/param-name param-valueWEB-INF/struts-config.xml/param-value /init-param init-param param-nameconfig/struts2/param-name param-value/WEB-INF/struts-config2.xml/param-value /init-param And then, you access to the entries of the second struts-config like that : http://server:port/application/struts2/*.do I hope it helps you ... Adrien - Original Message - From: Parthasarathy Kesavaraj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 07, 2003 8:34 AM Subject: Having more than one struts-config.xml Is it possible to have more than one struts-config.xml..If that so how to give entry for second struts-config.xml(Say struts-config1.xml). Thanks in advance.. Regards Partha - 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: Having more than one struts-config.xml
Example in web.xml param-nameconfig/param-name param-valuestruts-default.xml,struts-config1.xml/param-value Now, above may cause naming collision. Thus, name actions may be like mod1_ActionsOfModule1.do Other way is struts modules... Parthasarathy Kesavaraj wrote: Is it possible to have more than one struts-config.xml..If that so how to give entry for second struts-config.xml(Say struts-config1.xml). Thanks in advance.. Regards Partha - 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: Having more than one struts-config.xml
Manish Singla [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Example in web.xml param-nameconfig/param-name param-valuestruts-default.xml,struts-config1.xml/param-value Now, above may cause naming collision. Thus, name actions may be like mod1_ActionsOfModule1.do I like to use two configs, so that the second one extends the first one, and overloads the actions and other elements with the same name. Be aware though that if you're using Tiles and specify a Tiles Plugin in both config files, the one in struts-config1.xml will not be initialized, so if you are using a different tiles config for the second struts config it will be a problem. cheers, Marinó - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having more than one struts-config.xml
Thanks Marino and Manish. -- From: Marino A. Jonsson[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent: Friday, November 07, 2003 8:32 PM To: [EMAIL PROTECTED] Subject: Re: Having more than one struts-config.xml Manish Singla [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Example in web.xml param-nameconfig/param-name param-valuestruts-default.xml,struts-config1.xml/param-value Now, above may cause naming collision. Thus, name actions may be like mod1_ActionsOfModule1.do I like to use two configs, so that the second one extends the first one, and overloads the actions and other elements with the same name. Be aware though that if you're using Tiles and specify a Tiles Plugin in both config files, the one in struts-config1.xml will not be initialized, so if you are using a different tiles config for the second struts config it will be a problem. cheers, Marinó - 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]
how to use 2 resource files in one struts-config.xml?
Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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: how to use 2 resource files in one struts-config.xml?
jstl solution: in your jsp: - fmt:setBundle basename=com.myapp.one var=oneProps/ fmt:setBundle basename=com.myapp.two var=twoProps/ fmt:message key=errors.header bundle=${oneProps}/ fmt:message key=approval.001 bundle=${twoProps}/ -- you probably also want to declare a default resource in your deployment descriptor(web.xml) as such: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valuecom.myapp.one/param-value /context-param now you can access the default in the jsp without specifying a bundle: fmt:message key=errors.header/ -Ben From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:00:46 -0800 (PST) Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
Hi, some how bean:message key=approval.001 bundle=message1/ does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla [EMAIL PROTECTED] wrote: You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml?
in your struts-config.xml: !-- this is now your default resource bundle -- message-resources parameter=com.myapp.one/ message-resources parameter=com.myapp.two key=MESSAGE_TWO/ in your jsps: bean:message key=errors.header/ bean:message key=approval.001 bundle=MESSAGE_TWO/ From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how bean:message key=approval.001 bundle=message1/ does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla [EMAIL PROTECTED] wrote: You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml? solved it thanx
Hi Thanx for all the replies I was able to solve the problem by defining message-resources key=approvals parameter=com.myapp.one / message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / instead of message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / message-resources key=approvals parameter=com.myapp.one / just by defining the two with key approvals before one, solved the problem my message tag in jsp still is same bean:message key=approval.002 bundle=approvals/ for messages from two.property file So it was just the sequence in which to define it in struts-config.xml file Ashish --- Ben Anderson [EMAIL PROTECTED] wrote: in your struts-config.xml: !-- this is now your default resource bundle -- message-resources parameter=com.myapp.one/ message-resources parameter=com.myapp.two key=MESSAGE_TWO/ in your jsps: bean:message key=errors.header/ bean:message key=approval.001 bundle=MESSAGE_TWO/ From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how bean:message key=approval.001 bundle=message1/ does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla [EMAIL PROTECTED] wrote: You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml? solved it thanx
hmm... You may not have to define message-resources with key=org.apache.struts.action.MESSAGE. Default bundle (with no key attribute in message-resources) is stored by struts using key=org.apache.struts.action.MESSAGE. I am not sure how come switching location of message-resources solve your problem ?? !!! Ashish Kulkarni wrote: Hi Thanx for all the replies I was able to solve the problem by defining message-resources key=approvals parameter=com.myapp.one / message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / instead of message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / message-resources key=approvals parameter=com.myapp.one / just by defining the two with key approvals before one, solved the problem my message tag in jsp still is same bean:message key=approval.002 bundle=approvals/ for messages from two.property file So it was just the sequence in which to define it in struts-config.xml file Ashish --- Ben Anderson [EMAIL PROTECTED] wrote: in your struts-config.xml: !-- this is now your default resource bundle -- message-resources parameter=com.myapp.one/ message-resources parameter=com.myapp.two key=MESSAGE_TWO/ in your jsps: bean:message key=errors.header/ bean:message key=approval.001 bundle=MESSAGE_TWO/ From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how bean:message key=approval.001 bundle=message1/ does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla [EMAIL PROTECTED] wrote: You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Manish Singla x73166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use 2 resource files in one struts-config.xml? solved it thanx
Hi i have no clue why it was not working before, but now it is working and i ma happy :-) Ashish --- Manish Singla [EMAIL PROTECTED] wrote: hmm... You may not have to define message-resources with key=org.apache.struts.action.MESSAGE. Default bundle (with no key attribute in message-resources) is stored by struts using key=org.apache.struts.action.MESSAGE. I am not sure how come switching location of message-resources solve your problem ?? !!! Ashish Kulkarni wrote: Hi Thanx for all the replies I was able to solve the problem by defining message-resources key=approvals parameter=com.myapp.one / message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / instead of message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / message-resources key=approvals parameter=com.myapp.one / just by defining the two with key approvals before one, solved the problem my message tag in jsp still is same bean:message key=approval.002 bundle=approvals/ for messages from two.property file So it was just the sequence in which to define it in struts-config.xml file Ashish --- Ben Anderson [EMAIL PROTECTED] wrote: in your struts-config.xml: !-- this is now your default resource bundle -- message-resources parameter=com.myapp.one/ message-resources parameter=com.myapp.two key=MESSAGE_TWO/ in your jsps: bean:message key=errors.header/ bean:message key=approval.001 bundle=MESSAGE_TWO/ From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: how to use 2 resource files in one struts-config.xml? Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST) Hi, some how bean:message key=approval.001 bundle=message1/ does not work i still get the missing resource error, how do i define the default bundle?? i am not using struts module Ashish --- Manish Singla [EMAIL PROTECTED] wrote: You may try following (from your example) bean:message key=approval.001 bundle=message1/ where bundle attribute maps to key attribute in message-resources ... tag You may have one default bundle. Thus for default bundle ...no need to give key in message-resouces ...tag.. for that bundle corresponding bean:message will be without bundle attributes follows bean:message key=approval.001 I assume you are not using struts modules...and is not trying to access message resources bundle of different bundle.. Ashish Kulkarni wrote: Hi I have 2 message resource files, com.myapp.one.properties and com.myapp.two.properties I haev some messages in one and some messages in two, and want to display these in jsp and in action class etc how do i define them in my struts-config.xml and use them with bean:message... tag. This is what i am trying but is not working message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.one / message-resources key=message1 parameter=com.myapp.two / and in my jsp i have bean:message key=errors.header/ , where errors.header is defines in one.properties and bean:message key=approval.001/ which is defines in two.properties file i also tried bean:message key=message1.approval.001/ but does not work Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - To unsubscribe, e-mail: [EMAIL
accessing static html from struts-config.xml
Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: accessing static html from struts-config.xml
I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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: accessing static html from struts-config.xml
No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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: accessing static html from struts-config.xml
Try adding a 'redirect=true' in your original forward. You can also try specifying a complete path to the static resource, still with the redirect. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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: accessing static html from struts-config.xml
I just tried (and failed) using a fully qualified URL as the ActionForward. The exception told me that my path did not start with a / So here is an action that will use a redirect instead of an ActionForward. This works: /** * a simple action to invalidate a session and return * the user to the home page */ public class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ request.getSession().invalidate(); ActionForward foward = mapping.findForward(home); String path = forward.getPath(); response.sendRedirect(path); return null; } } the corresponding struts-config entry global-forwards forward name=home path=http://www.mysite.com; / /global-forwards NOTE! when you retrieve this ActionForward through the ActionMapping object, it will FAIL if you try to return it from the execute() method. It fails because a fully qualified URL won't work in the ActionForward. You can use the Forward home to store the fully-qualified URL (and retrieve it via forward.getPath()) or you can put that in some other property section or config file. Either way, you can use response.sendRedirect(str) to send the user to any website you wish, including your own home page. I hope this helps. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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: accessing static html from struts-config.xml
or use forward name=home path=http://www.mysite.com; redirect=true/ which would do the same thing. -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:46 PM To: Struts Users Mailing List Subject: RE: accessing static html from struts-config.xml I just tried (and failed) using a fully qualified URL as the ActionForward. The exception told me that my path did not start with a / So here is an action that will use a redirect instead of an ActionForward. This works: /** * a simple action to invalidate a session and return * the user to the home page */ public class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ request.getSession().invalidate(); ActionForward foward = mapping.findForward(home); String path = forward.getPath(); response.sendRedirect(path); return null; } } the corresponding struts-config entry global-forwards forward name=home path=http://www.mysite.com; / /global-forwards NOTE! when you retrieve this ActionForward through the ActionMapping object, it will FAIL if you try to return it from the execute() method. It fails because a fully qualified URL won't work in the ActionForward. You can use the Forward home to store the fully-qualified URL (and retrieve it via forward.getPath()) or you can put that in some other property section or config file. Either way, you can use response.sendRedirect(str) to send the user to any website you wish, including your own home page. I hope this helps. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: accessing static html from struts-config.xml
ah, that is a more convenient method than hand-coding my own redirect. Also, it would allow the execute() method to return an ActionForward like it is supposed to do. Thanks for that tip. -Original Message- From: Rabago, Hubert [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:50 PM To: Struts Users Mailing List Subject: RE: accessing static html from struts-config.xml or use forward name=home path=http://www.mysite.com; redirect=true/ which would do the same thing. -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:46 PM To: Struts Users Mailing List Subject: RE: accessing static html from struts-config.xml I just tried (and failed) using a fully qualified URL as the ActionForward. The exception told me that my path did not start with a / So here is an action that will use a redirect instead of an ActionForward. This works: /** * a simple action to invalidate a session and return * the user to the home page */ public class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ request.getSession().invalidate(); ActionForward foward = mapping.findForward(home); String path = forward.getPath(); response.sendRedirect(path); return null; } } the corresponding struts-config entry global-forwards forward name=home path=http://www.mysite.com; / /global-forwards NOTE! when you retrieve this ActionForward through the ActionMapping object, it will FAIL if you try to return it from the execute() method. It fails because a fully qualified URL won't work in the ActionForward. You can use the Forward home to store the fully-qualified URL (and retrieve it via forward.getPath()) or you can put that in some other property section or config file. Either way, you can use response.sendRedirect(str) to send the user to any website you wish, including your own home page. I hope this helps. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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] - 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: multiple struts-config.xml - multiple modules?
If the tools are being developed by the same people, you'll probably be better off using mutiple struts configuration files than modules. Modules are best suited for when things are being developed by independant parties who aren't working together. If that doesn't describe you, then just give each tool it's own subdirectory and use that same name to identify everything else that goes with the tool. Even if you used modules, you can't distribute them as separate WARs. If your container supports single logon, as Tomcat does, you can distribute each tool as a separate application and flip back and forth between after a single logon. With a modern container, you can also share JARs and save some resources. The applications can't share session information, though, so you'd have to pass everything through the request or cookies or a database. HTH, Ted. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. Michael Blair wrote: I have a question regarding overall architecture. I am going to have a huge web app; well it will be a suite of web based tools. Lets say I will have one main menu, and from there possibly 5 separate modules (separate content areas). First, how hard is it to have a struts-config for each module (I have an example below). Second, can each module be in its own war and still be able to go back and forth among the other modules? web.xml init-param param-nameconfig/param-name param-value/WEB-INF/config/struts-config.xml/param-value /init-param init-param param-nameconfig/module1param-name param-value/WEB-INF/config/struts-module1-config.xml/param-value /init-param now the actions work fine in the default config, but how do I call an action FROM the default to module 1? Here is what I have tried in my .jsp. Note, this .jsp is part of the default and im trying to call something in module1. html:link page=/action/module1/getmodule1action . . . Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: accessing static html from struts-config.xml
Ya i tried the same thing but see i have mod_jk2 as connector and my webapp context is actually usabo but i am calling it as /japps/usabo thro the connector, and when i attempt to access this forward, it give the following error japps/usabo/http:/www.mysite.com not found. No matter the forward appends the context to this path.I had to add the contexts and their paths in server.xml for the connector to work. Is that affecting it? or use forward name=home path=http://www.mysite.com; redirect=true/ which would do the same thing. -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:46 PM To: Struts Users Mailing List Subject: RE: accessing static html from struts-config.xml I just tried (and failed) using a fully qualified URL as the ActionForward. The exception told me that my path did not start with a / So here is an action that will use a redirect instead of an ActionForward. This works: /** * a simple action to invalidate a session and return * the user to the home page */ public class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ request.getSession().invalidate(); ActionForward foward = mapping.findForward(home); String path = forward.getPath(); response.sendRedirect(path); return null; } } the corresponding struts-config entry global-forwards forward name=home path=http://www.mysite.com; / /global-forwards NOTE! when you retrieve this ActionForward through the ActionMapping object, it will FAIL if you try to return it from the execute() method. It fails because a fully qualified URL won't work in the ActionForward. You can use the Forward home to store the fully-qualified URL (and retrieve it via forward.getPath()) or you can put that in some other property section or config file. Either way, you can use response.sendRedirect(str) to send the user to any website you wish, including your own home page. I hope this helps. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do anything or can i specify a URI to access the resource. Thanx --Mohan - 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] - 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: accessing static html from struts-config.xml
Sorry but I don't have any experience with mod_jk2. Accd to the code, the redirect will prepend the redirect url if the path starts with /: From RequestProcessor.processForwardConfig(): String forwardPath = forward.getPath(); String uri = null; // paths not starting with / should be passed through without any processing // (ie. they're absolute) if (forwardPath.startsWith(/)) { uri = RequestUtils.forwardURL(request, forward);// get module relative uri } else { uri = forwardPath; } if (forward.getRedirect()) { // only prepend context path for relative uri if (uri.startsWith(/)) { uri = request.getContextPath() + uri; } response.sendRedirect(response.encodeRedirectURL(uri)); } else { doForward(uri, request, response); } Maybe someone else can answer why it behaves that way for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 3:29 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml Ya i tried the same thing but see i have mod_jk2 as connector and my webapp context is actually usabo but i am calling it as /japps/usabo thro the connector, and when i attempt to access this forward, it give the following error japps/usabo/http:/www.mysite.com not found. No matter the forward appends the context to this path.I had to add the contexts and their paths in server.xml for the connector to work. Is that affecting it? or use forward name=home path=http://www.mysite.com; redirect=true/ which would do the same thing. -Original Message- From: Turansky, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:46 PM To: Struts Users Mailing List Subject: RE: accessing static html from struts-config.xml I just tried (and failed) using a fully qualified URL as the ActionForward. The exception told me that my path did not start with a / So here is an action that will use a redirect instead of an ActionForward. This works: /** * a simple action to invalidate a session and return * the user to the home page */ public class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ request.getSession().invalidate(); ActionForward foward = mapping.findForward(home); String path = forward.getPath(); response.sendRedirect(path); return null; } } the corresponding struts-config entry global-forwards forward name=home path=http://www.mysite.com; / /global-forwards NOTE! when you retrieve this ActionForward through the ActionMapping object, it will FAIL if you try to return it from the execute() method. It fails because a fully qualified URL won't work in the ActionForward. You can use the Forward home to store the fully-qualified URL (and retrieve it via forward.getPath()) or you can put that in some other property section or config file. Either way, you can use response.sendRedirect(str) to send the user to any website you wish, including your own home page. I hope this helps. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: accessing static html from struts-config.xml No the reference to the path in the forward section does not work. I am not sure how to use the response.redirect method. Do we put this method in the execute method of the LogoffAction? or do we make a new method called public void redirect(HttpServletRequest){ response.redirect(http://localhost/xyz.html;); } I believe that you are not forced to use a relative URL. You can put http://www.mysite.com/index.html; as the Forward path and it should work just fine. If, for whatever reason, the Forward to an absolute URL does not work, you can always use response.redirect(actionForward.getPath()) in your Action while returning a null ActionForward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: accessing static html from struts-config.xml Hi All I am trying to do a logoff action.When the user logsoff he should be taken to the main website which is under /var/www/html/blah/index.shtml which is completely out of the tomcat and this is where i have stored the static content of the website. I do not understand how to write this forward in my struts-config.xml forward name=xyzhome path=../blah.shtml / does not do
multiple struts-config.xml - multiple modules?
I have a question regarding overall architecture. I am going to have a huge web app; well it will be a suite of web based tools. Lets say I will have one main menu, and from there possibly 5 separate modules (separate content areas). First, how hard is it to have a struts-config for each module (I have an example below). Second, can each module be in its own war and still be able to go back and forth among the other modules? web.xml init-param param-nameconfig/param-name param-value/WEB-INF/config/struts-config.xml/param-value /init-param init-param param-nameconfig/module1param-name param-value/WEB-INF/config/struts-module1-config.xml/param-value /init-param now the actions work fine in the default config, but how do I call an action FROM the default to module 1? Here is what I have tried in my .jsp. Note, this .jsp is part of the default and im trying to call something in module1. html:link page=/action/module1/getmodule1action . . . Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Some struts-config.xml data cached ?
I am experiencing some bizarreness with struts-config.xml changes not taking. I have a form-bean which is of type DynaActionForm. The problem is that when I add new form-property tags to the form-bean, they are not recognized, so I get run-time exceptions when displaying the jsp with that form (exception is basically saying no getter method for property X, where X is the property I just added). I typically use the manager webapp to reload my webapp, and of course have also tried restarting Tomcat, but to no avail. It is like Struts somehow caches the form-bean property data somewhere. Additional vital information: I can confirm that my struts-config.xml is begin re-read on ant reload because if I change the name of the form-bean in my Action to a non-existent form-bean, or if I change the name of the above mentioned form-bean without making the corresponding change in the Action, I get the expected exception that the form bean can not be found. But when I add a new property to the form-bean, it is not picked up. If I change name of the form-bean to a new name and change the Action which references this form-bean to that new name, then all works fine: the new properties are recognized. Which leads me to believe that somehow the form properties are being cached somewhere instead of being re-read from struts-config.xml each time the webapp is reloaded. Any insight ? Thanks. - Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-config.xml data-source
Hello all, I've just configured the sample data-source tag in the Blank application in order to point to an Oracle Database, using the thin driver; and I've noticed that it's opened two connections as specified in the minCount property. I wonder whether this two connections are pooled ? Can anyone shed some light on this question. For your reference I'm including the data-sources section in this e-mail. Thank you, Fabio Oliveira. data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=Example Data Source Configuration/ set-property property=driverClass value=oracle.jdbc.driver.OracleDriver/ set-property property=maxCount value=8/ set-property property=minCount value=4/ set-property property=password value=mypassword/ set-property property=url value=jdbc:oracle:thin:myuser/[EMAIL PROTECTED]:1521:mydb/ set-property property=user value=myuser/ /data-source /data-sources --- Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
you may wish to look upon JAAS if you have so many diff roles and user per roles. Anyway, struts lets you specify role atrribute (that takes comma sep values, i guess) for each action. If you can extend RequestProcess class and modify the processRoles() method so you can redirect to any page if the roles are not valid for that action. etc etc.. Struts,using decalrative roles, tried to make things easier in term sof less programming efforts and easiness to manage roles . Rest i can't see much diff. Any opinions? HTH Navjot Singh -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 7:26 AM To: Struts Users Mailing List Subject: RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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!? The New Yahoo! Shopping - with improved product search http://shopping.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: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored (database, directory server, local XML file, ...) are two separate questions. For most servers , any combination is possible. With Tomcat, for example, you can configure JDBCRealm to point at your user and role definitions in a database, and then use those users with any of the authentication methods. For more information, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html The choice between BASIC and form-based authentication, then, can be based on user interface related concerns, rather than worrying about a database. Craig --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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!? The New Yahoo! Shopping - with improved product search http://shopping.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: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
People answer questions without reading my original post. Therefore, I must re-type my original question again. Before I posted my question, I had configured the Tomcat JDBCRealm following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html so that I can do security testing programmically, such as isUserInRole(), in my program. If I use form based authentication, I insert the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication (we provide login page and error page in the web.xml) does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? Thanks. --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored (database, directory server, local XML file, ...) are two separate questions. For most servers , any combination is possible. With Tomcat, for example, you can configure JDBCRealm to point at your user and role definitions in a database, and then use those users with any of the authentication methods. For more information, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html The choice between BASIC and form-based authentication, then, can be based on user interface related concerns, rather than worrying about a database. Craig --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
Don't put anything in struts-config, in web.xml, put: login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/login.jsp?error=true/form-error-page /form-login-config /login-config You can use whatever code you like in login.jsp, here's mine as an example: %@ include file=/common/taglibs.jsp% tiles:insert definition=.login flush=true/ So you can see it uses Tiles - here's my .login definition: !-- Login Page definition -- definition name=.login extends=baseLayout put name=titleKey value=login.title/ put name=headingKey value=login.heading/ put name=menu value=/menu.html/ put name=content value=/WEB-INF/pages/login.jsp/ /definition Where /pages/login.jsp is: %@ include file=/common/taglibs.jsp% div id=loginTable form method=post id=loginForm action=j_security_check table width=100% tr td colspan=2 c:if test=${param.error != null} div class=error style=margin-right: 0; margin-bottom: 3px; margin-top: 3px html:img pageKey=icon.warning.img altKey=icon.warning styleClass=icon/ fmt:message key=errors.password.mismatch/ /div /c:if /td /tr tr th label for=j_username class=required fmt:message key=label.username/*: /label /th td input type=text name=j_username id=j_username size=25 / /td /tr tr th label for=j_password class=required fmt:message key=label.password/*: /label /th td input type=password name=j_password id=j_password size=20 / /td /tr tr td/td td input type=checkbox name=rememberMe id=rememberMe / label for=rememberMefmt:message key=login.rememberMe//a !-- for Resin -- input type=hidden name=j_uri id=j_uri value= / /td /tr tr td/td td input type=submit name=login id=login value=Login / input type=reset name=reset id=reset value=Reset onclick=document.getElementById('j_username').focus() / /td /tr tr td/td tdbr /fmt:message key=login.signup//td /tr /table /form /div HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 2:11 PM To: Struts Users Mailing List Subject: Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml People answer questions without reading my original post. Therefore, I must re-type my original question again. Before I posted my question, I had configured the Tomcat JDBCRealm following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html so that I can do security testing programmically, such as isUserInRole(), in my program. If I use form based authentication, I insert the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication (we provide login page and error page in the web.xml) does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? Thanks. --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored (database, directory server, local XML file, ...) are two separate questions. For most servers , any combination is possible. With Tomcat, for example, you can configure JDBCRealm to point at your user and role definitions in a database, and then use those users with any of the authentication methods. For more information, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html The choice between BASIC and form-based authentication, then, can be based on user interface related concerns, rather than worrying about a database. Craig --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http
Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
Logical paths work fine for me in web.xml (using tomcat 4.1.x): login-config auth-methodFORM/auth-method form-login-config form-login-page /do/login/edit /form-login-page form-error-page /do/login/fail /form-error-page /form-login-config /login-config Andrew At 03:11 PM 10/7/2003, you wrote: People answer questions without reading my original post. Therefore, I must re-type my original question again. Before I posted my question, I had configured the Tomcat JDBCRealm following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html so that I can do security testing programmically, such as isUserInRole(), in my program. If I use form based authentication, I insert the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication (we provide login page and error page in the web.xml) does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? Thanks. --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored (database, directory server, local XML file, ...) are two separate questions. For most servers , any combination is possible. With Tomcat, for example, you can configure JDBCRealm to point at your user and role definitions in a database, and then use those users with any of the authentication methods. For more information, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html The choice between BASIC and form-based authentication, then, can be based on user interface related concerns, rather than worrying about a database. Craig --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
Thanks a lot, Andrew. I got the idea. --- Andrew Shirk [EMAIL PROTECTED] wrote: Logical paths work fine for me in web.xml (using tomcat 4.1.x): login-config auth-methodFORM/auth-method form-login-config form-login-page /do/login/edit /form-login-page form-error-page /do/login/fail /form-error-page /form-login-config /login-config Andrew At 03:11 PM 10/7/2003, you wrote: People answer questions without reading my original post. Therefore, I must re-type my original question again. Before I posted my question, I had configured the Tomcat JDBCRealm following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html so that I can do security testing programmically, such as isUserInRole(), in my program. If I use form based authentication, I insert the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication (we provide login page and error page in the web.xml) does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? Thanks. --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored (database, directory server, local XML file, ...) are two separate questions. For most servers , any combination is possible. With Tomcat, for example, you can configure JDBCRealm to point at your user and role definitions in a database, and then use those users with any of the authentication methods. For more information, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html The choice between BASIC and form-based authentication, then, can be based on user interface related concerns, rather than worrying about a database. Craig --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page === message truncated === __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL
Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml
I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml
Hi Caroline, if I remember correctly, it is not possible to use Action servlet mappings for the login and error pages in tomcat. I do know for sure that it is recommended practice to keep those pages seperate programmatically and to view them as part of the container rather than part of your app. Check the archives for a few threads on that matter. Adam On 10/07/2003 12:44 AM Caroline Jen wrote: I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml
But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. --- Matt Raible [EMAIL PROTECTED] wrote: A JDBCRealm can use BASIC authentication - it doesn't require form-based. Here's an example app that might help you out: http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample HTH, Matt -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: Container-Managed Authentication login-config in web.xml vs. Specifying Paths in the struts-config.xml I use the Tomcat. I configured the Tomcat JDBCRealm so that I can use programmic security testing, such as isUserInRole(), in my program. Because Tomcat JDBCRealm is form based, I inserted the login-config and its sub-elements in my web.xml file (see below). As we know, the form-login-page and form-error-page are required. My question is that the container-managed authentication does not seem to be consistent with what we usually do in struts; e.g. we state the logical name and path for each .jsp page in the struts-config.xml file. What is the Struts convention in dealing with user authentication? Should we specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? == security-constraint web-resource-collection web-resource-nameSalesInfo/web-resource-name url-pattern/SalesInfo/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/authentication/login.html/form-login-page form-error-page/authentication/error.html/form-error-page /form-login-config /login-config security-role role-namemanager/role-name /security-role __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data Source in struts-config.xml
snip from=http://jakarta.apache.org/struts/faqs/database.html; If you need more than one data source in a module, you can include a key attribute in the data-source element: data-sources data-source key=A type=org.apache.commons.dbcp.BasicDataSource ... properties as before ... /data-source data-source key=B type=org.apache.commons.dbcp.BasicDataSource ... properties as before ... /data-source ... /data-sources Which can then be accessed by including the key (A in this case) as an additional parameter to the Action.getDataSource() method. ... try { dataSourceA = getDataSource(request, A); dataSourceB = getDataSource(request, B); ... Each module can have as many data sources as it needs. The keys only need to be unique within a module since the struts module system maintains a name space for the items in each module to protect you from name clashes. /snip -- Andrew Kuzmin http://www.java201.com - Original Message - From: virupaksha [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, September 19, 2003 6:26 AM Subject: Data Source in struts-config.xml Dear All, I need to connect to two different databases,MS Access MYSQL. I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to give database name in my code. Can any one help me how i can configure two datasource name in struts-config.xml. Waiting for ur help... Regards, viru - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
moving some part of struts-config.xml to Database (vs Multiple modules)
Is it possible to move action and form bean mapping definitions to database , and loading them using struts plugin extensions, (actullly actionServlet init method calls several another init method,, I think inside one of those init methods mapping info is loaded to the applicaiton context, is it possible to postpone this operation until plug-in calls, ) if it is okey, how can do that and which part of struts-config.xml could be moved to then database (form map, action map, controller, forward, exception,plugin,...) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Data Source in struts-config.xml
Dear All, I need to connect to two different databases,MS Access MYSQL. I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to give database name in my code. Can any one help me how i can configure two datasource name in struts-config.xml. Waiting for ur help... Regards, viru
two different data source in struts-config.xml
Dear All, I need to connect to two different databases,MS Access MYSQL. I am connecting databases using JNDI lookup,so to connect using JNDI lookup i need to give database name in my code. Can any one help me how i can configure two datasource name in struts-config.xml. Waiting for ur help... Regards, viru
Struts-config.xml and multiple module
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 ## 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 ## In tiles-def.xml ## definition name=site.menu.managers path=/WEB-INF/jsp/layouts/menu.jsp put name=title value=Useful Links / putList name=items item value=Projects link=/project/manager.do classtype=org.apache.struts.tiles.beans.SimpleMenuItem / /putList /definition ## In struts-config-project.xml ## action-mappings actionpath=/project/manager forward=/WEB-INF/jsp/project/manager.jsp /action /action-mappings Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
set-property usage inside an action in struts-config.xml?
Is it possible to use set-property inside an action /action definition? I tried embedding it, it says property does not exist by throwing an exception. I want to use this with the basic org.apache.struts.action.Action class. Is this somehow possible? Documentation on how to do this is a bit sparse. Thank you. Martin -- - 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
struts-config.xml Validation At Server Startup
I was running some tests with my Tomcat server and moved it to a place on the network where it was unable to access the internet. Tomcat started fine, but Struts threw an I/O exception on struts-config.xml, even though the file was there and was fine. I think that this I/O exception is due to Struts attempting to validate the xml against the dtd specified in the DOCTYPE header by getting the dtd over the network. Is this true? Is there a way to control how Struts validates the file? Thanks, Alan Alan Weissman Systems Engineer Concord Financial Technologies (212) 532 8160 x129 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
flush attribute for action forward tag in struts-config.xml
Hello Everyone, Is there any FLUSH attribute for action forward tag in struts-config.xml. Basically when I do findForward in my action class, it throws Response is already commited. Can't forward the request. error, the solution to which lies probably in setting the flush property (as we do in JSPs). Or is this problem related to something else ?? Thanks, BS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can we 'hot swap' the struts-config.xml?
On Wed, 11 Jun 2003, Dan Tarkenton wrote: Date: Wed, 11 Jun 2003 14:44:49 -0700 (PDT) From: Dan Tarkenton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Can we 'hot swap' the struts-config.xml? Is it possible, with an instance of a struts 1.0 webapp running in tomcat, to re-initialize the struts-config.xml while the application is still up? I say this because it would be great if I could edit the struts-config.xml as an admin of my site without disrupting the webapp and any potential end users of the webapp. I worry about synchronization issues. Thoughts? In Struts 1.0, it was possible to configure an Action that told Struts to reload the struts-config.xml file for a running app. This is no longer true in Struts 1.1 for several reasons: * The Struts 1.0 approach required all accesses to the configuration information to be synchronized, which slowed down performance for everyone (the vast majority of people don't need dynamic reloads). * The Struts 1.0 approach re-reads the config file, but it does *not* reload any recompiled classes. That is something that is totally out of the control of Struts -- you should use the application reload facilities of your web application instead (for Tomcat, see the documentation on the Manager Webapp). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple request / query parameters in struts-config.xml
Thats odd. Im using this technique for multiple parameters in my actionforwards without any problem. When you say its null, is that in an actionform in the action you are forwarding to or for a request.getParameter(id). If the former, try outputting the result of the latter in your action - and if that shows the value instaed of null then its most likely an actionform problem (with one likely culprit being multiple getter/setter for same property with different signatures). -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 20:36 To: Struts Users Mailing List Subject: Re: multiple request / query parameters in struts-config.xml hmm, actually I just looked at my config file and I didn't forget the ';'. I only forgot it when posting this question. Any other suggestions? Andrew Hill wrote: forward name=foo path=/do/foo?bar=10amp;id=10/ Note the ';' in the above. (proper xml terminates its entities with ; while html doesnt need it) -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 14:23 To: Struts Users Mailing List Subject: multiple request / query parameters in struts-config.xml I have the following arrangement for some of my forwards. forward name=foo path=/do/foo?bar=10/ Now it's come time where I want to have more than one parameter specified in the struts-config.xml file. I tried: forward name=foo path=/do/foo?bar=10ampid=10/ However the second parameter ends up being null. How do you correctly specify more than one parameter? Thanks - 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]
multiple request / query parameters in struts-config.xml
I have the following arrangement for some of my forwards. forward name=foo path=/do/foo?bar=10/ Now it's come time where I want to have more than one parameter specified in the struts-config.xml file. I tried: forward name=foo path=/do/foo?bar=10ampid=10/ However the second parameter ends up being null. How do you correctly specify more than one parameter? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple request / query parameters in struts-config.xml
forward name=foo path=/do/foo?bar=10amp;id=10/ Note the ';' in the above. (proper xml terminates its entities with ; while html doesnt need it) -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 14:23 To: Struts Users Mailing List Subject: multiple request / query parameters in struts-config.xml I have the following arrangement for some of my forwards. forward name=foo path=/do/foo?bar=10/ Now it's come time where I want to have more than one parameter specified in the struts-config.xml file. I tried: forward name=foo path=/do/foo?bar=10ampid=10/ However the second parameter ends up being null. How do you correctly specify more than one parameter? Thanks - 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: multiple request / query parameters in struts-config.xml
Thanks, I knew that I just can't believe I forgot it. Andrew Hill wrote: forward name=foo path=/do/foo?bar=10amp;id=10/ Note the ';' in the above. (proper xml terminates its entities with ; while html doesnt need it) -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 14:23 To: Struts Users Mailing List Subject: multiple request / query parameters in struts-config.xml I have the following arrangement for some of my forwards. forward name=foo path=/do/foo?bar=10/ Now it's come time where I want to have more than one parameter specified in the struts-config.xml file. I tried: forward name=foo path=/do/foo?bar=10ampid=10/ However the second parameter ends up being null. How do you correctly specify more than one parameter? Thanks - 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: multiple request / query parameters in struts-config.xml
hmm, actually I just looked at my config file and I didn't forget the ';'. I only forgot it when posting this question. Any other suggestions? Andrew Hill wrote: forward name=foo path=/do/foo?bar=10amp;id=10/ Note the ';' in the above. (proper xml terminates its entities with ; while html doesnt need it) -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 14:23 To: Struts Users Mailing List Subject: multiple request / query parameters in struts-config.xml I have the following arrangement for some of my forwards. forward name=foo path=/do/foo?bar=10/ Now it's come time where I want to have more than one parameter specified in the struts-config.xml file. I tried: forward name=foo path=/do/foo?bar=10ampid=10/ However the second parameter ends up being null. How do you correctly specify more than one parameter? Thanks - 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]
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.
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]
Can we 'hot swap' the struts-config.xml?
Is it possible, with an instance of a struts 1.0 webapp running in tomcat, to re-initialize the struts-config.xml while the application is still up? I say this because it would be great if I could edit the struts-config.xml as an admin of my site without disrupting the webapp and any potential end users of the webapp. I worry about synchronization issues. Thoughts? - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
How to handle key attribute of exception tag in struts-config.xml?
Hi List! Can anybody help me to understand well the meaning of bundle and key atrributes of the exception tag nested in global-exceptions of struts-config.xml? Does these atrributes make sense to be defined if I have already set the path attribute to an error page jsp? If so, how will the message defined in the key attribute be shown in the error page? I know I can define an error page in the path attribute and call hmtl:message tag, but what kind of code my error page should have to show the key message defined in the key attribute of exception tag? Thanks in advance! Caroline Holanda IT- Consultant = ** Cuide das pessoas que vc ama! Elas são presentes de Deus! ___ Yahoo! Mail O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam. http://br.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = ** Cuide das pessoas que vc ama! Elas são presentes de Deus! ___ Yahoo! Mail Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção contra spam. http://br.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)
Good use case! I put it into attachment... Best, Igor. On Fri, 28 Mar 2003 16:53:15 -0600, Steve Stair [EMAIL PROTECTED] wrote: I've got a use case to edit an existing user. I've extended the ForwardAction class to make one that forwards after creating a transaction token. When the user clicks on a link to edit a user's data, they are first sent to an action that only loads the user data into the form. This action can be re-used by a View User use case, without any modification, because it doesn't create a transaction token. On success, that action forwards to the JSP page/tile via an action that creates a transaction token. When the user clicks save, the update action persists the data, and forwards to JSP again via the action that creates a transaction token. I've seen it said here that you shouldn't chain actions, but it seems more clear to me this way. By doing it this way, I don't have to create tokens in my code. The update action should not have to know that the place it is being forwarded to will need a transaction token. Isn't the point of defining forwards for an action that the java code doesn't care where it is going to next? action-mappings !-- Action that only loads the user data -- action path=/editUserAction name=UserForm type=com.whatever.LoadUserAction validate=false scope=request forward name=success path=/editUser.do / forward name=failure path=app.Home / /action !-- Action that only creates a transaction token -- action path=/editUser type=com.whatever.TransactionForwardAction parameter=app.EditUser/ !-- Action that persists the user data (consumes the transaction token) -- action path=/updateUserAction name=UserForm type=com.whatever.UpdateUserAction validate=true input=app.EditUser scope=request forward name=success path=/editUser.do / forward name=cancel path=app.Home / forward name=failure path=/editUser.do / /action /action-mappings In any case, in doing this, it seems to me that it would make sense if you could make an action create a transaction token by some entry in the struts-config. -- Steve Stair [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)
Mailing list eats the attachments, sorry... I just like this picture :-) --- Forwarded message --- From: Igor Shabalov [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: SUGGESTION: Transaction token creation control in struts- config.xml (LONG) Date: Fri, 28 Mar 2003 15:42:23 -0800 Good use case! I put it into attachment... Best, Igor. On Fri, 28 Mar 2003 16:53:15 -0600, Steve Stair [EMAIL PROTECTED] wrote: I've got a use case to edit an existing user. I've extended the ForwardAction class to make one that forwards after creating a transaction token. When the user clicks on a link to edit a user's data, they are first sent to an action that only loads the user data into the form. This action can be re-used by a View User use case, without any modification, because it doesn't create a transaction token. On success, that action forwards to the JSP page/tile via an action that creates a transaction token. When the user clicks save, the update action persists the data, and forwards to JSP again via the action that creates a transaction token. I've seen it said here that you shouldn't chain actions, but it seems more clear to me this way. By doing it this way, I don't have to create tokens in my code. The update action should not have to know that the place it is being forwarded to will need a transaction token. Isn't the point of defining forwards for an action that the java code doesn't care where it is going to next? action-mappings !-- Action that only loads the user data -- action path=/editUserAction name=UserForm type=com.whatever.LoadUserAction validate=false scope=request forward name=success path=/editUser.do / forward name=failure path=app.Home / /action !-- Action that only creates a transaction token -- action path=/editUser type=com.whatever.TransactionForwardAction parameter=app.EditUser/ !-- Action that persists the user data (consumes the transaction token) -- action path=/updateUserAction name=UserForm type=com.whatever.UpdateUserAction validate=true input=app.EditUser scope=request forward name=success path=/editUser.do / forward name=cancel path=app.Home / forward name=failure path=/editUser.do / /action /action-mappings In any case, in doing this, it seems to me that it would make sense if you could make an action create a transaction token by some entry in the struts-config. -- Steve Stair [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)
There is a session token which you can use for enforcing transaction integrity built into struts already. It is also a piece of cake to custom code your own if you want finer grained control. Edgar -Original Message- From: Igor Shabalov [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:42 PM To: 'Struts Users Mailing List' Subject: Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG) Good use case! I put it into attachment... Best, Igor. On Fri, 28 Mar 2003 16:53:15 -0600, Steve Stair [EMAIL PROTECTED] wrote: I've got a use case to edit an existing user. I've extended the ForwardAction class to make one that forwards after creating a transaction token. When the user clicks on a link to edit a user's data, they are first sent to an action that only loads the user data into the form. This action can be re-used by a View User use case, without any modification, because it doesn't create a transaction token. On success, that action forwards to the JSP page/tile via an action that creates a transaction token. When the user clicks save, the update action persists the data, and forwards to JSP again via the action that creates a transaction token. I've seen it said here that you shouldn't chain actions, but it seems more clear to me this way. By doing it this way, I don't have to create tokens in my code. The update action should not have to know that the place it is being forwarded to will need a transaction token. Isn't the point of defining forwards for an action that the java code doesn't care where it is going to next? action-mappings !-- Action that only loads the user data -- action path=/editUserAction name=UserForm type=com.whatever.LoadUserAction validate=false scope=request forward name=success path=/editUser.do / forward name=failure path=app.Home / /action !-- Action that only creates a transaction token -- action path=/editUser type=com.whatever.TransactionForwardAction parameter=app.EditUser/ !-- Action that persists the user data (consumes the transaction token) -- action path=/updateUserAction name=UserForm type=com.whatever.UpdateUserAction validate=true input=app.EditUser scope=request forward name=success path=/editUser.do / forward name=cancel path=app.Home / forward name=failure path=/editUser.do / /action /action-mappings In any case, in doing this, it seems to me that it would make sense if you could make an action create a transaction token by some entry in the struts-config. -- Steve Stair [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com - 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]
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]