Re: Multiple struts-config.xml
Hi A better way is to use struts modules. Every Module has its own struts-configuration. If you use more than one struts configuration such as described below, you may have problems with duplicate identifiers, becaus struts builds one configuration out of all files. This problems you don't have using modules. Modules acts as a namespace in this case. -Manfred -- === Dipl.-Inf. Manfred Wolff Software Engineer --- http://www.manfred-wolff.de http://www.struts-it.org --- Folashade Adeyosoye wrote: Yes, in your web.xml Change this... servlet servlet-nameAppName/servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet To servlet servlet-name AppName /servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/the-employee-config.xml,/WE B-INF/the-admin-config.xml,/WEB-INF/the-client-config.xml,/WEB-INF/the-billi ng-config.xml,/WEB-INF/the-report-config.xml,/WEB-INF/the-patient-config.xml /param-value /init-param load-on-startup1/load-on-startup /servlet -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Sunday, April 10, 2005 11:04 PM To: 'Struts Users Mailing List' Subject: Multiple struts-config.xml Hi I have an application and I need to create many web flows. If I use struts to model the web flows, is it possible to use many struts-config.xml instead of one? Regards, Néstor Boscán - 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]
[OT]RE: concurrency problem
hi, Thanks all for your inputs. I need to ensure that sychronisation is should be happening on Unique object. I also have figured out the problem. I noticed a second thread was calling another methods of the bean. Which is not synchronised. Thanks again .. Regds Ashwani. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 8:22 PM To: Struts Users Mailing List Subject: Re: concurrency problem Maybe I'm being dense here but: If every session contains a reference to the bean, and every thread is synchronizing on their own session; It would seem that there would not be any concurrency control. I would think that they all need to sync on the same object. JC Kalra, Ashwani [EMAIL PROTECTED]To: Struts (E-mail) user@struts.apache.org gemini.com cc: Subject: concurrency problem 04/08/2005 06:10 AM Please respond to Struts Users Mailing List I am facing concurrency problem in following scenario. All our action classes call same stateful session bean . Each action class obtains the reference from HTTPSession object and calls one and only one business method. To prevent the concurrent access to this instance which occurs when user immediately presses two links quickly in succession I am using the following code block execute(...) //execute methods of Action class { //Obtain the session from Request.User will always be in session here session=request.getSession() Synchronised(session) { //call ejb's business method. } } However sometimes more than one thread is able to pass through, And I get exception from Appserver. As 2 threads are not allowed for statefull Session bean. Can there be problem in above code. Is it ok to synchronise on session object. Thanks Regds Ashwani Ext: 1860 This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- ** The information contained in this communication is confidential, private, proprietary, or otherwise privileged and is intended only for the use of the addressee. Unauthorized use, disclosure, distribution or copying is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately at (312)653-6000 in Illinois; (972)766-6900 in Texas; or (800)835-8699 in New Mexico. ** == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts FormBean
Hi All, I have a problem trying to write back to my form bean. Please tell me if the following is possible. I have the following formbean : private UserObject UserObject; private ArrayList userDetails; private String mustDisplayButton1; private String mustDisplayButton2; private List usersid; private String otherUserId; private String subView; The Object UserObject: Is something like the following: private String description; private String controllerFirstname; private String controllerSurname; private String ownerBranchName; private String ownerBranchShortName; private String ownerCompanyShortName; private String ownerCompanyName; With the getter and setter methods. On my JSP page I extract values out of the UserObject parameters. How do I set a property within my JSP page to the UserObject. Regards Neil Meyer Project Manager
[HELP] How to do validation in Struts + iBatis + DAO???
Hi all, I don't know how to do Validation in Struts + iBatis + Dao. Because when I use above Structure, I must extends from BaseBean to create my own Bean. As you know, if we want to use Validator of Struts, our ActionForm must extends from ValidatorForm. So ... help me. bowl
RE: [REFERENDUM] Struts is a Community
First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... - rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good company) For me this means +indefinitely (1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple struts-config.xml
I would caution anyone about using Modules. It is not for the beginner. Working with Struts Modules can be extremely confusing to the novice Struts developer. I think a better solution is to suggest that they use multi config, but make sure they use a common pattern between multiple config xml files. So, in struts-config-client.xml, all mappings would be like action path=/Client/Foo ... And in struts-config-employee.xml, all mapping would be like action path=Employee/Bar ... And for commonly shared things like login or whatever, you could have a struts-config-common.xml with action path=/Common/Baz The same style of naming would apply for other entries, like action forms, global forward, and the rest. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Manfred Wolff [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 11, 2005 2:48 AM Subject: Re: Multiple struts-config.xml Hi A better way is to use struts modules. Every Module has its own struts-configuration. If you use more than one struts configuration such as described below, you may have problems with duplicate identifiers, becaus struts builds one configuration out of all files. This problems you don't have using modules. Modules acts as a namespace in this case. -Manfred -- === Dipl.-Inf. Manfred Wolff Software Engineer --- http://www.manfred-wolff.de http://www.struts-it.org --- Folashade Adeyosoye wrote: Yes, in your web.xml Change this... servlet servlet-nameAppName/servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet To servlet servlet-name AppName /servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/the-employee-config.xml,/WE B-INF/the-admin-config.xml,/WEB-INF/the-client-config.xml,/WEB-INF/the-billi ng-config.xml,/WEB-INF/the-report-config.xml,/WEB-INF/the-patient-config.xml /param-value /init-param load-on-startup1/load-on-startup /servlet -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Sunday, April 10, 2005 11:04 PM To: 'Struts Users Mailing List' Subject: Multiple struts-config.xml Hi I have an application and I need to create many web flows. If I use struts to model the web flows, is it possible to use many struts-config.xml instead of one? Regards, Néstor Boscán - 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
Exactly what I was going to say James, I started to use modules, but switched to multiple configs as it was becoming a nightmare. All my actions in each config share a pattern like James suggested. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 11 April 2005 11:42 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Multiple struts-config.xml I would caution anyone about using Modules. It is not for the beginner. Working with Struts Modules can be extremely confusing to the novice Struts developer. I think a better solution is to suggest that they use multi config, but make sure they use a common pattern between multiple config xml files. So, in struts-config-client.xml, all mappings would be like action path=/Client/Foo ... And in struts-config-employee.xml, all mapping would be like action path=Employee/Bar ... And for commonly shared things like login or whatever, you could have a struts-config-common.xml with action path=/Common/Baz The same style of naming would apply for other entries, like action forms, global forward, and the rest. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Manfred Wolff [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 11, 2005 2:48 AM Subject: Re: Multiple struts-config.xml Hi A better way is to use struts modules. Every Module has its own struts-configuration. If you use more than one struts configuration such as described below, you may have problems with duplicate identifiers, becaus struts builds one configuration out of all files. This problems you don't have using modules. Modules acts as a namespace in this case. -Manfred -- === Dipl.-Inf. Manfred Wolff Software Engineer --- http://www.manfred-wolff.de http://www.struts-it.org --- Folashade Adeyosoye wrote: Yes, in your web.xml Change this... servlet servlet-nameAppName/servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet To servlet servlet-name AppName /servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/the-employee-config.xml,/WE B-INF/the-admin-config.xml,/WEB-INF/the-client-config.xml,/WEB-INF/the-bil li ng-config.xml,/WEB-INF/the-report-config.xml,/WEB-INF/the-patient-config.x ml /param-value /init-param load-on-startup1/load-on-startup /servlet -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Sunday, April 10, 2005 11:04 PM To: 'Struts Users Mailing List' Subject: Multiple struts-config.xml Hi I have an application and I need to create many web flows. If I use struts to model the web flows, is it possible to use many struts-config.xml instead of one? Regards, Néstor Boscán - 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]
[OT: jsf] RE: [REFERENDUM] Struts is a Community
which JSF list? the myfaces-list or another one? (I follow myfaces, because sun offers only a rather unfriendly forum...) Alexander (promoting Struts until I got JSF ready for our people ;-) ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:20 PM To: user@struts.apache.org Subject: RE: [REFERENDUM] Struts is a Community Hi Nag Nag - Have you followed the JSF list lately ? Hermod (A great fan of Struts - and lately also JSF/Shale) -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 11:02 AM To: Struts Users Mailing List Subject: RE: [REFERENDUM] Struts is a Community First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... - rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good company) For me this means +indefinitely (1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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]
Need Database Connectivity Advice
I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Database Connectivity Advice
Hi, you might want to take a look at Hibernate (www.hibernate.org). It's a powerful yet (fairly) easy to use persistence layer, that can even be used with an existing database schema (Middlegen). There is also a lot of documentation (on- and offline) available for this project. Regards, Tom Scott Purcell wrote: I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - 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: Need Database Connectivity Advice
I would use hibernate. It´s the best framework for object-persistence (I think), works very well with struts + Tomcat 5.0 (I haven't thes 5.5). I think it would be a good approach Rodolfo Scott Purcell [EMAIL PROTECTED] 11/04/2005 14:56 Por favor, responda a Struts Users Mailing List Para: user@struts.apache.org cc: (cco: Rodolfo García Esteban/CYII) Asunto: Need Database Connectivity Advice I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [REFERENDUM] Struts is a Community
How's about calling us a prommunity where the product is the community (in part)? Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Simon Chappell [mailto:[EMAIL PROTECTED] Sent: 11 April 2005 14:18 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [REFERENDUM] Struts is a Community Ted, I say it's both. The software that we download is a product, but the mailing list and the friends that we have made through it is a community. Simon On Apr 10, 2005 6:55 AM, Ted Husted [EMAIL PROTECTED] wrote: *snip* What do you say? Are we a product or a community? Here's my +1 for community. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Database Connectivity Advice
Here's how i use the tomcat database pool. (these are just the relevent snippets, if you need the entire source, email me off list and i'll email you the entire DAO) In my DAO: import javax.sql.DataSource; import javax.naming.Context; import javax.naming.InitialContext; import java.sql.Connection; import java.sql.Statement; Statement stmt = null; Connection conn = null; try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:com/env) DataSource ds = (DataSource) envCtx.lookup(jdbc/mediatwo); conn = ds.getConnection(); stmt = conn.createStatement(); // run query, get results etc } The key in the look up line: envCtx.lookup(jdbc/mediatwo); is the name from the tomcat database pool in server.xml: Resource name=jdbc/mediatwo auth=Container type=javax.sql.DataSource description=mysql mediatwodev db /Resource Hope that helps. Dave On Mon, 2005-04-11 at 08:56, Scott Purcell wrote: I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - 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: jsf] RE: [REFERENDUM] Struts is a Community
Hi Is there any other real list than MyFaces :) Hermod -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:48 PM To: Struts Users Mailing List Subject: [OT: jsf] RE: [REFERENDUM] Struts is a Community which JSF list? the myfaces-list or another one? (I follow myfaces, because sun offers only a rather unfriendly forum...) Alexander (promoting Struts until I got JSF ready for our people ;-) ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:20 PM To: user@struts.apache.org Subject: RE: [REFERENDUM] Struts is a Community Hi Nag Nag - Have you followed the JSF list lately ? Hermod (A great fan of Struts - and lately also JSF/Shale) -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 11:02 AM To: Struts Users Mailing List Subject: RE: [REFERENDUM] Struts is a Community First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... - rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good company) For me this means +indefinitely (1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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: Need Database Connectivity Advice
Hi Wake up!! Use Hibernate. It will give you some initial gra hairs, but thereafter you will never look back. Hermod -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:56 PM To: user@struts.apache.org Subject: Need Database Connectivity Advice I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [REFERENDUM] Struts is a Community
The safe answer is of course that it is both, and it's the answer I give... If it was only a product, I would say it would be worth considerably less if there wasn't such a great community built around it... And if it was just a community I would say that is kind of pointless without a product at the core. So, I suppose you could count me as +1 on both sides :) But, if you aren't satisfied with the safe answer, I'd have to go with product. I work in a corporate environment. A community doesn't matter very much in such an environment (not to the higher-ups I mean), but a product most certainly does. A product implies accountability if something goes wrong. Of course that really isn't the case with Struts, although in a sense the community as a whole is accountable. Big companies like having someone to blame, so they tend to shy away from anything that isn't a product because there tends to not be anyone to blame then. Struts is kind of an exception, as I suppose any much-used OSS project is really... you accept to a degree that there really isn't accountability so to speak, except to a community. That's why OSS software, while it is gaining acceptance, is still not used as much as commercial software... the decision-makers in big companies are becoming more accepting as time goes by, but it is still hard for them to justify something that there isn't someone out there they can sue if something blows up. Struts seems to be one of the exceptions here. Ugh, mailing list, meet tangent :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Apr 10, 2005 6:55 AM, Ted Husted [EMAIL PROTECTED] wrote: *snip* What do you say? Are we a product or a community? Here's my +1 for community. -Ted. - 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: session expiration issue and tiles
Dave: I can understand presenting different menu options based on user privileges and having the same layout pages. But my concern is there may be some pages which a user with less privileges may not be allowed to see at all, and what if he finds the url of that page and types the url in the browser and if that particular page does not have the authority-check not built into it, that user may be able to do stuff on the page..I hope you know what I am saying. On Apr 8, 2005 3:56 PM, Dave Newton [EMAIL PROTECTED] wrote: sudip shrestha wrote: I have user types with varying level of privileges and only a defined user type can access a particular page. I thought of using filter for this purpose, but not sure how to designate which layout*.jsp (have created multiple layout.jsp pages for varying user types: e.g. admin can access layout1.jsp, user can access layout2.jsp) can be accessed by which user type. I'm not sure if we're addressing the same problems, or if my solution is a good one, but I have tiles:insert tags that insert menuing sub-tiles wrapped by an authorization level check, so depending on their auth level they get a different menu tile inserted. So the overall layout is the same for all user types, but different user authorization levels have different subtiles inserted. This method could be extended to cover any aspect of the layout: in my case it's a single row of menu options underneath the page's logo header. I imagine you could also create the name of the tile to be inserted on-the-fly using EL, but I didn't do that. Don't know why not; that seems cleaner, but I'm tired. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [REFERENDUM] Struts is a Community
It is simply a community. I my case I had started my own version of Struts without realizing that there was already one created but with a community behind it ! I soon stopped using my own and switched to Struts. [Okay, I still have on application in production yet to be converted] In the end Struts is way of doing things within an MVC architecture. However, it is an industry wide accepted and used framework. This is a powerful argument in the corporate world... since there is a community behind it, lots of documentation/books, and lots of resources who know it. The framework would not have advanced so quickly without the community,,, for developers to commit code, for users to use it, the whole for injecting the framework with a momentum to sustain its evolution. - Glenn
Re: [REFERENDUM] Struts is a Community
Happy Birthday, Ted. Many more! Both and they are not antithetical or a choice. Jack On Apr 10, 2005 4:55 AM, Ted Husted [EMAIL PROTECTED] wrote: As of about 2a EST this morning, 134,788 messages were posted to this list. Even for five years, that's a lot of traffic! Most of those messages have been about users helping other users. Some others, often marked Friday or Beer have been about users entertaining users. :) And, occasionally, we have waxed introspective and discussed What is Struts anyway?. Some people have said that Struts is a brand that marks a product. Our benefactor, the Apache Software Foundation, calls Struts a Project. Project is a good word, but it's really a euphemism: Project is an ASF code word that means Community. From an ASF perspective, we're not here to build software, but to build a development community, and let the community build the software. We believe that great communities build great technology. Over the years, the Struts community *has* built some great technology. Aside from the Struts Action package, we've built Tiles and the Validator. We've built Bean-Utils and the Digester. And Collections, and File Upload, and Resources. And Chain. A good portion of all the components in the Jakarta Commons today is technology that Struts built. The technologies that Struts built are not just gizmos we use with our own controller or taglib components. Dozens of other software projects, and thousands of teams, use these technologies every day, whether they use our application framework or not. IMHO, this is what it means to be a community rather than a product, a people rather than a brand. It means that first we try to help each other, and then we try to package our solution to share with all comers. But, the map is not the land, and the solution is not the project. Since today is my birthday, I thought I'd take the liberty of calling for a referendum on a topic that is close to my heart: What do you say? Are we a product or a community? Here's my +1 for community. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Populate method of ActionForm
Hello All, When i first heard about struts, i was developing all in jsps. I read about struts and at the same time MVC, and thought, Well obviously thats the way to go. So before i allowed my self to use struts i first created my own strutsLite based on my very small understanding of struts. I built out a couple of applications on this framework, and then started using struts. So unfortunatly one of the applications i built using my strutsLite has taken on a life of its own. Also unfortunatly when i built strutsLite i misunderstood how actionForm population worked and i built a populate method in the ActionForm. I now would like to migrate this application to Struts, but my application needs the populate method in the ActionForm to work correctly. The application is a dynamic form builder, that creates forms on the fly based on a form definition in a database. Each component on the form is represented by a class that implements an interface. The interface has validate, populate and generateHTML methods. Because each component class writes the HTML and also uses its populate method to parse the submission, complex multi element components can be coded. So in the ActionForm, a lookup is performed for each component in a form submission, to see what type of component it is. The proper class is then instanciated, and its populate method is called. I assume the struts way of working this out would be to extend the RequestProccessor and override the processPopulate method. Any advice about the transition of this situation to struts or to another framework would be greatly appreciated. Thanks Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]question about open source data base selection
Hi, from my experience, I can recommend PostgreSQL. It's quite easy to setup, it's reliable and has all the functionality you require (views, stored procedures, foreign key constraints). As to the license: And because of the liberal license, PostgreSQL can be used, modified, and distributed by everyone free of charge for any purpose, be it private, commercial, or academic. (http://www.postgresql.org/about/) Regards, Tom Ashish Kulkarni wrote: Hi I am working on a intranet project, we plan to use a open source database, there wont be a lot of load on it, may be a 500-700 records written or deleted per day. I would like to have a database which has features like views, stored procedures, foreign key constraint etc Which would you guys prefer, and also which is a real open source where i dont have to worry about license. I have a list like mysql, postgre sql, Ingres by CA, Derby from apache , Ashish __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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: [REFERENDUM] Struts is a Community
Marsh-Bourdon, Christopher wrote the following on 4/11/2005 9:26 AM: How's about calling us a prommunity where the product is the community (in part)? Yea, I like this - it's similar to Kramer and Frank's bro or manzier:) (Happy belated birthday Ted) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsf] RE: [REFERENDUM] Struts is a Community
[EMAIL PROTECTED] is also active, but not to the extent of the MyFaces user list. Duncan http://www.groundside.com/blog [EMAIL PROTECTED] wrote: Hi Is there any other real list than MyFaces :) Hermod -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:48 PM To: Struts Users Mailing List Subject: [OT: jsf] RE: [REFERENDUM] Struts is a Community which JSF list? the myfaces-list or another one? (I follow myfaces, because sun offers only a rather unfriendly forum...) Alexander (promoting Struts until I got JSF ready for our people ;-) ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:20 PM To: user@struts.apache.org Subject: RE: [REFERENDUM] Struts is a Community Hi Nag Nag - Have you followed the JSF list lately ? Hermod (A great fan of Struts - and lately also JSF/Shale) -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 11:02 AM To: Struts Users Mailing List Subject: RE: [REFERENDUM] Struts is a Community First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... - rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good company) For me this means +indefinitely (1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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]
Welcomefiles and Mapping with Wildcards
Hi. I have a webapp which spans up virtual directories with the following mapping action path=/index type=de.my.DispatchController action path=/*/index parameter={1} type=de.my.DispatchController action path=/*/*/index parameter={1}:{2} type=de.my.DispatchController So you get different index-Pages for http://myhost/webapp/index.do http://myhost/webapp/mycompany/index.do http://myhost/webapp/mycompany/mydepartment/index.do Now the problem is: I need like to specify a welcome-File for each virtual directory. So when entering http://myhost/webapp/, http://myhost/webapp/mycompany/ or http://myhost/webapp/mycompany/mydepartment/ the correct Index-Actions should be called. Welcome-File in web.xml didn't do the trick. Also mapping the / didn't work. Any Ideas? Kind Regards and thanks for any suggestions Ole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session expiration issue and tiles
We have all our jsp pages preceded by an Action, we have no jsp pages accessed directly. All our actions have security. We have even looked at tiles and the way they can be hidden as well. I offer this as our way of ensuring each page has adequate security. I also offer it as a way to simplify the jsp so as little business logic as can be is contained in the jsps. Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: sudip shrestha [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 6:37 AM To: Dave Newton; Struts Users Mailing List Subject: Re: session expiration issue and tiles Dave: I can understand presenting different menu options based on user privileges and having the same layout pages. But my concern is there may be some pages which a user with less privileges may not be allowed to see at all, and what if he finds the url of that page and types the url in the browser and if that particular page does not have the authority-check not built into it, that user may be able to do stuff on the page..I hope you know what I am saying. On Apr 8, 2005 3:56 PM, Dave Newton [EMAIL PROTECTED] wrote: sudip shrestha wrote: I have user types with varying level of privileges and only a defined user type can access a particular page. I thought of using filter for this purpose, but not sure how to designate which layout*.jsp (have created multiple layout.jsp pages for varying user types: e.g. admin can access layout1.jsp, user can access layout2.jsp) can be accessed by which user type. I'm not sure if we're addressing the same problems, or if my solution is a good one, but I have tiles:insert tags that insert menuing sub-tiles wrapped by an authorization level check, so depending on their auth level they get a different menu tile inserted. So the overall layout is the same for all user types, but different user authorization levels have different subtiles inserted. This method could be extended to cover any aspect of the layout: in my case it's a single row of menu options underneath the page's logo header. I imagine you could also create the name of the tile to be inserted on-the-fly using EL, but I didn't do that. Don't know why not; that seems cleaner, but I'm tired. Dave - 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: Need Database Connectivity Advice
Depending on your feelings towards paying for an O/R mapping solution, there are two long established O/R mapping mechanisms from Oracle. * TopLink (http://www.oracle.com/technology/products/ias/toplink/index.html) * ADF Business Components (http://www.oracle.com/technology/products/jdev/index.html) I'd recommend Business Components if you are from a relational background and tend to do your DB design up front and TopLink if the reverse is true and / or you don't have as much control as you'd like over the relational side and need more complex mapping capabilities. Both frameworks handle pooling caching and so forth for you as you'd expect With either framework you can integrate with Struts directly through code, or using the ADF Model framework http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfm_overview.pdf handle UI binding and method invocation from Struts Actions declaratively. It's worth running through the online tour http://www.oracle.com/technology/products/jdev/viewlets/10g/ADFOverview_viewlet_swf.html to get an idea what it's all about in any case, more to illustrate the levels of productivity O/R mapping frameworks should aspire to if nothing else. Duncan http://www.groundside.com/blog Scott Purcell wrote: I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Database Connectivity Advice
Hi I think now i'll have to go into this thread :) I recommend looking at list's archive. We already had this discussion at least 2 or 3 times before. But, if you are a lazy bastard like me, i'll point a summary of our past discussions adding my opinion: Hibernate: - Good: active project, large community, EJB 3, good docs - Bad: not recommended for legacy databases (almost 99% of all situations), slow for very large amounts of transactions, huge memory load. But, as i stated above, if you have a legacy database (a database created before your app) Hibernate makes your life even harder. In such situations, i usually stick to iBatis SQL Maps. It is simple, well documented, has a growing community and i know some of the guys that develop it :) Oh, and it is now under Apache umbrella, for those that think this is a plus. So, assess your requirements, get feedback about both and choose one :) Hope this was useful. Cheers, Daniel Silva. --- [EMAIL PROTECTED] wrote: Hi Wake up!! Use Hibernate. It will give you some initial gra hairs, but thereafter you will never look back. Hermod -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:56 PM To: user@struts.apache.org Subject: Need Database Connectivity Advice I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper problem
I've been struggling with a problem for two days and I am hoping somebody here might have an idea. I am using Struts 1.1 with tiles and have a long JSP with about 30 form fields, some with option lists which are stored at the application level. Everything is working fine, then I make one change. I go from: html:text property=resellerID size=25 styleClass=form/ to logic:equal property=resellerID value=0 html:text property=resellerID size=25 styleClass=form/ /logic:equal logic:notEqual property=resellerID value=0 bean:write name=trialDownloadForm property=resellerID/ /logic:notEqual Now all of a sudden I get this error in a totally unrelated area: ... option value=AZAzerbaijan/option option value=BHBahrain/option option value=BDBangladesh/option option value=BIBurundi/option option value=BEBelgium/option [ServletException in:/tiles/trial_download_body.jsp] No selector attribute (cookie/header/name/parameter) was specified' ... Note how the options list is cut off right in the middle. Is this a Jasper problem? How can I fix it? Wiebe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]question about open source data base selection
Ashish Kulkarni wrote: mysql, postgre sql, Ingres by CA, Derby from apache , Note that the JDBC Connector/J for MySQL is GPL--if you link to it in your code your code must also be GPL'ed. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session expiration issue and tiles
sudip shrestha wrote: I can understand presenting different menu options based on user privileges and having the same layout pages. But my concern is there may be some pages which a user with less privileges may not be allowed to see at all, and what if he finds the url of that page and types the url in the browser and if that particular page does not have the authority-check not built into it, that user may be able to do stuff on the page..I hope you know what I am saying. The JSPs shouldn't be directly accessible anyway--if they're under WEB-INF then they cannot be directly accessed. Authentication would be handled either in a) a filter, b) an Action super-class, c) a custom RequestProcessor, or d) somewhere else. Personally, I don't believe _any_ authentication belongs in the view, but I'm obsessive. If an action is protected by one of the mechanisms above (or something functionally similar) and the JSPs are not directly accessible, then you don't need to worry about it at all on the presentation side. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Html:cancel question
I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts to do a validated submit. What do I need to do to disable buttons AND get cancel to work properly? function disable(form) { var buttons = form.getElementsByTagName(input); for (i = 0; i buttons.length; i++) { if (buttons[i].type == button || buttons[i].type == reset || buttons[i].type == submit) { buttons[i].disabled = true; } } return true; } Thanks, Derrick
Re: Html:cancel question
Rather than try to handle all of this on the client side with javascript, it might be better and easier to just use the Token approach to handle duplicate submits. I believe there was an email just today about this. You can disable the button but the user can still just hit enter again and you'll end up with a duplicate submission (using the token concept this won't be a problem). Derrick Koes wrote the following on 4/11/2005 1:56 PM: I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts to do a validated submit. What do I need to do to disable buttons AND get cancel to work properly? function disable(form) { var buttons = form.getElementsByTagName(input); for (i = 0; i buttons.length; i++) { if (buttons[i].type == button || buttons[i].type == reset || buttons[i].type == submit) { buttons[i].disabled = true; } } return true; } Thanks, Derrick -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]question about open source data base selection
Dave, I'm confused here. What do you mean by link to it? If I simply use the connector-J drivers in my appserver, or directly using the DriverManager in a program it is not a violation of the GPL. Mostly the GPL protects Connector-J itself, and any derived works. In fact the GPL provides for not having to GPL an entire set of your own software: These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. So if you distribute a program that uses Connector-J you may be required to provide the source code, etc to Connector-J but you do not have to GPL your own code, as that can be distributed totally separate from connector-J. Al -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 12:46 PM To: Struts Users Mailing List Subject: Re: [OT]question about open source data base selection Ashish Kulkarni wrote: mysql, postgre sql, Ingres by CA, Derby from apache , Note that the JDBC Connector/J for MySQL is GPL--if you link to it in your code your code must also be GPL'ed. Dave - 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: [OT]question about open source data base selection
On Apr 11, 2005 11:55 AM, Fogleson, Allen [EMAIL PROTECTED] wrote: So if you distribute a program that uses Connector-J you may be required to provide the source code, etc to Connector-J but you do not have to GPL your own code, as that can be distributed totally separate from connector-J. Al We all wish the world was quite as black and white as that, but alas it is not. There are ambiguities and uncertainties in what link to means in the context of Java. You would be advised to consult your organization's legal staff to ensure GPL compliance if you are distributing code that uses GPL modules. The situation with LGPL is similar but different in that the requirements are different and the interpretations are, somewhat more varied. IANAL (I am not a lawyer), so I am not going to offer any specific comments beyond that. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]question about open source data base selection
Refer to the End users section in the following document: http://dev.mysql.com/tech-resources/articles/mysql-network-and-you.html On Apr 11, 2005 1:55 PM, Fogleson, Allen [EMAIL PROTECTED] wrote: Dave, I'm confused here. What do you mean by link to it? If I simply use the connector-J drivers in my appserver, or directly using the DriverManager in a program it is not a violation of the GPL. Mostly the GPL protects Connector-J itself, and any derived works. In fact the GPL provides for not having to GPL an entire set of your own software: These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. So if you distribute a program that uses Connector-J you may be required to provide the source code, etc to Connector-J but you do not have to GPL your own code, as that can be distributed totally separate from connector-J. Al -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 12:46 PM To: Struts Users Mailing List Subject: Re: [OT]question about open source data base selection Ashish Kulkarni wrote: mysql, postgre sql, Ingres by CA, Derby from apache , Note that the JDBC Connector/J for MySQL is GPL--if you link to it in your code your code must also be GPL'ed. Dave - 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: [OT]question about open source data base selection
Fogleson, Allen wrote: These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. From: http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem However, in many cases you can distribute the GPL-covered software alongside your proprietary system. To do this validly, you must make sure that the free and non-free programs communicate at arms length, that they are not combined in a way that would make them effectively a single program. The difference between this and incorporating the GPL-covered software is partly a matter of substance and partly form. The substantive part is this: if the two programs are combined so that they become effectively two parts of one program, then you can't treat them as two separate programs. So the GPL has to cover the whole thing. If the two programs remain well separated, like the compiler and the kernel, or like an editor and a shell, then you can treat them as two separate programs--but you have to do it properly. The issue is simply one of form: how you describe what you are doing. Why do we care about this? Because we want to make sure the users clearly understand the free status of the GPL-covered software in the collection. From: http://www.gnu.org/licenses/gpl-faq.html#MereAggregation If the modules are included in the same executable file, they are definitely combined in one program. If modules are designed to run linked together in a shared address space, that almost surely means combining them into one program. Like Craig says, this is an interesting issue with Java (and, I guess, shared libraries in general). And it's _still_ never been clear to me what, exactly, it means with regards to web applications. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]question about open source data base selection
In my experience at least two of the databases you list excel at something my one caveat is, that although postgresql does do everything you want I have found it to be rather slow under load. That may be because there is little documentation on tuning it and such. MYSQL simply screams at reads. Its even fairly quick with a transactional backend like innodb or such. Also both of these two have some commercial support available which I have often found to be a sticking point with clients on picking ANY database. I cant speak to the other two because I haven't had enough experience to benchmark them. (and in the case of Derby I haven't even used it). Al -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 9:03 AM To: user@struts.apache.org Subject: [OT]question about open source data base selection Hi I am working on a intranet project, we plan to use a open source database, there wont be a lot of load on it, may be a 500-700 records written or deleted per day. I would like to have a database which has features like views, stored procedures, foreign key constraint etc Which would you guys prefer, and also which is a real open source where i dont have to worry about license. I have a list like mysql, postgre sql, Ingres by CA, Derby from apache , Ashish __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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]
html:cancel question
I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts to do a validated submit. What do I need to do to disable buttons AND get cancel to work properly? function disable(form) { var buttons = form.getElementsByTagName(input); for (i = 0; i buttons.length; i++) { if (buttons[i].type == button || buttons[i].type == reset || buttons[i].type == submit) { buttons[i].disabled = true; } } return true; } Thanks, Derrick
RE: html:cancel question
seems that the browser stops the form from being able to do ANYTHING with it... one solution, but it seems dirty to me, is to add another form with only a cancel button... kr, guenther -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien Austria http://www.creative-it.com -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 10:42 PM To: [EMAIL PROTECTED] Subject: html:cancel question I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts to do a validated submit. What do I need to do to disable buttons AND get cancel to work properly? function disable(form) { var buttons = form.getElementsByTagName(input); for (i = 0; i buttons.length; i++) { if (buttons[i].type == button || buttons[i].type == reset || buttons[i].type == submit) { buttons[i].disabled = true; } } return true; } Thanks, Derrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intermittent Null pointer in ComponentDefinitionsFactory
Hello - We've been seeing the following exception intermittently in our test environments. The user sees a blank screen. We have not been able to establish a pattern. We're using Struts 1.1 with JDK1.4.204 Mar 16, 2005 5:59:23 PM EST Info HTTP wmsccusotiswli1u.ca.cibcwm.com gowpo10cN1 ExecuteThread: '3' for queue: 'weblogic.kernel.System' anonymous BEA-101047 [ServletContext(id=13205013,name=atm,context-path=/atm)] action: init Mar 16, 2005 5:59:46 PM EST Error HTTP wmsccusotiswli1u.ca.cibcwm.com gowpo10cN1 ExecuteThread: '10' for queue: 'weblogic.kernel.Default' WLS Kernel BEA-101020 [ServletContext(id=746976,name=otis-common-gow-war,context-path=)] Servlet failed with Exception java.lang.NullPointerException at org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.getDefinition(ComponentDefinitionsFactoryWrapper.java:124) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:180) at com.cibcwm.go.otis.common.workbench.WorkbenchClientTilesRequestProcessor.processForwardConfig(WorkbenchClientTilesRequestProcessor.java:80) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1008) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.cibcwm.go.otis.mf.client.servlet.WorkbenchClientFilter.doFilter(WorkbenchClientFilter.java:73) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.cibcwm.go.otis.client.common.AuthRedirectFilter.doFilter(AuthRedirectFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:644) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.cibcwm.go.otis.common.workbench.ui.DecoratorFilter.doFilter(DecoratorFilter.java:238) We have multiple web applications deployed to a common WebLogic 8.1 SP3 domain. A single common web application provides the user framework for a number of embedded web app's that provide specific business functionality. Each webapp is deployed as part of an application-specifc EAR file. The common web app is also deployed as a part of an EAR. The problem is temporarily resolved by restarting the affected server or redeploying the common EAR including webapp from the WLS console. The business webapps will often draw a page with tiles, including the banner from the common webapp. The first time such a page is composed is when we see this problem. If we can safely navigate to one of these page types, we don't see the problem until the server is restarted again. Any ideas? We thought that configuring isModuleAware in struts-config.xml from true to false might help, but this does not seem to be the case. thanks in advance, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]question about open source data base selection
I read that document and I still don't get it. There is even a forum post about the article asking about the situation that is typical for many of us: having a proprietary JDBC- or PHP-based application that connects to a single MySQL server (not embedded) using Connector-J. The author of the article doesn't even answer the question even though he responds (unless I missed it). He seems to want to encourage users to partner with MySQL after he profusely denies that he is a salesman. What are our responsibilities in this case if our applications are not open source? I guess I need to study the GPL further. Perhaps I will contact MySQL. Erik Nick Heudecker wrote: Refer to the End users section in the following document: http://dev.mysql.com/tech-resources/articles/mysql-network-and-you.html On Apr 11, 2005 1:55 PM, Fogleson, Allen [EMAIL PROTECTED] wrote: Dave, I'm confused here. What do you mean by link to it? If I simply use the connector-J drivers in my appserver, or directly using the DriverManager in a program it is not a violation of the GPL. Mostly the GPL protects Connector-J itself, and any derived works. In fact the GPL provides for not having to GPL an entire set of your own software: These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. So if you distribute a program that uses Connector-J you may be required to provide the source code, etc to Connector-J but you do not have to GPL your own code, as that can be distributed totally separate from connector-J. Al -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 12:46 PM To: Struts Users Mailing List Subject: Re: [OT]question about open source data base selection Ashish Kulkarni wrote: mysql, postgre sql, Ingres by CA, Derby from apache , Note that the JDBC Connector/J for MySQL is GPL--if you link to it in your code your code must also be GPL'ed. Dave - 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: html:cancel question
For long running actions, I always prefer to use transaction tokens (built into Struts) and a processing/wait page. This keeps users busy watching instead of wondering why the page hasn't changed. --Kevin -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 1:42 PM To: [EMAIL PROTECTED] Subject: html:cancel question I have a function to disable buttons onsubmit because I don't want the user to keep clicking, especially for long running actions. However, this seems to interfere when the button is an html:cancel, which is a type of submit. It seems to ignore the correct behavior of cancelling and attempts to do a validated submit. What do I need to do to disable buttons AND get cancel to work properly? function disable(form) { var buttons = form.getElementsByTagName(input); for (i = 0; i buttons.length; i++) { if (buttons[i].type == button || buttons[i].type == reset || buttons[i].type == submit) { buttons[i].disabled = true; } } return true; } Thanks, Derrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] get real path to jar file in jsp folder
Hi Here is a data structure in my web project, c:\myproject - | - pages - | my.jar WEB-INF- | classes lib all my servlets are in classes folder, how do i get the absoulte path for my.jar in my servlet, I need to read manifest in this jar file through my servlet. this code should work on all platforms Ashish A$HI$H __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repost: Bidimensional array for form property
Hello All, I'm back working on Struts since a few years. I'm still using struts 1.1 with JDK 1.4.2 I'm trying to post a form that contains fields with name like this one: file[5][10] and so on... in the ActionForm I've these code: private FormFile[][] uFile=new FormFile[10][100]; ... public void setFile(FormFile[][] file) { uFile = file; } public FormFile[][] getFile() { return uFile; } but when I post the form I get the following error: 2005-04-10 19:32:25 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.IllegalArgumentException: array element type mismatch at java.lang.reflect.Array.set(Native Method) at org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1468) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1013) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.piyosailing.jClubHouse.filters.SignOnFilter.doFilter(SignOnFilter.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) I tryed the same thing with one dimension array and it works fine, then I added the second dimension it started having this behaveur. Anybody know how to solve this problem? I looked around but didn't find anything like this. Thank you Simone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] get real path to jar file in jsp folder
How about: String realPath = getServletContext().getRealPath(); Then modify to get to the correct directory. Thanx, PLA Ashish Kulkarni wrote: Hi Here is a data structure in my web project, c:\myproject - | - pages - | my.jar WEB-INF- | classes lib all my servlets are in classes folder, how do i get the absoulte path for my.jar in my servlet, I need to read manifest in this jar file through my servlet. this code should work on all platforms Ashish A$HI$H __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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
I dont see how you would have problems with names, if you have unique form names, you would also have unique attribute names. Even thou you have the same attributes: From the example below, one can have a form attribute called id in each struts-config. This method had been used on a system that is live now, with no problem. -Original Message- From: Manfred Wolff [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:48 AM To: Struts Users Mailing List Subject: Re: Multiple struts-config.xml Hi A better way is to use struts modules. Every Module has its own struts-configuration. If you use more than one struts configuration such as described below, you may have problems with duplicate identifiers, becaus struts builds one configuration out of all files. This problems you don't have using modules. Modules acts as a namespace in this case. -Manfred -- === Dipl.-Inf. Manfred Wolff Software Engineer --- http://www.manfred-wolff.de http://www.struts-it.org --- Folashade Adeyosoye wrote: Yes, in your web.xml Change this... servlet servlet-nameAppName/servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet To servlet servlet-name AppName /servlet-name servlet-classcom.path.to.the.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/the-employee-config.xml,/W E B-INF/the-admin-config.xml,/WEB-INF/the-client-config.xml,/WEB-INF/the-bill i ng-config.xml,/WEB-INF/the-report-config.xml,/WEB-INF/the-patient-config.xm l /param-value /init-param load-on-startup1/load-on-startup /servlet -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Sunday, April 10, 2005 11:04 PM To: 'Struts Users Mailing List' Subject: Multiple struts-config.xml Hi I have an application and I need to create many web flows. If I use struts to model the web flows, is it possible to use many struts-config.xml instead of one? Regards, Néstor Boscán - 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: [REFERENDUM] Struts is a Community
+1 Jesse Alexander (KBSA 21) wrote: First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... - rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good company) For me this means +indefinitely (1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - 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: [HELP] How to do validation in Struts + iBatis + DAO???
but ... Larry, iBatis has BaseBean, BeanAction BaseBean here is extended from org.apache.struts.action.ActionForm BeanAction is extended from org.apache.struts.action.Action I must build my bean bases on BaseBean, which means that my bean must extend from BaseBean. But, to use validator of Struts, my bean must extend from ValidatorForm. again, help me! Bowl - Original Message - From: Larry Meadors [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 11, 2005 9:43 PM Subject: Re: [HELP] How to do validation in Struts + iBatis + DAO??? I am not sure why this is a problem, unless you are passing your action form into iBATIS. If that is the case, that is a really, really, really bad idea. What I would recommend (beyond not using validator) is nesting your model bean on the action form. Larry On Apr 11, 2005 2:02 AM, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi all, I don't know how to do Validation in Struts + iBatis + Dao. Because when I use above Structure, I must extends from BaseBean to create my own Bean. As you know, if we want to use Validator of Struts, our ActionForm must extends from ValidatorForm. So ... help me. bowl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:cancel question
While that might be a good suggestion, it doesn't breech the topic of how to get the form to submit even when the user selects cancel. I personally handle this by having a javascript variable called isCancelled which I initialize to false. The onclick handler for my cancel button sets it to true. In my validation JavaScript, I check for this value first thing off the bat. That's not a real good Struts way to do it, I'm sure, but it certainly does work. I haven't gotten to use the Struts validation stuff at work yet (though I'm looking forward to using it in my next project), so I'm not sure how you'd handle this if you are. Perhaps someone else has a suggestion compatible with Struts validation. One thing I'll point out. If you're using your buttons in typical Struts fashion (ala lookup dispatch action), you won't want to disable your buttons. If you do, your action won't know what the user asked to do and you'll wind up with some nasty exceptions :-) Good Luck! Eddie On Apr 11, 2005 4:59 PM, Stunger, Kevin J [EMAIL PROTECTED] wrote: For long running actions, I always prefer to use transaction tokens (built into Struts) and a processing/wait page. This keeps users busy watching instead of wondering why the page hasn't changed. --Kevin -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 1:42 PM To: [EMAIL PROTECTED] Subject: html:cancel question What do I need to do to disable buttons AND get cancel to work properly? -- Eddie Bush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP] How to do validation in Struts + iBatis + DAO???
Pham Anh Tuan wrote the following on 4/11/2005 4:02 AM: Hi all, I don't know how to do Validation in Struts + iBatis + Dao. Because when I use above Structure, I must extends from BaseBean to create my own Bean. As you know, if we want to use Validator of Struts, our ActionForm must extends from ValidatorForm. Why do you have to extend BaseBean for your ActionForms and not ValidatorActionForm? I'm confused. iBATIS should care less about what the front end is doing so iBATIS doesn't care about your ActionForm. You'll have to explain more what this BaseBean is - I'm assuming it's of type ActionForm? I've never needed to extend an ActionForm that I can recall. Actions, yes, but not ActionForms (including all the other flavors ValidatorActionForm, ValidatorForm, etc). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:cancel question
Eddie Bush wrote the following on 4/12/2005 12:42 AM: I personally handle this by having a javascript variable called isCancelled which I initialize to false. The onclick handler for my cancel button sets it to true. In my validation JavaScript, I check for this value first thing off the bat. When I have a cancel button I usually want to go somewhere or reset things. So I just go back to the server when you hit cancel. Just use a regular submit button or if you could even use a plain old button or image with a javascript handler to submit the form. I think his initial problem might be that he doesn't want validation to occur when the cancel submits? I've worked around this using the ValidationActionForm but I still, once again, find it much better to simply validate from your Action. Cleaner and you can handle things a lot better (ie make sure things repopulate your request correctly etc). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BC4J
Hi Anyone there to help me in Business components 4 java(BC4J)? I am getting a error Common.jpx not found.how to solve this? vim __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]