Re: [OT] JTA, JDBC and data persistence
Freddy, You may want to take a look at Hibernate (http://www.hibernate.org), if you haven't done so already. Hibernate is a persistence mechanism which utilizes XML mappings to map Java objects to relational database schemas, and does support cascading deletes, amoung other things. HTH, Ian Freddy Villalba Arias [EMAIL PROTECTED] To: [EMAIL PROTECTED] matica.escc: Subject: [OT] JTA, JDBC and data persistence 03/26/2004 10:59 AM Please respond to Struts Users Mailing List Hello everybody, An off-topic question (it's Friday, I hope you accept it!): I want to implement a Business Object Model on top of many DAOs. Those BOs will be - obviously - related to each other (mainly 1:n and m:n relationships). I must implement this in such way that, when - for example - deleting a BO that has 3 children associated (therefore, those must be deleted as well), it's is possible to do so atomically. That is, I need to be able to delimit the beginning and the end of the transaction that spans the delete operation on those 4 objects. I want this to be as transparent and elegant as possible. I believe the right choice for solving this is using JTA objects (that is XA objects) instead of plain JDBC. I've been reading the API and some papers regarding JTA; I have a fundamental doubt: Does JTA allows me to delimit (and perform) 2 independent, yet concurrent transactions??? For instance: 2 users that click the delete button at the same time (it's a web application). I haven't seen anything like a transaction ID or similar on any example I've examined. Is this issue transparent to me? Is JTA able, in any way, to differentiate the Transaction begun from each user's corresponding instance of the respective BO (the one they wanted to delete... i.e. the father, not its children)??? I'd appreciate any light you can shed on this matter. Thanks and regards, Freddy. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] WSAD problems with Struts
You can also override the global Validation preferences within the Validation portion of the Project Properties. Ian Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] nding.com cc: Subject: Re: [OT] WSAD problems with Struts 03/26/2004 08:35 AM Please respond to Struts Users Mailing List Oliver, What version of WSAD are you running? What problems are you having specifically? Validation is controlled through the menu option Window Preferences Validation Susan Bradeen Oliver Thiel [EMAIL PROTECTED] wrote on 03/26/2004 08:09:34 AM: Hi, I read that some of you had some problems to run Struts apps on WSAD and as I run into that problem too i wanted to know how you solved it! I as far as I understand some turned of different validations including the on concerning Struts, but where couldn't fide the right place to do that! And are their any outher traps that has to be solved? Thank and have a nice weekend Oliver -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: microsoft sqlserver driver struts
Hi Claire, We are successfully connecting to a Microsoft SQL Server 2000 using the type 4 JDBC drivers. However, we do not use DBCP, but rather the DataSource implementation provided by Microsoft. Here is the configuration we use (this is taken from an internal configuration file that we use to create the DataSource's from an AXIS handler for our web services, not struts-config.xml, but the same properties should work) datasource name=peregrine type =com.microsoft.jdbcx.sqlserver.SQLServerDataSource serverNameXXX/serverName databaseNamePeregrine/databaseName portNumber1433/portNumber loginTimeout60/loginTimeout userXXX/user passwordXXX/password /datasource Also, if you need to connect to the same database across multiple web apps, you want to look into using JNDI instead of the struts-config.xml file. HTH, Ian Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] tosys.com cc: Subject: microsoft sqlserver driver struts 02/27/2004 05:34 AM Please respond to Struts Users Mailing List Hi, I am trying to use microsoft's jdbc driver with my struts application, but to no avail. Here is my datasource definition: data-source key=DB type=org.apache.commons.dbcp.BasicDataSource set-property property=description value=My SqlServer pool/ set-property property=driverClassName value =com.microsoft.jdbc.sqlserver.SQLServerDriver/ set-property property=url value =jdbc:microsoft:sqlserver://SERVERNAME:1433;DatabaseName=DBNAME/ set-property property=username value=xxx/ set-property property=password value=xxx/ set-property property=maxActive value=20/ set-property property=maxCount value=20/ set-property property=minCount value=2/ set-property property=maxWait value=5000/ set-property property=defaultAutoCommit value=false/ set-property property=defaultReadOnly value=false/ /data-source I have the required jars located in the WEB-INF/lib of my application which is running on Tomcat 4.1.29. When i try to connect to the database using this driver from a test class, it connects no problem so i know that the url and driver class name are correct. So the problem must be the type of DataSource which I am to use. Does anybody know which datasource to use with Microsoft's sqlserver driver? I tried using the DataSource that is in the mssqlserver jar but this didnt work either. The error that I get is an Invalid DataSource. Any help would be really appreciated! Thanks Claire This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: microsoft sqlserver driver struts
Hey Claire, I feel your pain! I have had to deal with just this sort of situation migrating a database from DB2 to Oracle. I have encountered it across multiple platforms and databases (Windows, Linux, AIX; SQL Server, Oracle, DB2). It is definately NOT specific to SQL Server. The behaviour we are experiencing is due to the way RDBMS's are laid out. Each table is contained within a larger container (sometimes called a schema, sometimes called a catalog). You can directly access tables within your own {schema|catalog} (normally the same as your username). For others, you need to prepend the {schema|catalog} name, as you have found out. I have not found a particularly good way around this that is portable even to just the databases we use internally. The JDBC DataSource for DB2 8.x supports a 'currentSchema' property, but it doesn't work with DB2 7.x. There is a setCatalog() method in the java.sql.Connection interface, but I haven't been able to get it to work with any of the databases we have on hand. One possible approach might involve using some sort of persistence mechanism such as Container-Managed Persistence (CMP) Entity EJB's, JDO or Hibernate. You will still have to hardcode the {schema|catalog}, but by seperating the SQL from the Java source, it should minimize the impact of moving to a different {catalog|schema}. HTH, Ian Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] tosys.com cc: Subject: Re: microsoft sqlserver driver struts 02/27/2004 10:46 AM Please respond to Struts Users Mailing List ok i've manager to connect to the datasource! What I did was to move my jars into common/lib. Now I have another problem though. For some reason this driver does not like my queries - more specifically it does not like table names used on their own but only likes them when the database name and database user is inserted before it like 'dbname.dbo.user_table'. Why is this? I cannot change all my queries (and there are alot of them) so that they have this prefix as it will cause many problems if the application has to be ported to another database. Is this an SQL Server database setting, or something to do with the driver itself? I know I'm getting off the struts issue now but any help would be great! :) - Original Message - From: Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 27, 2004 3:19 PM Subject: Re: microsoft sqlserver driver struts Ian, This is the way I tried first as it seemed most logical to use the SQLServerDataSource type from the mssqlserver.jar but this doesnt work for me. The only one that made some progress was the com.microsoft.jdbcx.base.BaseDataSource but then this threw some strange error which said: java.lang.NoClassDefFoundError: com/merant/jdbcspy/SpyLogger at com.microsoft.jdbcx.base.BaseDataSource.setLogWriter(Unknown Source) I've had a look into this but I don't see why this error should be occuring. Maybe there's something wrong I have done with where I've put the jars.. I have three jars: mssqlserver.jar, msbase.jar and msutil.jar. the last two look to be pretty similiar with regards to what they contain. I was wondering whether this could be causing conflicts or something. As I said, i can connect fine to the datasource from a test class but going via struts is causing this Invalid DataSource problem. Claire - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 27, 2004 3:02 PM Subject: Re: microsoft sqlserver driver struts Hi Claire, We are successfully connecting to a Microsoft SQL Server 2000 using the type 4 JDBC drivers. However, we do not use DBCP, but rather the
RE: Submit button does nothing
html:form ... / is a valid tag, so WSAD won't complain. It's just not what you want. Kind of like how a spell checker won't complain if you mis-use to, too and two... Ian RALPH ROPER [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] .com.au cc: Subject: RE: Submit button does nothing 02/25/2004 04:48 PM Please respond to Struts Users Mailing List Neil, thanks so much. I was obviously too close to the problem. Normally WSAD complains about malformed tags but for some reason it didn't in this case. Ralph -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 February 2004 8:37 PM To: Struts Users Mailing List Subject: Re: Submit button does nothing You have a '/' at the end of your openning html:form tag Try... html:form action=/enquiry/email.do Instead of... html:form action=/enquiry/email.do/ Niall - Original Message - From: RALPH ROPER [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 6:16 AM Subject: Submit button does nothing hi, I have almost completed an application using Struts 1.1 and Websphere Studio 5.1.x. Everything has worked to date until I try to pop open a new window and click on Submit. The pop-up window is populating fine (I have one email address field) but when I click on Submit absolutely nothing happens. No errors are displayed in the console and I cannot find any other logs to assist me. I have changed the Submit button to a href which then calls my action but does not remember my form bean properties. Aaaargh! Here is my show_email.jsp that gets shown in the pop-up window. html:form action=/enquiry/email.do/ html:text name=EmailForm property=emailAddress size=35/br/ div align=rightp/p a href=# class=button1 onClick=window.close();Cancel/a !-- html:link href=../enquiry/email.do styleClass=button1Submit link/html:link -- html:link action=/enquiry/email.do styleClass=button1Submit/html:link !-- html:submit styleClass=button1Submit/html:submit -- /div /html:form In struts-config.xml I have the following. form-bean name=EmailForm type=org.apache.struts.action.DynaActionForm form-property name=emailAddress type=java.lang.String / /form-bean action path=/enquiry/email type=com.cuscal.mmdd.action.cuenquiry.EmailAction name=EmailForm scope=request forward name=success path=com/cuscal/mmdd/jsp/cu_enquiry/email.jsp / /action action path=/enquiry/showEmail type=com.cuscal.mmdd.action.cuenquiry.ShowEmailAction name=EmailForm scope=request forward name=success path=com/cuscal/mmdd/jsp/cu_enquiry/show_email.jsp / /action Any assistance much appreciated. regards, Ralph Roper Business Technology Services (BTS) Credit Union Services 02 8299 9388 NOTICE The information in this email and or any of the attachments may contain; a. Confidential information of Credit Union Services Corporation (Australia) Limited (CUSCAL) or third parties; and or b. Legally privileged information of CUSCAL or third parties; and or c. Copyright material of CUSCAL or third parties. If you are not an authorised recipient of this email, please contact CUSCAL immediately by return email or by telephone on 61-2-8299 9000 and delete the email from your system. We do not accept any liability in connection with computer virus, data corruption, interruption or any damage generally as a result of transmission of this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and XSL ?
I believe the point Kris was trying to make is that, in addition to using JSP to dynamically generate HTML, you can also use JSP to dynamically generate your XSLT stylesheets. This functionality is seperate from JSTL (though you should be able to use at least a subset of the Struts tag libraries). Ian Andrew Bate [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] erco.comcc: Subject: RE: Struts and XSL ? 02/09/2004 09:33 AM Please respond to Struts Users Mailing List Kris, Kris Schneider [mailto:[EMAIL PROTECTED] I don't have a particular framework or extension to recommend, but I will add that XSLT and JSP can happily be used *together*. JSP is not just HTML. We're stuck on J2EE 1.2 using PowerTier - I believe JSTL requires a 1.3 container. This e-mail and any attachments may contain confidential and/or privileged material; it is for the intended addressee(s) only. If you are not a named addressee, you must not use, retain or disclose such information. Serco cannot guarantee that the e-mail or any attachments are free from viruses. The views expressed in this e-mail are those of the originator and do not necessarily represent the views of Serco. Nothing in this e-mail shall bind Serco in any contract or obligation. Serco Group plc. Registered in England and Wales. No: 2048608 Registered Office: Serco House, 16 Bartley Wood Business Park, Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]CVS client
Well, better is a relative term, but another client you may want to look into for Windows is Tortoise CVS (http://www.tortoisecvs.org), which incorporates CVS functionality into the Windows Explorer shell. HTH, Ian Ramadoss ChinnakuzhandaiTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ister.com Subject: [OT]CVS client 02/03/2004 03:17 PM Please respond to Struts Users Mailing List Hi, can anybody suggest me any better CVS client other than WinCVS and JCVS? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP + DataSource
LDAP, as the name implies, is a Directory Access Protocol. As such, you cannot use JDBC to establish connections. However, java does provide an analagous interface for accessing Naming and Directory Services (LDAP, DNS, etc) known as the Java Naming and Directory Interface (JNDI). A good starting point to learn more about JNDI is 'Developing a White Pages Service with LDAP and JNDI' by Budi Kurniawan (http://www.onjava.com/pub/a/onjava/2001/05/21/jndi.html) HTH, Ian Oliver Thiel thiel.oliver@ To: [EMAIL PROTECTED] gmx.de cc: Subject: LDAP + DataSource 01/23/2004 07:55 AM Please respond to Struts Users Mailing List Hi all, Is it possible to set up a DataSource for LDAP? If yes how can I do this? And how do I retrieve a connection? Thanks Oliver This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT: Examples of HTML-based user interfaces?
If you're already certified w/ Netscape, testing on Mozilla or Konqueror is probably unnecessary, as they (along with Galeon, Gnome's web browser) all use the same rendering engine. Ian Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] su.edu cc: Subject: RE: OT: Examples of HTML-based user interfaces? 12/19/2003 09:36 AM Please respond to Struts Users Mailing List From: Andrew Hill [mailto:[EMAIL PROTECTED] Still, if you are in a position to limit your audience (such as with intranet apps) to just the more common modern browsers (IE5+, Mozilla) there is indeed a lot you can do with DHTML. I should have said that up front-- it is intranet and we can (and do) refuse to support browsers which won't play nicely. All I officially have to support is a reasonably recent IE Netscape. And they can't disable javascript, or they won't get very far. :) I don't go out of my way to break stuff on other browsers (and I test from home on Mozilla/Konqueror) but if it gets to be too much trouble, I don't have to mess with it. Thanks for the tips! -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URGENT - Help defending Struts
http://www.paymentech.com Also, IBM uses Struts for the WebSphere Admin Console HTH, Ian [EMAIL PROTECTED] enture.comTo: [EMAIL PROTECTED] cc: 12/18/2003 10:48 AM Subject: URGENT - Help defending Struts Please respond to Struts Users Mailing List All: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. The issue is that the CIO is looking for sites that may be similar to ours that are using Struts already. Thanks very much, Russell [EMAIL PROTECTED] 310-426-5587 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Numeric Overflow
What is the compile time error you're seeing? Ian Raj Yadav [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: [OT] Numeric Overflow 12/18/2003 11:48 AM Please respond to Struts Users Mailing List Hi All, I have a SQL query which give me sum from a Number column. The number is huge. It is 44515445719. I use rs.getInt(1) and it gives me Numeric Overflow Exception at Run time. I tried to use rs.getLong and rs.getDouble and they both give me compile time error. Can some one please help as to what can be used here. Thanks, -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Numeric Overflow
Makes sense. I'm guessing you have something like: int num = rs.getDouble(1); From your earlier e-mail, it looks like num is actually a long (i.e., it is a whole number that will not fit into Java's 32-bit int). Try this instead: long num = rs.getLong(1); HTH, Ian Raj Yadav [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: [OT] Numeric Overflow 12/18/2003 11:58 AM Please respond to Struts Users Mailing List Found Double Required int -raj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:56 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Numeric Overflow What is the compile time error you're seeing? Ian Raj Yadav [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: [OT] Numeric Overflow 12/18/2003 11:48 AM Please respond to Struts Users Mailing List Hi All, I have a SQL query which give me sum from a Number column. The number is huge. It is 44515445719. I use rs.getInt(1) and it gives me Numeric Overflow Exception at Run time. I tried to use rs.getLong and rs.getDouble and they both give me compile time error. Can some one please help as to what can be used here. Thanks, -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: designing simple scheduler
This probably goes without saying, but in addition to being UI agnostic, your business logic should also be datastore agnostic. To be truly abstract, it should be as easy to move your backend from RDBMS to LDAP or XML as it is to move the UI from Web to GUI to Console. Ian Turansky, Mark [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] rm.com cc: Subject: RE: designing simple scheduler 12/08/2003 11:05 AM Please respond to Struts Users Mailing List Online is just the icing. Right! The business logic of the application should be UI agnostic. The logic shouldn't know if it was invoked from a console application, a Swing gui app, or a web (Struts!) application. The business logic is (or should be) the same. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Monday, December 08, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Re: designing simple scheduler No, no that is not what we are saying. Just call the beans from your UI. In this case your UI is console. Same bean that you allready tested. Struts is the fastest way to develop that I know (15 years of IT for me) So your console app check the JavaMail and saves it or send it from db. Same beans and DB struts uses. So any mail shows up online. Batch/async is bread and butter of DP. Online is just the icing. .V Voinea, Marina wrote: yes, calling APP layer API (beans) from the UI is OK. I was thinking if it is possible the other way around : to somehow inform the UI that soemthing happened on the backend and it has to display a message accordingly. (kind of polling from UI to back end). The APP layer bean triggering an event in UI application. Coud this be done? - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ibm ws portal V5 Struts Integration
According to our contacts, WebSphere 5.1 (scheduled to be released 12/19) will offer full server-side support for J2EE 1.4. Not sure if 5.0.2 supports J2EE 1.3 or not. HTH, Ian Olaf Kittelmann [EMAIL PROTECTED]To: [EMAIL PROTECTED] eamwork.de cc: Subject: ibm ws portal V5 Struts Integration 12/05/2003 09:10 AM Please respond to Struts Users Mailing List Hi, has anyone tried the struts integration with portal V5? the strutsportal folder under dev contains a StrutsBlank.war that is a J2EE 1.2 webApp. If I want to use the StrutsPortlet with 1.3-features like ejb2.0, what do I have to do? regards, Olaf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HAPPY DIWALI!
Dirty foreigners, stealin' our God-given jobs!! Best round up the boys. Now where did I put that cross? Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Mark Galbreath [EMAIL PROTECTED] on 10/23/2003 08:11:58 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: HAPPY DIWALI! My point, exactly. Poor, starving Haitians clinging to rafts can be turned back, but anybody from India can get an H1B visa, displacing millions of jobs from indigenous Americans, dragging down market labor rates and causing 7 percent unemployment in our industry. Now we are expected to translate Hindu on struts-user? Happy Diwali my ass -Original Message- From: Vic Cekvenic [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 6:59 PM To: [EMAIL PROTECTED] Subject: Re: HAPPY DIWALI! http://www.newsforge.com/business/03/10/20/194207.shtml?tid=85 Prasenjit Narwade wrote: Shub Deepawali For those who do not understand Hindi language try to find the meaning of those words. Warm Regards, Prasenjit - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 4:05 AM Subject: RE: HAPPY DIWALI! Happy Deepavali mate! :-) -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 October 2003 18:50 To: Struts Users Mailing List; Abhijeet Mahalkar Subject: HAPPY DIWALI! Aapko Naye Saal me... Chandragupt Ki Shakti Meerabai Ki Bhakti Ramchandra Ka Gyan Karan Ka Daan Einstein Ki Buddhi Nobel Prize Ki Siddhi Gandhi Ki Ahimsa India Ki Parampara Vajpayee Ki Maryada Nizaam Ki Sampada Michael Jordan Ki Salary Abdul Kalam Ki Vocabulary Bhagat Singh Ka Deshprem Sweetheart Ka Amarprem Microsoft Ke Share Rupiyo Ke Dher Tata Ke Senses Ambani Ke Licenses Birla Ka Bangla Daler Ka Bhangra Amitabh Ki Style Madhuri Ki Smile Shahrukh Ki Personality Aishwarya Ki Popularity Worldtour Ka Ticket Tendulkar Ka Wicket Administrator Ke Passwords Jokes Ke Forwards Mercedez Ki Car Diamond Ka Haar Aur Logon Ka Dher Saraa Pyar Prapt Ho... Wish you a Happy Diwali and a Prosperous New Year Regards Abhijeet Mahalkar - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HAPPY DIWALI!
Blasphemor! Everyone knows real men drink stout! Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Adam Hardy [EMAIL PROTECTED] on 10/22/2003 09:39:00 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: HAPPY DIWALI! What about people in Germany? There is no lite beer here! On 10/22/2003 02:49 PM Jeff Kyser wrote: yeah, but only *light* beer. :) On Wednesday, October 22, 2003, at 07:44 AM, Mark Galbreath wrote: Huh? You mean Diwali is just another excuse to drink beer??? Happy Diwali, everyone! yeehaw! -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 8:16 AM Oh bah humbug to you too. Do be assured that I wont be thinking of you while I enjoy a public holiday and you sweat away at work. Nyah :-P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Off Topic: A suitable JVM could not be found
Actually, providing technical support for open source products at a fee is a very common business model. Cygwin built its entire business around it. Companies such as RedHat, Mandrake and Progeny have similiar business models. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Martin Gainty [EMAIL PROTECTED] on 10/21/2003 01:37:22 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Off Topic: A suitable JVM could not be found Steve- Thanks for the quick response. I found that you can obtain the IBM JDK,JRE by downloading IBM WebServices If IBM could state how their JDK,JRE is compatible with other environments (Ant specifically) then I would be more willing to replace the JAVA_HOME IBM like Microsoft doesnt offer any support unless you're willing to pay them. which to my way of thinking runs counter for the justifications of open source Thanks again, Martin Gainty - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 20, 2003 6:54 PM Subject: RE: Off Topic: A suitable JVM could not be found I can't find the details right now, but I have a vague recollection that the IBM JDK includes an RMI-IIOP implementation that is a requirement for Websphere. So you won't be able to switch to a non-IBM JDK. If you're running just about anything except Windows, you may be able to use an updated IBM JDK (http://www-106.ibm.com/developerworks/java/jdk/). IBM has not separately released its 1.4 version for Windows, though it is available bundled with products like MQ Series (sorry, Websphere MQ - marketing dept strikes again). I don't have any information on whether it's *advisable* to change the JDK on Websphere, since it doesn't seem to be supported. Personally, I wouldn't risk it in a production environment. Steve -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: October 20, 2003 8:00 PM To: [EMAIL PROTECTED] Subject: Off Topic: A suitable JVM could not be found Way off topic but I'm stumped Websphere 5 When attempting to do run any Java Process from Websphere I get A suitable JVM could not be found I know Websphere likes to install their own IBM JDK1.31 but I want to retain my SUN JDK 1.41 for obvious reasons Has anyone seen this and know of a workaround? Thanks, -M - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Off Topic: A suitable JVM could not be found
My bad. I meant Cygnus, not Cygwin. See http://redhat.com/software/gnupro/ As far as I can tell, there is no e-mail address you can send support questions to. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Martin Gainty [EMAIL PROTECTED] on 10/21/2003 01:49:45 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Off Topic: A suitable JVM could not be found Send an email to [EMAIL PROTECTED] and you will get 12 solutions to your Cygwin problem -Martin *In my next life I want to be Indian* - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 8:47 AM Subject: Re: Off Topic: A suitable JVM could not be found Actually, providing technical support for open source products at a fee is a very common business model. Cygwin built its entire business around it. Companies such as RedHat, Mandrake and Progeny have similiar business models. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Martin Gainty [EMAIL PROTECTED] on 10/21/2003 01:37:22 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Off Topic: A suitable JVM could not be found Steve- Thanks for the quick response. I found that you can obtain the IBM JDK,JRE by downloading IBM WebServices If IBM could state how their JDK,JRE is compatible with other environments (Ant specifically) then I would be more willing to replace the JAVA_HOME IBM like Microsoft doesnt offer any support unless you're willing to pay them. which to my way of thinking runs counter for the justifications of open source Thanks again, Martin Gainty - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 20, 2003 6:54 PM Subject: RE: Off Topic: A suitable JVM could not be found I can't find the details right now, but I have a vague recollection that the IBM JDK includes an RMI-IIOP implementation that is a requirement for Websphere. So you won't be able to switch to a non-IBM JDK. If you're running just about anything except Windows, you may be able to use an updated IBM JDK (http://www-106.ibm.com/developerworks/java/jdk/). IBM has not separately released its 1.4 version for Windows, though it is available bundled with products like MQ Series (sorry, Websphere MQ - marketing dept strikes again). I don't have any information on whether it's *advisable* to change the JDK on Websphere, since it doesn't seem to be supported. Personally, I wouldn't risk it in a production environment. Steve -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: October 20, 2003 8:00 PM To: [EMAIL PROTECTED] Subject: Off Topic: A suitable JVM could not be found Way off topic but I'm stumped Websphere 5 When attempting to do run any Java Process from Websphere I get A suitable JVM could not be found I know Websphere likes to install their own IBM JDK1.31 but I want to retain my SUN JDK 1.41 for obvious reasons Has anyone seen this and know of a workaround? Thanks, -M - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained
Re: Ressource editor
If you have access to a Perl installation, there is method called escapeHTML in the CGI.pm module which will do what you want. There is also a simple regexp in the Perl FAQ (perldoc -q encoding), which may or may not work. If you want a Java solution, you may want to take a look at java.net.URLDecoder. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Benoît Segaert [EMAIL PROTECTED] on 10/21/2003 06:03:00 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Ressource editor I am looking for a tool able to convert the ressource files with accents in HTML code. I currently use Netbeans but It converts accents in unicode \u in place of HTML code. I need also to convert the file from HTML to readable files before send them to the client, responsible spelling check and translation. Benoit This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localization with Struts/Tiles and URLs
Switzerland is a very good example of this. There are four different languages spoken there (French, German, Italian, and a local language whose name escapes me) and the prevelant language varies from kanton to kanton. Even here in the US, there is an increasing number of communities where Spanish is as prevalent as English. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Craig R. McClanahan [EMAIL PROTECTED] on 10/20/2003 12:34:05 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Localization with Struts/Tiles and URLs Ruth, Brice wrote: [snip] On the first point, our site will have a global landing page that will present the user with flags to choose their locale. This is semi-offtopic, but might be of interest. When I worked on a large scale multi-lingual app in Europe a few years ago, my intent was to do exactly this (but with a tweak -- the landing page language was determined by the browser's default language setting). However, I was informed by more than a few Europeans that using flags for language choice was not being culturally sensitive -- if I'm a French-speaking person living in Belgium or Switzerland, it's going to irritate me greatly to have to click the flag of France -- and it's not a 1:1 relationship for any multilingual country (as these two, among others, are). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.net.URL
As far as I can tell, there is no easy way to do this. In theory, you could provide your own URLStreamHandlerFactory, that sets an appropriate timeout on the underlying Socket, then pass it in to the URL constructor, but this would be a non-trivial solution. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 244-2564 Stefan Trcko [EMAIL PROTECTED] on 10/14/2003 06:02:49 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: java.net.URL Hello I'm using java.net.URL to get content from other web site. The problem is when this url address which I want to open (openConnection ()) is very slow. When this happens I want that some kind of time out exception is thrown (and the content of this other web site on my site is not shown). How to check that the url cannot be open in for example 2 seconds (and after this 2 second throw an time out exception) Regards Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: user local confusion
I suspect Tomcat get's the default locale from the Java runtime, which in turn gets it from the operating system it is running on (e.g., on UNIX set LANG=fr (or whatever)). HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 08:22:04 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: user local confusion hi all, I apologize in advance to ask this question that may look off topic. I have a problem with the Local parameter. I'm using tomcat 4.1.18 and I would like to know where to set the container default locale value. i know this question should be asked to tomcat users. But I have no answer ... if someone knows. thanks in advance Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: user local confusion
In your tomcat4.conf (I'm assuming Linux here), ensure that the line LANG=en_US is commented out. It's near the bottom of the conf file, right after TOMCAT_USER. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 10:17:13 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Réf. : Re: user local confusion that's what we did. and when try to retrieve the user's prefered local by calling Locale preferredLocale = request.getLocale(); I get fr while the container's(given by servletContainerLocale = Locale.getDefault ();) default locale is in us. why is there a diff beetween the default user and the container locale. can someone tells me where i could change this. any help would be greetly apreciated. Meissa [EMAIL PROTECTED] 28/08/2003 14:43 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: user local confusion I suspect Tomcat get's the default locale from the Java runtime, which in turn gets it from the operating system it is running on (e.g., on UNIX set LANG=fr (or whatever)). HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 08:22:04 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: user local confusion hi all, I apologize in advance to ask this question that may look off topic. I have a problem with the Local parameter. I'm using tomcat 4.1.18 and I would like to know where to set the container default locale value. i know this question should be asked to tomcat users. But I have no answer ... if someone knows. thanks in advance Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: Réf. : Re: user local confusion
If you look in /etc/tomcat4 you'll see a tomcat4.conf file that contains various environment settings. This file gets sourced by /etc/init.d/tomcat4, which is used to start Tomcat (at least on Redhat). I can send you copies of tomcat4 and tomcat4.conf if you like. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 10:48:15 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Réf. : Re: Réf. : Re: user local confusion Ian, I suppose you mean the server.xml file. I don't have any tomcat4.conf file. I'm using tomcat 4.1.18. Meissa [EMAIL PROTECTED] 28/08/2003 16:32 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: Réf. : Re: user local confusion In your tomcat4.conf (I'm assuming Linux here), ensure that the line LANG=en_US is commented out. It's near the bottom of the conf file, right after TOMCAT_USER. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 10:17:13 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Réf. : Re: user local confusion that's what we did. and when try to retrieve the user's prefered local by calling Locale preferredLocale = request.getLocale(); I get fr while the container's(given by servletContainerLocale = Locale.getDefault ();) default locale is in us. why is there a diff beetween the default user and the container locale. can someone tells me where i could change this. any help would be greetly apreciated. Meissa [EMAIL PROTECTED] 28/08/2003 14:43 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: user local confusion I suspect Tomcat get's the default locale from the Java runtime, which in turn gets it from the operating system it is running on (e.g., on UNIX set LANG=fr (or whatever)). HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/28/2003 08:22:04 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: user local confusion hi all, I apologize in advance to ask this question that may look off topic. I have a problem with the Local parameter. I'm using tomcat 4.1.18 and I would like to know where to set the container default locale value. i know this question should be asked to tomcat users. But I have no answer ... if someone knows. thanks in advance Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not
Re: UML
Instead of using a class diagram (as you mentioned, the session scoped object is not really a property of the class), you might want to consider using Use Case to describe the processing by the Action. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Travis Stevens [EMAIL PROTECTED] on 08/26/2003 11:31:14 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: UML I am trying to represent, in a UML class diagram, a certain architecture. How would one represent an object, that is placed into session scope.? The object is used by Action clasess. I kinda want to use the composition relation, but the object really isn't a property of the object itself. -Trav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts beans - serializable?
I don't know about all javabeans (though it wouldn't surprise me), but in order to store the bean within an HTTP session, it needs to implement java.io.Serializable. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 [EMAIL PROTECTED] on 08/26/2003 03:36:07 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: struts beans - serializable? I'm developing in struts for the first time. I query a database and put the data into a bean, then post it to the session. The jsp's then retrieve the ArrayList of beans and present it. All of this is working, but upon looking at the logs I see 2003-08-26 09:10:06 StandardManager[/cams] IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: Beans.orgVO java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: Beans.orgVO at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593) are all beans supposed to implement the serializable interface? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: browse for a directory
The browse functionailty is actually implemented by the browser. There for browsing behaviour will be browser (and probably platform) specific. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Kelly Clauson [EMAIL PROTECTED] on 08/14/2003 10:06:12 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: browse for a directory I'd like to let users write a collection of files to the directory of their choosing. Is there a form tag that allows browsing for a directory? The html:file tag lets you browse to a file but not a directory. Thanks, Kelly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application Design Document
Object Call Hierarchy would probably be the approach I would use. It should be supported by most UML tools. Take a look at the EJB specification for an example of Object Call Hierarchy. You may also want to provide a flowchart to document logic chains. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Tarek M. Nabil [EMAIL PROTECTED] on 08/05/2003 10:06:52 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] cc: Subject: Application Design Document Hi everyone, I just finished developing a web application using Struts and our client is asking us to provide a design document for the application. I was wondering, if among the struts community, there's a certain template or even ideas for how such a document should look like and what it should include. I was especially thinking of a diagram that illustrates the actions and their relationship with the JSP's and the Model. Does such diagram exist? And if yes, are there tools to generate it? By the way, if there's nothing standard, then I would certainly appreciate any individual experiences. Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Best super-class for context handling.
getResourceAsStream() is an instance method of java.lang.Class, so as long as you stick with that, you're not tied to any particular deployment environment. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Andrew Hill [EMAIL PROTECTED] on 07/30/2003 10:49:19 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: [OT] Best super-class for context handling. snip InputStream is = servlet.getServletContext().getResourceAsStream(/WEB-INF/dir/file.x); /snip Thats fine if your in an action, but down in your business classes you dont want to be dependant on the servlet api classes. Obviously the trick is to have some kind of interface (which in my apps I usually name IStreamSource) that will provide a stream when passed some kind of url (or even more abstract key mapped to a url internally) and will allow the other classes to be independent of whatever environment they are in (as one would have different implementations for different environments) when it comes to reading files. (The servlet version would simply wrap a call to getResourceAsStream on its reference to the servlet context) One thing Im not sure about is whether it is ok to hang onto a reference to the servlet context in this streamsource object (so that it can be shared between requests and not have to be passed in method parameters all over the place). I dont think that would work too well in a distributed environment right? So we need to provide a new streamsource instance for each request and pass it to any class that needs it or that might feel like calling some other class that might need it (ad infinitum)... (?) It would be nicer for the classes that need an IStreamSource instance to be able to get them from somewhere themselves, but how to achieve this without exposing the servlet api stuff to them? What is the best practice here? -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, 31 July 2003 00:34 To: Struts Users Mailing List Subject: Re: [OT] Best super-class for context handling. On Wed, 30 Jul 2003, Simon Kelly wrote: Date: Wed, 30 Jul 2003 15:47:55 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] Best super-class for context handling. Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Assuming you're in an Action, do this: InputStream is = servlet.getServletContext().getResourceAsStream(/WEB-INF/dir/file.x); It will be portable everywhere, even if you end up running on containers that don't expand your webapp into an unpacked directory -- in those environments, getRealPath() will return null. Cheers Simon Craig - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Visual HTML editors with Struts
I assume by 'visual HTML tool' you're referring to a WYSIWYG editor. In that case, any editor that supports JSP should work just fine. I don't use the abominations personally, so can't recommend one. As far as using struts w/o the custom tags, it's certainly doable, but hampering your development efforts in order to fit the idiosyncracies of your editor seems kinda ack basswards to me... Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Mike DiChiappari [EMAIL PROTECTED] on 07/30/2003 08:17:24 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Visual HTML editors with Struts Looking through the mail archives, this seems to have been an active subject. We are looking at using Struts. We'd like to take advantage of the separation of business logic and presentation. However, our designers would like to continue using their visual HTML tools - particularly Adobe GoLive. Has anyone had any success recently in having Struts work with any visual tools - at least to the point where the tool doesn't blow up when encountering custom tags? Also, what about the idea of not using tag libraries? Can Struts be used without tag libraries - at least the visual tools would continue to work. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
Ok. I think I see what you're trying to do. One approach would be to specify a configuration class that can be passed to the business object(s). Then within your Action class, use Struts/Servlet specific methods to construct the configuration object from your files (if you use XML to specify the configuration, Commons-Digester will greatly simplify this process). Then, if you decide to move to a different deployment environment (such as a local command-line driven environment) all you have to do is provide a new class to build the configuration object. No need to change the business object(s) at all. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 09:47:55 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Cheers Simon - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:16 PM Subject: Re: [OT] Best super-class for context handling. Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including
Re: submit a form with html:link
OnClick is an arbitrary string that is evaluated by the scripting engine, not a URL. try replacing onclick=javascript:'document.forms[0].submit();return false;' with onclick=document.forms[0].submit(); return false HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Faisal Shoukat [EMAIL PROTECTED] on 07/29/2003 07:34:32 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: submit a form with html:link Hi, I am trying to submit a form by using a link. I have looked through the emails already on this and am using the following code from a previous mail: html:link href= onclick=javascript:'document.forms[0].submit();return false;'Login/html:link however when I click on the link nothing happens? Does anybody know why? Thanks in Advance Faisal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Actions with specific paths
How about: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-valueWEB-INF/struts-config.xml/param-value /init-param /servlet servlet servlet-namecontrolAction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-valueWEB-INF/control-config.xml/param-value /init-param /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping servlet-mapping servlet-namecontrolAction/servlet-name url-patterncontrol/*.do/url-pattern /servlet-mapping Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 David Erickson [EMAIL PROTECTED] on 07/25/2003 01:43:26 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Mailing List [EMAIL PROTECTED] cc: Subject: Using Actions with specific paths Hi I have been having a very difficult time implementing this, basically what I'd like to do is have Struts match some actions based on the path they are executed from, but I am not sure how to setup the web.xml for that nor the struts-config.xml. Example I'd like: /mywebapp/navigate.do runs a different action class than /mywebapp/control/navigate.do And I am confused at how to setup the struts config to match the /control part, and how exactly I need to setup the web.xml to map everything to struts thats *.do. Right now in web.xml it looks like: servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping But I'm thinking that if I also add /control/*.do that the struts config would match navigate from either path to the same class?? I don't know if i explained myself clearly.. but any help would be greatly appreciated. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] EJB LIKE A TRIGGER
Seems to me it would make more sense to move your business logic to Struts (e.g., ActionForm.validate() and/or Action.permform()/execute()) before writing to the database then to hit your database every few seconds looking for changes Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 NYIMI Jose (BMB) [EMAIL PROTECTED] on 06/16/2003 09:59:22 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] EJB LIKE A TRIGGER Hello, I' moving my code from Perl to Java/J2EE. The goal is to integrate 2 systems, to be short the business is mainly to transfert any update, insert, delete from sytemA to systemB. Those 2 sytems use Oracle database. The requirement doesn't allow me to create any trigger on Oracle databases. I there a way to go for an EJB solution that will act like a trigger ? The business of this EJB will be : every x seconds (configurable) check changes from a given table (or view) et return the list of rows that have been updated, inserted or deleted. Do i need to re-invite the wheel or is this something that the container can handle itself ? (i'm thinking about ejbload() method of an entity bean) === José Nyimi Mbambi IT Analyst http://www.proximus.be DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:reset and DynaValidatorForm / LookupDispatchAction
However, clicking an html:cancel/ button does call the reset() method. Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Karr, David [EMAIL PROTECTED] on 06/16/2003 04:31:39 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: html:reset and DynaValidatorForm / LookupDispatchAction Uh, no, they really do have nothing to do with each other. The reset tag is used entirely on the client side. The reset method is used on the server side, just before populating the ActionForm from request parameters. Clicking the reset button does not call the reset method. -Original Message- From: Gregory F. March [mailto:[EMAIL PROTECTED] On Jun 16, 2003, Gemes Tibor [EMAIL PROTECTED] wrote: |2003-06-16, h keltezéssel Gregory F. March ezt írta: | | Ok, and since the DynaValidatorForm's reset doesn't do anything, this | tag is meaningless in this case. Ug. | |The reset method of a form, and the input type=reset |has nothing to do w/ each other at all. They have the same name, and |nothing else. I understand that, but in this case, the input type=reset will call the DynaValidatorForm's reset() method which, according to the javadoc, doesn't do anything. That's what I meant by the html:reset tag being meaningless in this case, e.g. it's a no-op. Perhaps my choice of words was not optimal... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT FRIDAY: Take a break with struts users
They leave telnet open but block ssh? Who do you work for?! Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 James Mitchell [EMAIL PROTECTED] on 06/13/2003 11:36:21 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: OT FRIDAY: Take a break with struts users They also block ssh, therefore I cannot access cvs.apache.org while at work (unless I tunnel home first on a port-forwarded connection). Talk about a pain in my ass. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:32 AM Subject: Re: OT FRIDAY: Take a break with struts users No can do. I'm so far removed from the network operations group here, that I don't even know who they are. They block every available port except web, ftp, and telnet. It demonstrates an extra special form of incompetence when 2 of 3 open ports are completely insecure protocols. David I used to be able to use gotomypc.com from home, which uses default port 80 and http to communicate, so that I was able to work from home on occasion. Suddenly about 3 weeks ago, it stopped working. Apparently they added both the web site and poll server to their blocked list (probably because of me) so now I guess I'm just screwed. It's times like this when I hate this fu##king place!!! Micro-manage the SH## out of everyone. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - 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] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT FRIDAY: Take a break with struts users
At least a couple of years ago (the last time I had a need to use AIM) you could also setup an AIM-specific account (there is no charge), although the account name cannot conflict with an existing AOL screen name. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Mark Galbreath [EMAIL PROTECTED] on 06/13/2003 12:56:54 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: OT FRIDAY: Take a break with struts users It has to be an existing AOL account, I think. Nothing worked for me until I used my (ashamed to say) AOL userid and password. For IRC, any non-used nick will suffice. Then click the online checkbox in the account editor. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:20 PM To: [EMAIL PROTECTED] Subject: Re: OT FRIDAY: Take a break with struts users I downloaded Gaim for windows, how do I create an account? Mark Galbreath wrote: heh heh - we now have a struts group going on AIM if anyone cares to join. -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:15 AM To: Struts Users Mailing List Subject: Re: OT FRIDAY: Take a break with struts users So it's taken you 6 months to make figures of 6 out of the seven dwafts! Man, are they life size figures?? - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:58 PM Subject: RE: OT FRIDAY: Take a break with struts users I feel your pain, man! I won't tell you that I've been working from home for the past 6 months making 6 figures, then. ;-) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:39 AM To: Struts Users Mailing List Subject: Re: OT FRIDAY: Take a break with struts users - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:34 AM Subject: RE: OT FRIDAY: Take a break with struts users Some people complained that Yahoo! and AIM were not compatible with Unix and Linux. Get special dispensation for port 6667 and claim it's indispensable for your work. We can even discuss LISP, if you want. ;-) No can do. I'm so far removed from the network operations group here, that I don't even know who they are. They block every available port except web, ftp, and telnet. I used to be able to use gotomypc.com from home, which uses default port 80 and http to communicate, so that I was able to work from home on occasion. Suddenly about 3 weeks ago, it stopped working. Apparently they added both the web site and poll server to their blocked list (probably because of me) so now I guess I'm just screwed. It's times like this when I hate this fu##king place!!! Micro-manage the SH## out of everyone. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - 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] -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced a href =baseBeans.comStruts Training/a and project recovery in North East. Open Source a href =baseBeans.comContent Management/a basicPortal sofware Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] IDE with easy tomcat upgrade?
Hi Barry, I use the Eclipse IDE (http://www.eclipse.org) in conjunction with EasyStruts (http://easystruts.sourceforge.net) and the Sysdeo Tomcat plugin (http://www.sysdeo.com/eclipse/tomcatPlugin.html) and it works pretty nicely. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Barry Volpe [EMAIL PROTECTED] on 06/13/2003 04:18:02 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] IDE with easy tomcat upgrade? Hi, Looking for an IDE that if it does not already have Tomcat 4.1 I can upgrade with little trouble. Although I have used Tomcat stand alone I have little experience with it in an IDE. Thanks, Barry This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MVC / Model 2 for Microsoft ???
The major selling point for me was the separation of the business logic from both the presentation and data layers, along with the extremely flexible configuration, via struts-config.xml. This allows me to have my Struts guru (myself for the time being) concentrate on the ActionForms, Actions, etc. while my web services guy (or LDAP guy or Database guy) concentrates on the backend, and my web designer (with negligible Java experience) can work his magic with the JSP, all more or less concurrently, giving us a time to market 2-3 times faster than the Microsofties. The fact that I can work at my Linux workstation while my web designer does his thing in Windows is pretty nice too... ;) Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Giampiero De Ciantis [EMAIL PROTECTED] on 06/13/2003 03:29:56 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: [OT] MVC / Model 2 for Microsoft ??? I don't think that the current ASP .NET model is too far off of the MVC path. Mostly I think that MVC isn't enforced, but the foundation is inherently there. If I had to do a mapping from struts to ASP .NET I would put things like this: .jsp -- .aspx ActionForm -- Code behind page of .aspx Action -- Code behind page of .aspx Model -- any .NET classes or Com objects that your Code behind page calls. Now, I now this isn't nearly as strict a decoupling as Struts makes, but (some of) the principles are still there. What can be seen as both an up-side and down-side about this is that an .aspx page is automatically paired with the code that can do the validation as well as the Actions that will be taken when you submit the form. Basically, everything that is declarative in Struts is programmatic in ASP .NET. I am sure we all have heard the pros/cons of both of those techniques. I like using ASP .NET for my personal stuff because I can roll out my code really quickly. But I think it would be hard to use it in an enterprise environment because it tends to make me write sloppy code. Struts is the opposite. Too much architecture for personal web-site stuff (which is becoming less of an issue as the versions roll on), but great for enterprise apps. -Gp -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: June 13, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: Re: [OT] MVC / Model 2 for Microsoft ??? But this makes complete sense, in a sick way. In a MS environment, portability probably isn't as big a concern, It's no concern at all because you have nothing to port to. and while there are certainly other reasons to use MVC, it strikes me that the biggest is to maintain abstractions between the various layers. If you're a MS shop, you probably have SQL server, ASP and IIS -- and MS has little interest in making it easy to change this. So why spend time building up a MVC framework if you know that you're pretty much married to certain technologies? I don't see any connection between MVC and vendor lock in. Even if you were an MS shop you still need layers to make the app. maintainable. David No thanks. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need all info. regd Tags in Struts..
If you go to the Struts welcome page (http://jakarta.apache.org/struts/doc-1.0.2 for the current stable release), on the left side of the page, about a third of the way down, you'll see links to documentation, including developer guides and taglib documentation. Also, you'll probably want to upgrade your Tomcat installation, as I beleive 3.3 is the earliest version supported by Struts. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Rajat Nayer [EMAIL PROTECTED] on 06/11/2003 08:11:08 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: need all info. regd Tags in Struts.. Hi, I have just started understanding Struts framework. The tutorial that i followed used some tag libs to do some html jobs (probably formatting - i dunno yet!!). Where can i get a complete list of Tags available in the Struts framework (and abt all the tld files that we keep in WEB-INF). Also, could you guide me to a tutorial which will help me use EJBs in a struts framework on Tomcat 3.2.4( i have this server currently). Will really appreciate the help by the list users to get me up and running with EJBs and Struts. Thanks Rajat __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Populating Drop-down
I don't know if it's a best practice or not, but what I do is have the link to the edit screen actually point to an action, which is responsible for initializing any related collections and storing them in session-scoped attributes. A related approach would be to use the logic:notPresent tag to check for the collections, and only initialize them when necessary. This has the advantage of dealing with issues such as session timeouts and users accessing the edit screen through other than 'official channels'. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Sinclair, Mark [EMAIL PROTECTED] on 06/10/2003 08:30:00 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Populating Drop-down I am a newbie to struts. This is a simple question and is not totally specific to Struts but is related to the best way to use struts. I am trying to find out what is the recommended approach for populate drop-downs, lists etc? For example say from a simple Logon page I forward to a Supplier List screen displaying all the current suppliers that are stored in the DB. Each supplier in turn is responsible for a certain department (field in department table in DB and departments stored in another DB table). In the supplier list I display the actual department name that they correspond to. Now from selected supplier on list if I go to an editSupplier.jsp I want to give the user the ability to pick a different department from populated list. My question is what is the best way to pass the list of departments to the View (editSupplier.jsp). Should my SupplierForm Bean contain a property eg departments that is an ArrayList or collection of departments in the DB then populate into view using the html:options tag? Or if Departments list is used in multiple screens should it be loaded into the session (/request) on logon (or whenever relevant) and use logic:iterate to populate the drop down. I may have a number of these types of drop-down lists, should I just prepopulate them into collections in my user session object? How do other people handle this? All examples I have seen just use hard-coded drop-down values in the jsp without retrieval from DB. Any help or pointers much appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing ApplicationResources.properties
Or you could just use: MessageResources bundle = this.getResources(); Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Kevin Robair [EMAIL PROTECTED] on 06/09/2003 09:53:29 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Accessing ApplicationResources.properties You can treat it as a ResourceBundle: String bundleName = com.mycompany.myapp.ApplicationResources; ResourceBundle bundle ResourceBundle.getBundle(bundleName, currentLocale); Leave out currentLocale if you want the default. A more consistent way is, if you have access to the Session MessageResources bundle = (MessageResources) request.getSession().getServletContext().getAttribute (org.apache.struts.action.MESSAGE); -Kevin --- Zoran Avtarovski [EMAIL PROTECTED] wrote: I have what is hopefully a simple question. I have a set a number of file system specific variables in my ApplicationResources.properties file to make it easier to deploy the application on different platforms. I can access Message Resources properties from Action classes using: MessageResources messages = getResources(request); String message = messages.getMessage(the.chosen.message); Outside an action class I'm having trouble instantiating the MessageResources. I can see that I need to use: MessageResources messages = MessageResources (x, y); But I don't know what arguments to pass as x and y Could somebody please email me a way to get this done in my helper classes. Thanks Zoran - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbiew Q: how to do redirect instead of forward
This is probably a silly question, but what's the difference between forward and redirect? Thanx, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Zhu He [EMAIL PROTECTED] on 06/05/2003 04:16:07 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: newbiew Q: how to do redirect instead of forward for forward we usually do execute() { ... return mapping.findForward(listing); } I tried to use redirect by execute() { ActionForward af = mapping.findForward(listing); af.setRedirect(true); return af; } but get exception javax.servlet.ServletException: Configuration is frozen at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:541) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:482) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbiew Q: how to do redirect instead of forward
Ok. So, from the user's perspective, when we do a redirect, they are sent to a different location. When we do a forward, they are not, even if the content changes? Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Brandon Goodin [EMAIL PROTECTED] on 06/05/2003 04:48:43 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: newbiew Q: how to do redirect instead of forward 1) You need to set your forward redirect=(true|false) in your struts-config.xml for that particular action mapping. 2) The difference... a) redirect generates a whole new request by sending a header back to the client you lose all of your request scope data. b) forward continues with the same request and arrives at the view with request object intact. RequestDispatcher vs response.redirect(); Brandon Goodin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:37 PM To: Struts Users Mailing List Subject: Re: newbiew Q: how to do redirect instead of forward This is probably a silly question, but what's the difference between forward and redirect? Thanx, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Zhu He [EMAIL PROTECTED] on 06/05/2003 04:16:07 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: newbiew Q: how to do redirect instead of forward for forward we usually do execute() { ... return mapping.findForward(listing); } I tried to use redirect by execute() { ActionForward af = mapping.findForward(listing); af.setRedirect(true); return af; } but get exception javax.servlet.ServletException: Configuration is frozen at org.apache.struts.action.RequestProcessor.processException(RequestProcessor. java:541) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:482) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parsing Problem
Have you tried moving the logic outside of the input element? Example: % String label = weiter; % logic:match name=user property=letzteFormularSiete value =Geraetemerkmale % label = speichern % /logic:match td colspan=2 align=right input type=submit value=%= label % /td HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Nadja Senoucci [EMAIL PROTECTED] on 06/06/2003 04:03:53 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Parsing Problem Hello everyone, I get an error and just can't find out what's wrong... I have attached my .jsp to this email. Whenever I call it, the button at the end gets parsed like this: td colspan=2 align=right input type=submit value=logic:match name=user property=letzteFormularSeite value=Geraetemerkmale speichern /logic:match logic:notMatch name=user property=letzteFormularSeite value=Geraetemerkmale weiter /logic:notMatch /td So it seems there is error in tag there. Funny thing is, I copied those logic tags there from another page where it works just fine. It also works when I take the logic tags away and just use one of the two messages. I am at a loss, have been staring at the code for a while, tried a few things out but just can't find the error... Can you help me, please? Greetings, Nadja - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]