extending nested tiles templates
Hi I'd like to be able to nest templates within other templates. I know it can be done but I'm not sure I can do it the way I'm trying to do it. AFAICT you have to add n tiles defs for each page you want to add where n is the depth of nesting within tiles. MasterLayout.jsp and FullHistoryBody.jsp both are templates and use tiles:insert. FullHistoryBody is a template for the 'body' section of the MasterLayout.jsp. What I'd like to do: definition name=pocweb.master path=/layout/MasterLayout.jsp put name=title value=OnePort master Layout / put name=header value=/layout/Header.jsp / put name=servnav value=/layout/ServiceNav.jsp / put name=navbar value=/layout/NavBar.jsp / put name=breadcrumb value=/layout/Breadcrumb.jsp / put name=body value=/layout/Body.jsp / put name=footer value=/layout/Footer.jsp / /definition definition name=pocweb.fullHistory extends=pocweb.master put name=body value=/layout/FullHistoryBody.jsp / /definition definition name=appointment.FullHistoryAppointmentJSP extends=pocweb.fullHistory put name=title value=Appointment Version History / put name=detail value=/pages/appointment/ViewAppointmentDetail.jsp / /definition this fails with FullHistoryBody.jsp complainging about not being able to locate the detail attribute. *** What I have to do to make it work: definition name=pocweb.master path=/layout/MasterLayout.jsp put name=title value=OnePort master Layout / put name=header value=/layout/Header.jsp / put name=servnav value=/layout/ServiceNav.jsp / put name=navbar value=/layout/NavBar.jsp / put name=breadcrumb value=/layout/Breadcrumb.jsp / put name=body value=/layout/Body.jsp / put name=footer value=/layout/Footer.jsp / /definition definition name=appointment.FullHistoryAppointmentJSP extends=pocweb.master put name=title value=Appointment Version History / put name=body value=appointment.FullHistoryAppointmentJSPbody / /definition definition name=appointment.FullHistoryAppointmentJSPbody path=/layout/FullHistoryBody.jsp put name=detail value=/pages/appointment/ViewAppointmentDetail.jsp / /definition The 'problem' with this is that I have to add two tiles defs to add a single page. with n levels of nesting I'd have to add n tiles defs per page. cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using split() method in java script
Ahh yes I see how this relates to struts... subscribe to a JS newsgroup google is your friend Chris -Original Message- From: Ramachandran [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 07:52 To: Struts Users Mailing List Subject: Problem using split() method in java script Hi, I am facing problem in java script, using spilt() methos. Here i want to split the strings using '\' this separator. Here it is separating the strings. Bu it is displayed in the zeroth index array. But i want to display in each index. But not Working. Any body having idea please maile me. This is my code. var where_is_mytool=home\mytool\mytool.cgi; var mytool_array=where_is_mytool.split(\\); alert(mytool_array[0]+ second +mytool_array[1]+ third +mytool_array[2]); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
overlapping cells in table with firebird
Hi, When displaying struts page in firebird or mozilla for the first time (increased load time due to jsp compilation) I got some strange effect: Some table's cells overllaps themself. Redisplaying the page using F5 corrects the problem. It's non-dynamical HTML with an external CSS. I'm curious to know if someone else got this problem before asking mozilla guru. Regards, Frederic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
On 15 Feb 2004, at 23:43, Michael McGrady wrote: You [Mark Lowe] said: Having additional fields that may not related to the given form I'd say at least would confuse a site builder who comes along and has to work out what's going on. For example a bunch of user details in a credit card form would (IMO) cause a whole bunch of problems in determining what the form is for. Simply taking the form and sticking in another webapp would be messier. So you have an address form for an order and you want to use this form in a profile edit view and during an order process. But the form could now have a bunch of hidden values in there and I'd certainly find this confusing if i was coming in cold to do the site build. I don't see how this related to internationalization. If you have a complex view which needs to be dynamic in nature, I am merely saying the solution is not to build a mammoth ActionForm and save it into session. That is a blunt instrument, in my opinion, that will do nothing but misuse space and cpu cycles. That also is, in my opinion, and in the opinion of many much more developed in this area than myself, somewhat contrary to the idea of using an MVC architecture as applied to the web environment. Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. And implementing an alternative persistence mechanism personally and perhaps more elegant. I cant help thinking however that HttpSession is there and at least during the development cycle should be used, if found to use too many resources then sure find a way optimizing it. But during the initial stages of development I'm not convinced that concern about cpu cycles and space is what one should be overly concerned with. i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. What you need, if you have a need for a dynamic form, i.e. one that needs to have hidden fields generated depending on which page you came from (and that is the hypothetical situation you asked us to address), then you need a dynamic form. You are merely assuming that the page should be WRITTEN with hidden fields instead of being GENERATED with hidden fields. If you have a well-thought out architecture, you should be able to GENERATE the hidden fields you need on the fly. Then, anyone who knows the architecture, and (what is the same) what is really going on, will not be befuddled. You cannot have page writers actually write dynamic forms. They can write the forms as a template, but they would have to be generated by the application, if you have any kind of sophisticated view arrangement. Okay agreed that generating hidden fields would be a reasonable means of persistence. Yes I was assuming, perhaps in error, that what was being suggested was writing hidden fields. In fact I think I may do this. Also agreed that if the webforms dont have a load of html:hidden property=someUnrelatedProperty / in the jsp then fine and dandy. I don't know why we are so slow to develop sophisticated logics for views. That seems to be the last thing on the agenda. I guess that is not entirely true, given Tiles, etc., but it sure is widely true. Michael McGrady P.S. I noted the use of i18n because that is a use of the session that makes sense to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: overlapping cells in table with firebird
Have you tried 'dipping' the window? That is - dragging the window by its title bar partially off the bottom of the screen and back again to see if the forced re-rendering fixes the problem in the dipped part. Ive noticed the latest firebird sometimes stuffs up its rendering when it loads a page and needs to be forced to rerender (but not reload) the page sometimes. Ie - by dipping or hiding and reshowing thr window. If dipping corrects the problem then its a browser error rather than an error of yours. (Ive seen similar problems in IE in places also - especially where css and table cells backgrounds are involved) -Original Message- From: Frédéric Dreier [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 16:39 To: Struts Users Mailing List Subject: overlapping cells in table with firebird Hi, When displaying struts page in firebird or mozilla for the first time (increased load time due to jsp compilation) I got some strange effect: Some table's cells overllaps themself. Redisplaying the page using F5 corrects the problem. It's non-dynamical HTML with an external CSS. I'm curious to know if someone else got this problem before asking mozilla guru. Regards, Frederic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: accessing dynamic radio and check boxes
Hi, you probably worked out how to do this already, but if you haven't here is how I did it: to check check boxes with one click, use this Javascript function, or similar: function CheckAll( form_number ) { for( n=0; document.forms[form_number].elements[n] != null; n++) { if( document.forms[form_number].elements[n].type == checkbox ) { document.forms[form_number].elements[n].checked = true; } } } HTH Leticia -Original Message- From: Claire Suttle [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 22:12 To: [EMAIL PROTECTED] Subject: accessing dynamic radio and check boxes Hi, I'm using dyna action forms on a couple of my pages, and I'd like to know how to access the checkboxes and radio buttons via javascript. I know I need document.forms[0].something...but I don't know what I need next. What I want to be able to do is set the first radio button as selected by default, and allow one clicking on one checkbox to set all check boxes as selected. If someone could tell me what I need to use to be able to access these objects, that'd be great! Thanks, Claire - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: perform vs execute
Hi, The reason perform is deprecated is, it can throw only exceptions of type ServletException and IOException. Whereas for the support of declarative exception handling in Struts 1.1, the execute() throws Exception. This is the main reason. Regards, Janarthan S Niall Pemberton [EMAIL PROTECTED] wrote: I don't remember the reason for the method name change, but the difference is what you say - perform is deprecated. The big performance benefit you get from using execute() is that you don't have to go changing your Action classes when upgrading to struts 1.2 because the perform() methods have been removed. Niall - Original Message - From: srinivasan krishnamurthy To: Sent: Friday, February 13, 2004 10:50 PM Subject: perform vs execute What is the difference between the perform and execute method in struts.I know perform is deprecated in 1.1 but do we get any lift by using execute? __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
RE: overlapping cells in table with firebird
-Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 2:24 PM To: Struts Users Mailing List Subject: RE: overlapping cells in table with firebird Have you tried 'dipping' the window? That is - dragging the window by its title bar partially off the bottom of the screen and back again to see if the forced re-rendering fixes the problem in the dipped part. Ive noticed the latest firebird sometimes stuffs up its rendering when it loads a page and needs to be forced to rerender (but not reload) the page sometimes. Ie - by dipping or hiding and reshowing thr window. If dipping corrects the problem then its a browser error rather than an error of yours. (Ive seen similar problems in IE in places also - especially where css and table cells backgrounds are involved) -Original Message- From: Frédéric Dreier [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 16:39 To: Struts Users Mailing List Subject: overlapping cells in table with firebird Hi, When displaying struts page in firebird or mozilla for the first time (increased load time due to jsp compilation) I got some strange effect: Some table's cells overllaps themself. Redisplaying the page using F5 corrects the problem. It's non-dynamical HTML with an external CSS. I'm curious to know if someone else got this problem before asking mozilla guru. Regards, Frederic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: persistent data storage - the right way
On 15/02/2004 12:26 Ben Turner wrote: hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. The simple answer is that you don't. Struts has nothing to do with data persistence. What I think you're really asking is how to implement persistence in a web application. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. Well, I suppose you could use the Struts Datasource plug-in if you feel that's the way to go but I think you'll find most people use JNDI and the container-supplied connection pool. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: persistent data storage - the right way
Thomas, The simple answer is that you don't. Struts has nothing to do with data persistence. What I think you're really asking is how to implement persistence in a web application. I do realise that. My question was indeed how to implement such a thing. Well, I suppose you could use the Struts Datasource plug-in if you feel that's the way to go but I think you'll find most people use JNDI and the container-supplied connection pool. I don't feel anything. I posted the question as to find out what the standard approach is to achieving database persistence; I wouldn't post the question if i had already decided which way i was going. Thanks to the people that suggested iBatis and Hibernate - both look very interesting and will read up on them. Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: persistent data storage - the right way
One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis. On 16 Feb 2004, at 04:11, David Friedman wrote: I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. any examples or pointers in the right direction would be very much appreciated. thanks, Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Start Tag Exception
html:errors changed from processing ActionErrors/ActionError to ActionMessages/ActionMessage from struts 1.1 to struts 1.2 - the most obvious cause of this is your app generating ActionMessages/ActionMessage messages but the tag is struts 1.1 version. Are you sure you are deploying the nightly build jars to your servlet container rather than the struts 1.1 jars? Niall - Original Message - From: Betty Koon [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, February 16, 2004 6:20 AM Subject: Error Start Tag Exception Any one has any idea why this exception happens? I am using 1.2 nightly build currently. My jsp is simply using the following: logic:messagesPresent html:errors / /logic:messagesPresent java.lang.ClassCastException at org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215) at org.apache.jsp.action_feedback_jsp._jspx_meth_html_errors_0(action_feedback_ jsp.java:694) at org.apache.jsp.action_feedback_jsp._jspx_meth_logic_messagesPresent_1(action _feedback_jsp.java:672) at org.apache.jsp.action_feedback_jsp._jspService(action_feedback_jsp.java:469) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 69) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso r.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ estProcessor.java:320) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at com.adobe.edc.server.presentation.auth.AuthenticationFilter.doFilter(Authent icationFilter.java:143) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at
R: persistent data storage - the right way
I think that with hibernate you don't need to write sql code to save/update/delete your objects or to retrieve objects by their id, with ibatis you have to write all your sql code. Example with hibernate (pseudo-code...): session.find(MyObject, id); MyObject.setProp1(newvalue) session.save() // automatically execute an update on your db You don't have to write a line of sql with hibernate... (except for queries like select from MyObject where age23) Anyway I'm not a Guru, so I could be wrong... -Messaggio originale- Da: Mark Lowe [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 11.09 A: Struts Users Mailing List Oggetto: Re: persistent data storage - the right way One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis. On 16 Feb 2004, at 04:11, David Friedman wrote: I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. any examples or pointers in the right direction would be very much appreciated. thanks, Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default locale gets intermixed with other locales
I think I found the same problem some time ago. I can't remember what the underlying issue was (maybe mixing the struts jstl ii18n tags?), but the solution was to create an explicit bundle for the default locale - I have my build scripts copy Application.properties to Application_en.properties. hth, Paul -Original Message- From: Torsten Römer [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 20:57 To: [EMAIL PROTECTED] Subject: Default locale gets intermixed with other locales Hello, I have made a quite simple web application using Struts 1.1 and Tiles, running on Tomcat 4.1.10. I have internationalized it using the html:html locale=true and the bean:message key=/ tags. I have created three message bundles, one default (English), one German and one Swedish. It works as expected. German visitors get German pages, Swedish users Swedish pages and everybody else English pages. But after some weeks uptime there is a strange effect: When the default locale is used where all pages should be English, some pages show up in German. Often it's only the jsp placed in one tile which shows the wrong language, sometimes the whole page. After a restart of Tomcat the problem is solved. Has anybody ever experienced something similar? What could be wrong? Thanks in advance! Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts form problem
I am having a problem with Struts. I have to present the user with a number of multi-selectable drop-down lists or text boxes. The number/type of input fields is not known until run-time (based on user selections in the previous screens). The 2 issues I see are: generating the JSP dynamically with the property names types (ie, textField1,textField2,textField3,textField4,etc) accessing these form fields in the action class. Normally, the form field definitions need to be defined at compile time (whether you use Action Forms or DynaForms) Ideally, I'd like to use the struts framework to avail of Validator,etc,etc. Also, I am using Dyna Forms. Bernard __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with calling another servlet to create an image
Hi, i have written an application to create a barcode. Therefore i get some information from the user and then create a barcode out of it. For barcode creation i am using a servlet from java4less.com. I installed the BarcodeServlet in the same webapp as my application and put in the resulting jsp a html:img Tag. But the result is a red cross in the Internet Explorer. Also trying to show the image via the Context Menu has no success. The Tag is written like this: html:img page=/BarcodeServlet?FORMAT=JPEGWIDTH=800HEIGHT=500CODE_TYPE=PDF417BAR_ HEIGHT=0.2X=0.03PDF_COLUMNS=20PDF_ROWS=0BACK_COLOR=WHITEBAR_COLOR=BLACK FONT_COLOR=WHITEPDF_COMPACTION=TEXTPDF_ECLEVEL=0DEBUG=ONBARCODE=ABCDEFg hij1234567890/ and is expanded to this: img src=/TestBarcode/BarcodeServlet?FORMAT=JPEGWIDTH=800HEIGHT=500CODE_TYPE= PDF417BAR_HEIGHT=0.2X=0.03PDF_COLUMNS=20PDF_ROWS=0BACK_COLOR=WHITEBAR_ COLOR=BLACKFONT_COLOR=WHITEPDF_COMPACTION=TEXTPDF_ECLEVEL=0DEBUG=ONBARC ODE=ABCDEFghij1234567890 That looks for me ok and if i put the second image Tag in a normal HTML-Page the Barcode is shown. I have found in the log File stderr.log the line: Referer: http://127.0.0.1:8080/WackerBarcode/action/createBarcode. This line is shown every time i am requesting the action which should show me the Barcode. Can anybody explain me how to create the barcode with Struts? Thanks in advance Franz Poppenborg -- B U H L M A N NRohr-Fittings-Stahlhandel GmbH + Co. KG Arberger Hafendamm 1 -- 28309 Bremen / Germany Tel.: +49 (0)421 4586-231 -- Fax: +49 (0)421 4586-234 email:[EMAIL PROTECTED]-- Internet: WWW.BUHLMANN.DE Tube Solutions - We know how -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overlapping cells in table with firebird
Are you using c:url to reference the external CCS file? Tim Hi, When displaying struts page in firebird or mozilla for the first time (increased load time due to jsp compilation) I got some strange effect: Some table's cells overllaps themself. Redisplaying the page using F5 corrects the problem. It's non-dynamical HTML with an external CSS. I'm curious to know if someone else got this problem before asking mozilla guru. Regards, Frederic - 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]
ActionForward(mapping.getInput()) ....
I'm using Tiles for manager the layout of my application and it's a example of my geralLogin.jsp page, and works without problem except when I have a exception and get the mapping.getInmput() value for return tho the same page (login.jsp) with ActionErrors etc... at LoginAction.java. When this happen the login.jps don't show the images, css and other things about the page, show just the htmt:text , htmt:password , htmt:submit, html: errors /. The problem is just the images and css. Example of geralLogin.jsp: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert page=/layouts/loginLayout.jsp flush=true tiles:put name=title value=Sistema de Gestão Integrada - Login / tiles:put name=body value=/geral/geralLoginBody.jsp / /tiles:insert Example of my struts-config.xml: action attribute=GeralLoginIBean name=GeralLoginIBean input=/geral/geralLogin.jsp path=/gerallogin type=com.topit.geral.action.LoginAction validate=false forward name=sucesso path=/geral/principal_teste.jsp redirect=true / forward name=falha path=/geral/geralLogin.jsp redirect=true / /action
Re: R: persistent data storage - the right way
Leonardo, You're correct. Unless you want to do specific queries on the database the hibernate layer takes care of all queries to the database. If you do have to do clever stuff, be sure to download hibern8ide it is very good for perfecting queries, and very powerful when combined with JOI. Paul Global Equity Derivatives Technology Deutsche Bank [/] Leonardo Francalanci [EMAIL PROTECTED] 16/02/2004 09:46 Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:R: persistent data storage - the right way I think that with hibernate you don't need to write sql code to save/update/delete your objects or to retrieve objects by their id, with ibatis you have to write all your sql code. Example with hibernate (pseudo-code...): session.find(MyObject, id); MyObject.setProp1(newvalue) session.save() // automatically execute an update on your db You don't have to write a line of sql with hibernate... (except for queries like select from MyObject where age23) Anyway I'm not a Guru, so I could be wrong... -Messaggio originale- Da: Mark Lowe [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 11.09 A: Struts Users Mailing List Oggetto: Re: persistent data storage - the right way One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis. On 16 Feb 2004, at 04:11, David Friedman wrote: I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. any examples or pointers in the right direction would be very much appreciated. thanks, Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Question about Long property
I have a form with a Long property; I used Long instead of long to have the property nullable, but if the (html) form includes such a property, struts sets the corresponding bean property to 0, even if it has no value (value=); what I'd like is struts to leave the property at null!! It also behaves so if the (html) property has non numeric value!! Any help is appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] persistent data storage - the right way
I already use hibern8ide, I also use JFaceDb plugin for eclipse to get a first skeleton of configuration files from my tables. I don't know what JOI is: could you point me to some links? -Messaggio originale- Da: Paul-J Woodward [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 13.26 A: Struts Users Mailing List Oggetto: Re: R: persistent data storage - the right way Leonardo, You're correct. Unless you want to do specific queries on the database the hibernate layer takes care of all queries to the database. If you do have to do clever stuff, be sure to download hibern8ide it is very good for perfecting queries, and very powerful when combined with JOI. Paul Global Equity Derivatives Technology Deutsche Bank [/] Leonardo Francalanci [EMAIL PROTECTED] 16/02/2004 09:46 Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:R: persistent data storage - the right way I think that with hibernate you don't need to write sql code to save/update/delete your objects or to retrieve objects by their id, with ibatis you have to write all your sql code. Example with hibernate (pseudo-code...): session.find(MyObject, id); MyObject.setProp1(newvalue) session.save() // automatically execute an update on your db You don't have to write a line of sql with hibernate... (except for queries like select from MyObject where age23) Anyway I'm not a Guru, so I could be wrong... -Messaggio originale- Da: Mark Lowe [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 11.09 A: Struts Users Mailing List Oggetto: Re: persistent data storage - the right way One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis. On 16 Feb 2004, at 04:11, David Friedman wrote: I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. any examples or pointers in the right direction would be very much appreciated. thanks, Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] persistent data storage - the right way
Java object inspector: http://www.programmers-friend.org/JOI/ When you dbl-click on a result in hibern8ide it pops up a JOI window and you can check the values of every attribute in the object - very useful indeed! Paul Global Equity Derivatives Technology Deutsche Bank [/] Leonardo Francalanci [EMAIL PROTECTED] 16/02/2004 11:34 Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:[OT] persistent data storage - the right way I already use hibern8ide, I also use JFaceDb plugin for eclipse to get a first skeleton of configuration files from my tables. I don't know what JOI is: could you point me to some links? -Messaggio originale- Da: Paul-J Woodward [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 13.26 A: Struts Users Mailing List Oggetto: Re: R: persistent data storage - the right way Leonardo, You're correct. Unless you want to do specific queries on the database the hibernate layer takes care of all queries to the database. If you do have to do clever stuff, be sure to download hibern8ide it is very good for perfecting queries, and very powerful when combined with JOI. Paul Global Equity Derivatives Technology Deutsche Bank [/] Leonardo Francalanci [EMAIL PROTECTED] 16/02/2004 09:46 Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:R: persistent data storage - the right way I think that with hibernate you don't need to write sql code to save/update/delete your objects or to retrieve objects by their id, with ibatis you have to write all your sql code. Example with hibernate (pseudo-code...): session.find(MyObject, id); MyObject.setProp1(newvalue) session.save() // automatically execute an update on your db You don't have to write a line of sql with hibernate... (except for queries like select from MyObject where age23) Anyway I'm not a Guru, so I could be wrong... -Messaggio originale- Da: Mark Lowe [mailto:[EMAIL PROTECTED] Inviato: lunedi 16 febbraio 2004 11.09 A: Struts Users Mailing List Oggetto: Re: persistent data storage - the right way One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis. On 16 Feb 2004, at 04:11, David Friedman wrote: I use hibernate so, yes, I think it is a good alternative. :) Regards, David -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:56 PM To: Struts Users Mailing List Subject: Re: persistent data storage - the right way is Hibernate another good alternative ? --- Oliver Thiel [EMAIL PROTECTED] wrote: Hi, you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis ) I think this is what your looking for. Oliver hello, i have been looking (in vain) for a description how to implement database access in struts correctly. i would like to use the DAO (data access object) pattern in combination with datasources for connection pooling. however, i am having a hard way figuring out how to implement the whole and to decouple my actions from knowing about the implementation of the DB. the example application bundled with struts uses a plugin to set up everything in the application context - is this the right way to go about things? i am planning on using postgresql for the moment but would like to foresee possible changes in the future. any examples or pointers in the right direction would be very much appreciated. thanks, Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!?
Reset button not working properly when page contains error
Hi all, I have a form which contains a reset button (html:reset) and whenever I submit the form and got errors from Action class, it seems that the reset button does not work properly, since when I click on it it does not reset anything.. no matter if I specify my own custom javascript method anyone can help? Thanx in advance and regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]Eclipse CVS
This is some documentation I put together for a sourceforge project, but it should still give you the information that you need http://www.coruscant.cc/Struts/eclipseCVSsetup.ZIP Note that the docs under the eclipse help are very good, too, though they may be a bit intimidating to someone who is just getting started and wants a step-by-step approach. From the menu bar Help-Help Contents : enter 'CVS' in the search field and click GO. David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 5:18 PM To: [EMAIL PROTECTED] Subject: [OT]Eclipse CVS Hi, Can anybody tell me the procedure to setup CVS in eclipse...or any document to refer? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overlapping cells in table with firebird
Tim Coy wrote: Are you using c:url to reference the external CCS file? Tim Hi, When displaying struts page in firebird or mozilla for the first time (increased load time due to jsp compilation) I got some strange effect: Some table's cells overllaps themself. Redisplaying the page using F5 corrects the problem. It's non-dynamical HTML with an external CSS. I'm curious to know if someone else got this problem before asking mozilla guru. Regards, Frederic - 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] actually not. I use: link rel=stylesheet href=%=request.getContextPath()%/resources/stylesheet.css type=text/css/ I will try c:url instead (it look better). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using split() method in java script
-Original Message- From: McCormack, Chris [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:35 AM To: Struts Users Mailing List Subject: RE: Problem using split() method in java script Ahh yes I see how this relates to struts... subscribe to a JS newsgroup google is your friend +1 I couldn't have said it better myself. Chris -Original Message- From: Ramachandran [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 07:52 To: Struts Users Mailing List Subject: Problem using split() method in java script Hi, I am facing problem in java script, using spilt() methos. Here i want to split the strings using '\' this separator. Here it is separating the strings. Bu it is displayed in the zeroth index array. But i want to display in each index. But not Working. Any body having idea please maile me. This is my code. var where_is_mytool=home\mytool\mytool.cgi; var mytool_array=where_is_mytool.split(\\); alert(mytool_array[0]+ second +mytool_array[1]+ third +mytool_array[2]); -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Popup window
There are some example of creating a popup window, for select (of datagrid for example )one value and come back to the window with the value selected with Struts. tnks Daniel S.
exception handling
Hi again :) Can I handle all exceptions in Struts? I tried in my struts-config: exception key=events.error.runtime type=java.lang.Exception path=jsp/Error.jsp/ /global-exceptions When I call a JSP where i make a NulPointerException , then i see not my Error.jsp. Is there someting else what I have to do, if I want to handle exceptions in struts ? thanks for help Tomek
Re: Popup window
Hi This is the chooseAuthor.jsp. When U choose an author then javascript sets the values of id and name which are properties of the common form Common form used from the page addDocumentAuthor.jsp where u want to choose the Author top.opener.document.commonForm.id.value = id; top.opener.document.commonForm.name.value = name; i hope this helps. -- chooseAuthor. jsp %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ page import=gr.tera.alternative.commons.Constants % script language=JavaScript function setAuthor(id,name) { top.opener.document.commonForm.id.value = id; top.opener.document.commonForm.name.value = name; top.window.close(); } /script html:html head titlebean:message key=author.choose.title//title link rel=stylesheet href=%=request.getContextPath()%/tiles/layouts/css/default.css type=text/css /head BODY bgcolor=#ffeda3 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 % String SLATE = #DDEEFE; String WHITE = #FF; String HEADER=#AAB6C6; String bgcolor = null; String letters[] = {%,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R ,S,T,U,V,W,X,Y,Z}; % !-- ÅìöÜíéóç ãñáììÜôùí -- table align=center class=ChooseLetter tr logic:iterate id=currentChar collection=%=letters% type=java.lang.String tda href=chooseAuthor.do?letter=%=currentChar% styleClass=LETTER%=currentChar%/a/td /logic:iterate /tr /table logic:present name=%=Constants.AUTHORS_KEY% table border=0 width=100% align=center logic:iterate id=author type=gr.tera.alternative.bo.AuthorBO name=%=Constants.AUTHORS_KEY% indexId=index % if((index.intValue() % 2) == 0) { bgcolor = WHITE; } else { bgcolor = SLATE; } % tr bgcolor=%=bgcolor% td align=center%= index.intValue()+1 %/td td align=left valign=middle nowrap a href=javascript:setAuthor('bean:write name=author property=id /','bean:write name=author property=name /') class=LETTER bean:write name=author property=name / /a /td tr /logic:iterate /table /logic:present /body /html:html addDocumentAuthor.jsp-- %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ page import=gr.tera.alternative.commons.Constants % script language=JavaScript src=js/utils.js/script html:errors / bean:define id=document type=gr.tera.alternative.bo.DocumentBO name=%=Constants.DOCUMENT_KEY% / bean:define id=category name=document property=category type=gr.tera.alternative.bo.CategoryBO / bean:define id=kind name=document property=kind type=gr.tera.alternative.bo.KindBO / table width=80% border=0 cellspacing=3 cellpadding=1 align=center bgcolor=#E7EFE9 tr td colSpan=2nbsp;/td /tr tr td align=right valign=topbean:message key=document.name//td td valign=leftbean:write name=document property=name //td /tr tr td align=right valign=topbean:message key=document.kind//td td valign=leftbean:write name=kind property=name//td /tr tr td align=right valign=topbean:message key=document.category//td td valign=leftbean:write name=category property=name//td /tr tr td align=right valign=topbean:message key=document.year//td td valign=leftbean:write name=document property=year //td /tr tr td colSpan=2 table width=100% border=0 cellspacing=3 cellpadding=0 align=center logic:iterate id=author name=document property=authors type=gr.tera.alternative.bo.AuthorBO indexId=index tr td align=center%=index.intValue()+1 %/td td align=left valign=middle nowrapbean:write name=author property=name filter=false //td td align=center a href='awardEvents.do?action=deleteid=bean:write name=author property=id /'delete/a /td td align=center a href='awardEvents.do?action=getid=bean:write name=author property=id /'update/a /td /tr /logic:iterate /table /td /tr /table html:form action=addDocumentAuthor.do focus=id table align=center tr td align=right valign=topbean:message key=document.kind//td td valign=left html:text property=id size=50 maxlength=50 styleClass=form / html:text property=name size=50 maxlength=50 styleClass=form readonly=true/a href=javascript:launchwin('chooseAuthor.do')choose Author/a /td /tr tr td colspan=2 align=center !-- Buttons Start -- table tr td html:submit styleClass=button bean:message key=button.submit/ /html:submit /td td html:reset styleClass=button bean:message key=button.reset/ /html:reset /td
copyProperties different properties
Hi, We want to copy from one bean to another by using BeanUtils.copyProperties. There are some differences between the properties of these two beans. Is there any way that we can send, for example a HasMap, to this method (or similar method), and define the relation of properties of these beans? Thanks!
Re: Popup window
Muito obrigado (so much thanks) Jim Theodoridis. - Original Message - From: Jim Theodoridis [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:05 AM Subject: Re: Popup window Hi This is the chooseAuthor.jsp. When U choose an author then javascript sets the values of id and name which are properties of the common form Common form used from the page addDocumentAuthor.jsp where u want to choose the Author top.opener.document.commonForm.id.value = id; top.opener.document.commonForm.name.value = name; i hope this helps. -- chooseAuthor. jsp %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ page import=gr.tera.alternative.commons.Constants % script language=JavaScript function setAuthor(id,name) { top.opener.document.commonForm.id.value = id; top.opener.document.commonForm.name.value = name; top.window.close(); } /script html:html head titlebean:message key=author.choose.title//title link rel=stylesheet href=%=request.getContextPath()%/tiles/layouts/css/default.css type=text/css /head BODY bgcolor=#ffeda3 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 % String SLATE = #DDEEFE; String WHITE = #FF; String HEADER=#AAB6C6; String bgcolor = null; String letters[] = {%,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R ,S,T,U,V,W,X,Y,Z}; % !-- ÅìöÜíéóç ãñáììÜôùí -- table align=center class=ChooseLetter tr logic:iterate id=currentChar collection=%=letters% type=java.lang.String tda href=chooseAuthor.do?letter=%=currentChar% styleClass=LETTER%=currentChar%/a/td /logic:iterate /tr /table logic:present name=%=Constants.AUTHORS_KEY% table border=0 width=100% align=center logic:iterate id=author type=gr.tera.alternative.bo.AuthorBO name=%=Constants.AUTHORS_KEY% indexId=index % if((index.intValue() % 2) == 0) { bgcolor = WHITE; } else { bgcolor = SLATE; } % tr bgcolor=%=bgcolor% td align=center%= index.intValue()+1 %/td td align=left valign=middle nowrap a href=javascript:setAuthor('bean:write name=author property=id /','bean:write name=author property=name /') class=LETTER bean:write name=author property=name / /a /td tr /logic:iterate /table /logic:present /body /html:html addDocumentAuthor.jsp-- %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ page import=gr.tera.alternative.commons.Constants % script language=JavaScript src=js/utils.js/script html:errors / bean:define id=document type=gr.tera.alternative.bo.DocumentBO name=%=Constants.DOCUMENT_KEY% / bean:define id=category name=document property=category type=gr.tera.alternative.bo.CategoryBO / bean:define id=kind name=document property=kind type=gr.tera.alternative.bo.KindBO / table width=80% border=0 cellspacing=3 cellpadding=1 align=center bgcolor=#E7EFE9 tr td colSpan=2nbsp;/td /tr tr td align=right valign=topbean:message key=document.name//td td valign=leftbean:write name=document property=name //td /tr tr td align=right valign=topbean:message key=document.kind//td td valign=leftbean:write name=kind property=name//td /tr tr td align=right valign=topbean:message key=document.category//td td valign=leftbean:write name=category property=name//td /tr tr td align=right valign=topbean:message key=document.year//td td valign=leftbean:write name=document property=year //td /tr tr td colSpan=2 table width=100% border=0 cellspacing=3 cellpadding=0 align=center logic:iterate id=author name=document property=authors type=gr.tera.alternative.bo.AuthorBO indexId=index tr td align=center%=index.intValue()+1 %/td td align=left valign=middle nowrapbean:write name=author property=name filter=false //td td align=center a href='awardEvents.do?action=deleteid=bean:write name=author property=id /'delete/a /td td align=center a href='awardEvents.do?action=getid=bean:write name=author property=id /'update/a /td /tr /logic:iterate /table /td /tr /table html:form action=addDocumentAuthor.do focus=id table align=center tr td align=right valign=topbean:message key=document.kind//td td valign=left html:text property=id size=50 maxlength=50 styleClass=form / html:text property=name size=50 maxlength=50 styleClass=form
Struts converts null to 0 ?
I have a form with a Long property; I used Long instead of long to have the property nullable, but if the (html) form includes such a property, struts sets the corresponding bean property to 0, even if it has no value (value=); what I'd like is struts to leave the property at null!! It also behaves so if the (html) property has non numeric value!! Any help is VERY appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FileUploading Error
In trying to bulletproof file uploading I noticed something odd. If I type some junk in the field for the file name and hit Submit, I get a file of size 0. I can deal with that. If I type in a directory name in my home directory (admittedly a dumb thing to type) nothing seems to happen and I get this error in my log file. ERROR 2004-02-13 14:09:18,679 handleRequest(CommonsMultipartRequestHandler.java:241) Failed to parse multipart request org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly ... This error seems to be thrown before it even gets to my UploadAction. How do I catch this and tell the user the file typed in is invalid? -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts converts null to 0 ?
I think the best way is to use the String property on the form and then convert the value to Long - Original Message - From: Renato Romano [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:45 PM Subject: Struts converts null to 0 ? I have a form with a Long property; I used Long instead of long to have the property nullable, but if the (html) form includes such a property, struts sets the corresponding bean property to 0, even if it has no value (value=); what I'd like is struts to leave the property at null!! It also behaves so if the (html) property has non numeric value!! Any help is VERY appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way off topic
Reverted back to Tomcat 4.1 I put ojsputil.jar in %CATALINA_HOME%/webapps/NameOfApp/WEB-INF/lib and all is well. Thanks, -Martin - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, February 15, 2004 10:36 AM Subject: way off topic Forgive the way off topic query where is the commons/lib folder for Sun One AppServer. ie. where do you keep tools.jar?? Thanks, -Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ActionForward(mapping.getInput()) ....
This is a bit of a guess Are you using relative paths for your images? When you access the jsp directly your current page is /somewebapp/geral/geralLogin.jsp. So an image whichg refers to ../images/somepicture.gif will resolve to /somewebapp/images/somepicture.gif. When you get errors your current page is /somewebapp/gerallogin.do. So the same relative image path will this time point to /images/somepicture.gif which won't be valid as the context is missing. You can verify whether this is the case by looking at your access logs. Try changing the path in struts-config to path=/geral/gerallogin Paul -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 13:20 To: Struts Users Mailing List Subject: ActionForward(mapping.getInput()) I'm using Tiles for manager the layout of my application and it's a example of my geralLogin.jsp page, and works without problem except when I have a exception and get the mapping.getInmput() value for return tho the same page (login.jsp) with ActionErrors etc... at LoginAction.java. When this happen the login.jps don't show the images, css and other things about the page, show just the htmt:text , htmt:password , htmt:submit, html: errors /. The problem is just the images and css. Example of geralLogin.jsp: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert page=/layouts/loginLayout.jsp flush=true tiles:put name=title value=Sistema de Gestão Integrada - Login / tiles:put name=body value=/geral/geralLoginBody.jsp / /tiles:insert Example of my struts-config.xml: action attribute=GeralLoginIBean name=GeralLoginIBean input=/geral/geralLogin.jsp path=/gerallogin type=com.topit.geral.action.LoginAction validate=false forward name=sucesso path=/geral/principal_teste.jsp redirect=true / forward name=falha path=/geral/geralLogin.jsp redirect=true / /action ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subscribe-Please
__ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem with calling another servlet to create an image
Sorry for disturbing, i found the mistake in the BarcodeServlet which stops processing of the image. Regards Franz Poppenborg -Ursprüngliche Nachricht- Von: Poppenborg, Franz [SMTP:[EMAIL PROTECTED] Gesendet am: Montag, 16. Februar 2004 12:56 An: '[EMAIL PROTECTED]' Betreff: Problem with calling another servlet to create an image Hi, i have written an application to create a barcode. Therefore i get some information from the user and then create a barcode out of it. For barcode creation i am using a servlet from java4less.com. I installed the BarcodeServlet in the same webapp as my application and put in the resulting jsp a html:img Tag. But the result is a red cross in the Internet Explorer. Also trying to show the image via the Context Menu has no success. The Tag is written like this: html:img page=/BarcodeServlet?FORMAT=JPEGWIDTH=800HEIGHT=500CODE_TYPE=PDF417BA R_ HEIGHT=0.2X=0.03PDF_COLUMNS=20PDF_ROWS=0BACK_COLOR=WHITEBAR_COLOR=BLA CK FONT_COLOR=WHITEPDF_COMPACTION=TEXTPDF_ECLEVEL=0DEBUG=ONBARCODE=ABCDE Fg hij1234567890/ and is expanded to this: img src=/TestBarcode/BarcodeServlet?FORMAT=JPEGWIDTH=800HEIGHT=500CODE_TYP E= PDF417BAR_HEIGHT=0.2X=0.03PDF_COLUMNS=20PDF_ROWS=0BACK_COLOR=WHITEBA R_ COLOR=BLACKFONT_COLOR=WHITEPDF_COMPACTION=TEXTPDF_ECLEVEL=0DEBUG=ONBA RC ODE=ABCDEFghij1234567890 That looks for me ok and if i put the second image Tag in a normal HTML-Page the Barcode is shown. I have found in the log File stderr.log the line: Referer: http://127.0.0.1:8080/WackerBarcode/action/createBarcode. This line is shown every time i am requesting the action which should show me the Barcode. Can anybody explain me how to create the barcode with Struts? Thanks in advance Franz Poppenborg -- B U H L M A N NRohr-Fittings-Stahlhandel GmbH + Co. KG Arberger Hafendamm 1 -- 28309 Bremen / Germany Tel.: +49 (0)421 4586-231-- Fax: +49 (0)421 4586-234 email:[EMAIL PROTECTED] -- Internet: WWW.BUHLMANN.DE Tube Solutions - We know how -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are misreading completely what I said. I have no idea how you got to here from what I said. I was doing the opposite, viz. trying to get you to deal with an API for the logic of your views. This has nothing remotely to do with persistent mechanisms or hardware. I suspect we are two ships passing in the night here. You [Mark Lowe] said: Okay agreed that generating hidden fields would be a reasonable means of persistence. Yes I was assuming, perhaps in error, that what was being suggested was writing hidden fields. In fact I think I may do this. Also agreed that if the webforms dont have a load of in the jsp then fine and dandy Generating hidden fields has nothing to do with a means of persistence. Rather, this is merely a way to generate hidden fields relating to the logic of the view, e.g. if you come from one page, you hidden fields will be one thing, but if you come from another page, your hidden fields will be another thing. Your use of the session object is not really a persistence mechanism, Mark. It is a shotgun data mining technique for the view. The suggestion is to substitute a scalpel data mining technique for the shotgun. We more on all fours now? Michael McGrady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts converts null to 0 ?
Yeah, that is the joy of bean-utils. It is best to leave it a stringon the form and convert it yourself. [EMAIL PROTECTED] 02/16/04 7:45 AM I have a form with a Long property; I used Long instead of long to have the property nullable, but if the (html) form includes such a property, struts sets the corresponding bean property to 0, even if it has no value (value=); what I'd like is struts to leave the property at null!! It also behaves so if the (html) property has non numeric value!! Any help is VERY appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IBatis???
Go to www.ibatis.com for ibatis docs and downloads. Go to http://reumann.net/do/struts/main for tutorials. Use irc to get to #struts_users on irc.darkmyst.org to talk to people who use it. Larry [EMAIL PROTECTED] 02/14/04 7:00 AM can any one tell me what is IBatis? where can i get reference doc/tutorial for the same - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are misreading completely what I said. I have no idea how you got to here from what I said. I was doing the opposite, viz. trying to get you to deal with an API for the logic of your views. This has nothing remotely to do with persistent mechanisms or hardware. I suspect we are two ships passing in the night here. You [Mark Lowe] said: Okay agreed that generating hidden fields would be a reasonable means of persistence. Yes I was assuming, perhaps in error, that what was being suggested was writing hidden fields. In fact I think I may do this. Also agreed that if the webforms dont have a load of in the jsp then fine and dandy Generating hidden fields has nothing to do with a means of persistence. Rather, this is merely a way to generate hidden fields relating to the logic of the view, e.g. if you come from one page, you hidden fields will be one thing, but if you come from another page, your hidden fields will be another thing. Your use of the session object is not really a persistence mechanism, Mark. It is a shotgun data mining technique for the view. The suggestion is to substitute a scalpel data mining technique for the shotgun. We more on all fours now? Michael McGrady - 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]
RequestUtils / TagUtils deprecations and migration
Per the release notes page, You are strongly advised to resolve all Struts 1.1 deprecations before moving to the newest release., and Alternatives should be available for all decprecated[sic] constructs. However, I am having some problems trying to determine my alternatives for some of the key utilities, i.e. the RequestUtils to TagUtils and ActionErrors to ActionMessages. IMHO, the move from RequestUtils to TagUtils is a good one. However, there is a problem with the notion of fixing the deprecations--the 1.1 release does not contain org.apache.struts.taglib.TagUtils that the deprecation points to! This means that our custom taglibs that compile against struts.jar in order to get the utility classes cannot be patched without a complete 1.2 update--which forces ALL the apps to update as well, since the tags will otherwise end up with an UnsatisfiedLinkException at runtime. This is obviously unacceptable, so we have a few options, none of which are really great... 1) Keep binary versions of our own libraries in each app. 2) Create branches in each app and library in order to satisfy automated builds that like everything to have matching branch names (and for good reason). 3) Code around the deprecations, duplicating some of the struts utility code for the likes of RequestUtils.message # 1 means that new taglib builds or bug fixes are not automatically applied to the app. # 2 means our current development for some apps is on a branch, while others have their current development on the HEAD stream, which is odd. # 3 ... ick. As for the ActionErrors change, I also think this is a wise choice. The fact that the ActionForm validate() api still returns an ActionErrors object is a known problem and hopefully a dead horse on the dev list. =) However, if validation or messages are created anywhere else in a struts 1.1 application for use by tags such as html:errors, there are problems. I can easily create and fill ActionErrors objects in an action and store them in the appropriate request location to make them available to the html:errors tag. I can even change these over to ActionMessages objects, seemingly without pain. However, if I do this, the html:errors tag blows up with a ClassCastException (running under struts 1.1) so a) apps can't be tested or verified with the modified code prior to migration b) new apps are still being written with ActionErrors even though it is known to be deprecated. This, again, leads to a few options... 1) Keep binary versions of our own libraries in each app. 2) Create branches in each app and library in order to satisfy automated builds that like everything to have matching branch names (and for good reason). 3) Code around the deprecations, duplicating some of the struts html tags # 1 means that new taglib builds or bug fixes are not automatically applied to the app. # 2 means our current development for some apps is on a branch, while others have their current development on the HEAD stream, which is odd. # 3 ... ick. If anyone has any other options, please let me know. Otherwise, for those of you on the committers list, please consider the following... Option #4: Request an incremental/patch release on 1.1 that includes a) the new TagUtils class b) an html:errors tag that will handle either ActionErrors or ActionMessages. a) Doesn't completely avoid all issues, but it won't break any existing 1.1 code and allows a smoother migration. b) Looking at the source, the current 1.2 version of the tag should work fine as ActionErrors extends ActionMessages etc. Thanks, --David David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - Request against Session
Just to throw a little liquid (gasoline or water) on this fire... Let's say there are two ways to look at determining your current session state: #1 Is the Deterministic Automaton (for any set of inputs there is an output) #2 Is the Nondeterministic Automaton (for any set of inputs the output is unknown) Some, if not many, applications can have the user interface abstracted as a #1. If this is the case, you can simply pass a series of tokens (the inputs) to determine which page you SHOULD be on. In these cases, passing hidden fields is an highly desirable way of doing business (lends to clustering, no dead sessions hanging around, etc...) On the other hand, other types of interfaces don't lend themselves to this way of doing business: (i.e. they are dependant on internal or unknown factors to determine what to do/display). In these cases, may or may not need a session to determine where you are/where you are going to maintain the proper flow/state of the application. ??Comments?? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 10:42 AM To: Struts Users Mailing List Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are misreading completely what I said. I have no idea how you got to here from what I said. I was doing the opposite, viz. trying to get you to deal with an API for the logic of your views. This has nothing remotely to do with persistent mechanisms or hardware. I suspect we are two ships passing in the night here. You [Mark Lowe] said: Okay agreed that generating hidden fields would be a reasonable means of persistence. Yes I was assuming, perhaps in error, that what was being suggested was writing hidden fields. In fact I think I may do this. Also agreed that if the
Thanks
Hi all, Sorry for this late reply. I have many work to do... on Thu, 12 Feb 2004. Mr. Heya Gosper wrote, Looks like you don't have the error string correct (ie you may have a misspelling) errors.cartIsEmtpy Yes you were right. and Mr. Navjot Singh wrote : 2. ActionMapping is not deprecated. Reads the docs again. It saya would have been deprecated. in fact, this class has 2 more subclasses. Yes, I made a mistake It seems to me that I was too in a hurry, and slipped. Note : Mr. Heya Gosper wrote, ... did you have any more console output? this sometimes sounds to novices as though there are no errors saved when actually there are. Please don't write this again, I always try to describe the problem clearly. It saves your time and my time too. Regards, Fredrich __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are misreading completely what I said. I have no idea how you got to here from what I said. I was doing the opposite, viz. trying to get you to deal with an API for the logic of your views. This has nothing remotely to do
RE: [OT] - Request against Session
very well said :-)) +1 -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 5:26 PM To: Struts Users Mailing List Subject: Re: [OT] - Request against Session Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are
Re: FileUploading Error
At 9:35 AM -0500 2/16/04, Mark Shifman wrote: In trying to bulletproof file uploading I noticed something odd. If I type some junk in the field for the file name and hit Submit, I get a file of size 0. I can deal with that. If I type in a directory name in my home directory (admittedly a dumb thing to type) nothing seems to happen and I get this error in my log file. ERROR 2004-02-13 14:09:18,679 handleRequest(CommonsMultipartRequestHandler.java:241) Failed to parse multipart request org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly ... This error seems to be thrown before it even gets to my UploadAction. How do I catch this and tell the user the file typed in is invalid? In Javascript, the value of the form field is the path to the file; you might be able to apply a mask validation testing for a reasonable filename -- this is far from perfect, but may help. I use this as a cheap way to get around the lack of support for the accepts attribute -- I test to see if the file has a right extension using the mask validator. Just one thought... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Start Tag Exception
Hi Betty, I think you need to set the 'message' attribute to false here, as the tag is looking for an ActionMessage instance, not an ActionError one (which is what you get in the loop created by the html:errors / tag). Here's a snippet of an implementation I've used: logic:messagesPresent message=false td class=small3 colspan=2 html:messages id=error message=false c:out value=${error} escapeXml=false /br / /html:messages /td /logic:messagesPresent HTH, Curtis -- c dot tee at verizon dot net Betty Koon wrote: Any one has any idea why this exception happens? I am using 1.2 nightly build currently. My jsp is simply using the following: logic:messagesPresent html:errors / /logic:messagesPresent java.lang.ClassCastException - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nested tag problem - image not shown
prolem found: need to use relative path : nested:image src=images/tree/km_plus.gif property=toggle/ ~~~ --- hi, i am trying the nexted MOnkey example, everything works fine except that the image is not shown. In my TreeNode.jsp: nested:image src=/images/tree/km_plus.gif property=toggle/ The only difference is that TreeNode is a Tile now. I am using IE 6.0, Win XP, Struts 1.1 thanks in advance, li xin __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
On 16 Feb 2004, at 17:25, Niall Pemberton wrote: Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. But thats a good reason not to use java at all. I've one's got that much of a cob-on about ram usage then don't use java. If its that much of a problem then better hitting the disk than filling memory (the later being how java manages to perform at all). If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. I think the suggestion was sometimes copying request scoped forms into a session is a reasonable thing, certainly during the development cycle, rather than optimizing before anything is built. Sure always using session would be silly but nobody has said that. But never using session is arguably equally ludicrous. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. When you deploy to a dev server thats probably a good time to address any problems. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken.
Java / J2EE Developer
Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
RE: Java / J2EE Developer
Hi Srini, Can you please tell me where are u based at the moment Kamal -Original Message- From: Srini Pacharu [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 16:59 To: Struts Users Mailing List Subject: Java / J2EE Developer Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please solve this...include and ActionForward
Please help me to come out of confusion. I am giving a sample scenario of how my app works. my code snippet is something like this my.jsp jsp:include page=/getList.do this action includes the list object in request/ I have to use the list in the rest of my jsp page. in action execute(){ add list to request; return map.findForward(); } can't I execute this scenario without findForward. coz.. the purpose of include is not served here as the request will be forwarded to a new page... am I wrong? am I thinking something wrong? kindly help me out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
Hi Kamal, I'm in Annandale, Virginia. Cheers, -Srini. Kamal Gupta [EMAIL PROTECTED] wrote: Hi Srini, Can you please tell me where are u based at the moment Kamal -Original Message- From: Srini Pacharu [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 16:59 To: Struts Users Mailing List Subject: Java / J2EE Developer Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online
RE: Java / J2EE Developer
Come to India, there are lots of jobs for you here. From: Srini Pacharu [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Java / J2EE Developer Date: Mon, 16 Feb 2004 09:27:22 -0800 (PST) Hi Kamal, I'm in Annandale, Virginia. Cheers, -Srini. Kamal Gupta [EMAIL PROTECTED] wrote: Hi Srini, Can you please tell me where are u based at the moment Kamal -Original Message- From: Srini Pacharu [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 16:59 To: Struts Users Mailing List Subject: Java / J2EE Developer Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online _ Contact brides grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag Only on www.shaadi.com. Register now! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DataGrid...
I am looking for data grid(paging / navigation, sorting and filtering) for integrate with myapp (based on struts, without EJB) and tested HTMLTable - Table framework for Struts (http://htmltable.yuriy-zubarev.com/jsp/index.jsp) and displaytag( http://displaytag.sourceforge.net/), someone know whats the better or know another free (for comercial applications). abraços Daniel S.
Re: [OT] - Request against Session
At 07:41 AM 2/16/2004, you [Mark Lowe] wrote: Not on all fours but purring like a kitten :o) I think you are making this harder than it has to be, Mark. You can take some extended time and build some utility classes to do this sort of thing and it will save you time in the long run. I have not done that as yet, or I would share the classes. But, it would not be hard. The interfaces would be fairly clear and could be done lots of ways. I would, off the top of my head, create something like the following logic: HiddenParameterActionFormPart -- holding the static parameter names and values to pass to hidden type fields in forms that are involved. You could generate this list via reflection from scratch at runtime with methods and fields matching the relevant names of parameters to pass and having them initialized with values. This way your application would not interfere with the GUI boys. HiddenParameterActionForm -- A subclass of ActionForm that would be used to dynamically prepopulate with the request scope HiddenParameterList. This could be a little tricky. If so, roll your own for this. Maybe this and the HiddenParameterActionFormPart should be melded into the same class. A HiddenParameterTag html:hidden/ -- that would generate the hidden fields in whatever way you wanted for any form. This all would merely automate the process that the coder has to do using hidden fields and request scope. I would not be surprised if there were a solution out there on this already. I would also not be surprised if there were not a lot more effective solution than this off the top of my head version. Michael McGrady
RE: Error Start Tag Exception
Thanks for the reply. I figurd out what happened. I upgraded my code to use struts 1.2 but some how the jar file got reverted back to 1.1. -Betty -Original Message- From: Curtis Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 8:32 AM To: Struts Users Mailing List Subject: Re: Error Start Tag Exception Hi Betty, I think you need to set the 'message' attribute to false here, as the tag is looking for an ActionMessage instance, not an ActionError one (which is what you get in the loop created by the html:errors / tag). Here's a snippet of an implementation I've used: logic:messagesPresent message=false td class=small3 colspan=2 html:messages id=error message=false c:out value=${error} escapeXml=false /br / /html:messages /td /logic:messagesPresent HTH, Curtis -- c dot tee at verizon dot net Betty Koon wrote: Any one has any idea why this exception happens? I am using 1.2 nightly build currently. My jsp is simply using the following: logic:messagesPresent html:errors / /logic:messagesPresent java.lang.ClassCastException - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - Request against Session
I like the way you think, cf. infra, Mike Mainguy. No wonder you have the name you have. LOL. This is, I think, helpful. I still think, however, that you NEVER need to store the data from the view in session. That, for me, is an anathema. That is like going back to the single file data storage prior to SQL for me. Something like a hidden parameter version of SQL is what I would prefer. But, I do think that your division reflects a distinction that needs to be addressed. Michael McGrady At 08:05 AM 2/16/2004, you wrote: Just to throw a little liquid (gasoline or water) on this fire... Let's say there are two ways to look at determining your current session state: #1 Is the Deterministic Automaton (for any set of inputs there is an output) #2 Is the Nondeterministic Automaton (for any set of inputs the output is unknown) Some, if not many, applications can have the user interface abstracted as a #1. If this is the case, you can simply pass a series of tokens (the inputs) to determine which page you SHOULD be on. In these cases, passing hidden fields is an highly desirable way of doing business (lends to clustering, no dead sessions hanging around, etc...) On the other hand, other types of interfaces don't lend themselves to this way of doing business: (i.e. they are dependant on internal or unknown factors to determine what to do/display). In these cases, may or may not need a session to determine where you are/where you are going to maintain the proper flow/state of the application. ??Comments?? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 10:42 AM To: Struts Users Mailing List Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the hardware. Yes. But you are misreading completely what I said. I have no idea how you got to here from what I said. I was doing the
Re: [OT] - Request against Session
The bigger problem than bloat, Niall, as discussed earlier than when you came aboard is the fact that you are breaking MVC which leads to predictable difficulties with multiple windows, which are often needed. Michael McGrady At 08:25 AM 2/16/2004, you wrote: Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something that one would want to fix in the case that something were broken. Hi, Mark, Your reading generating dynamic views as somehow relating to alternative forms of persistence is not correct. The idea is to get AWAY from this PERSISTENCE solution and to start using view LOGIC. Michael And you [Mark Lowe] said: i know its a naive position but I thought part of the scope of the java language was in part an attempt to abstract software development from the
RE: Java / J2EE Developer
deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataGrid...
Hi, I'm using displayTag and except the current lack of support for EL expression, it's very helpfull to me. Carl Daniel wrote: I am looking for data grid(paging / navigation, sorting and filtering) for integrate with myapp (based on struts, without EJB) and tested HTMLTable - Table framework for Struts (http://htmltable.yuriy-zubarev.com/jsp/index.jsp) and displaytag( http://displaytag.sourceforge.net/), someone know whats the better or know another free (for comercial applications). abraços Daniel S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
Sounds more useful than our amusing albeit exhausted debating.. I'm about to reach the end of getting something out in the next couple of days. I like the idea of using some reusable util classes to address this sort of thing, I'll look into it also. While I'm not really down with constantly thinking about hardware while developing, approaching the problem in a general way like you're suggesting I like. Cheers Mark On 16 Feb 2004, at 18:48, Michael McGrady wrote: At 07:41 AM 2/16/2004, you [Mark Lowe] wrote: Not on all fours but purring like a kitten :o) I think you are making this harder than it has to be, Mark. You can take some extended time and build some utility classes to do this sort of thing and it will save you time in the long run. I have not done that as yet, or I would share the classes. But, it would not be hard. The interfaces would be fairly clear and could be done lots of ways. I would, off the top of my head, create something like the following logic: HiddenParameterActionFormPart -- holding the static parameter names and values to pass to hidden type fields in forms that are involved. You could generate this list via reflection from scratch at runtime with methods and fields matching the relevant names of parameters to pass and having them initialized with values. This way your application would not interfere with the GUI boys. HiddenParameterActionForm -- A subclass of ActionForm that would be used to dynamically prepopulate with the request scope HiddenParameterList. This could be a little tricky. If so, roll your own for this. Maybe this and the HiddenParameterActionFormPart should be melded into the same class. A HiddenParameterTag html:hidden/ -- that would generate the hidden fields in whatever way you wanted for any form. This all would merely automate the process that the coder has to do using hidden fields and request scope. I would not be surprised if there were a solution out there on this already. I would also not be surprised if there were not a lot more effective solution than this off the top of my head version. Michael McGrady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Re: Java / J2EE Developer
I'm only joking here guys so don't take me too serious. Role description: Must be able to spam mailing lists an forums with poorly defined questions like I need to build a webapp using struts and oracle, please help. On 16 Feb 2004, at 18:58, Andy Engle wrote: deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DataGrid...
Carl, There is EL support in the CVS (1.0-b3) version for displaytag. See: http://displaytag.sourceforge.net/changes-report.html Regards, David -Original Message- From: Carl [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:15 PM To: Struts Users Mailing List Subject: Re: DataGrid... Hi, I'm using displayTag and except the current lack of support for EL expression, it's very helpfull to me. Carl Daniel wrote: I am looking for data grid(paging / navigation, sorting and filtering) for integrate with myapp (based on struts, without EJB) and tested HTMLTable - Table framework for Struts (http://htmltable.yuriy-zubarev.com/jsp/index.jsp) and displaytag( http://displaytag.sourceforge.net/), someone know whats the better or know another free (for comercial applications). abraços Daniel S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
I know better to get involved in this but... Improve yourself? How will that protect you unless that improvement happens to mean lowering your salary 80% or so? This is a problem to us in the US. Maybe folks from other countries don't care, and that is understandable, but it doesn't mean that we Americans shouldn't stand up and fight. I wonder why we allow people to come over to the US, attend our colleges, work in our firms, and then leave to better their countries...not ours. It doesn't make any sense to me. Maybe back in the late 90's when there was a lot of work, but now? BTW, I have been both outsourced (other country) and downsized (with only non-US workers left). No, they were not better...but they were a lot cheaper. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:28 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - Request against Session
Thanks for the tips...I'm off now to 1) Re-write my app so it doesn't use java 3) Develop everything as session scope until I implement, at which point I'll then re-write them again as request scope. 3) Put at least something from app back into session scope (s**t I just took everything out!) in every app, 'coz there's no way I'm deploying a ludicrous app!! 4) Re-write my app again, because I ignored any problems until deployment time - bl##dy h#ll its going to get interesting. do you havce a name for this methodologysomething that when it rolls off the tongue impresses the hell out of managers - they're a sucker for believing its not my fault if I can give them a good acronym. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:58 PM Subject: Re: [OT] - Request against Session On 16 Feb 2004, at 17:25, Niall Pemberton wrote: Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. But thats a good reason not to use java at all. I've one's got that much of a cob-on about ram usage then don't use java. If its that much of a problem then better hitting the disk than filling memory (the later being how java manages to perform at all). If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. I think the suggestion was sometimes copying request scoped forms into a session is a reasonable thing, certainly during the development cycle, rather than optimizing before anything is built. Sure always using session would be silly but nobody has said that. But never using session is arguably equally ludicrous. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. When you deploy to a dev server thats probably a good time to address any problems. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users
[OT] Re: Java / J2EE Developer
Look the US is the great bastion of free trade, take a look around the world and get real please. Both the US, UK and others have done well out of global trade. So its no good crying when the competition comes along. US and UK companies also benefit from being able to exploit the emerging labour markets. +1 to what james said. On 16 Feb 2004, at 19:38, Smith, Darrin wrote: I know better to get involved in this but... Improve yourself? How will that protect you unless that improvement happens to mean lowering your salary 80% or so? This is a problem to us in the US. Maybe folks from other countries don't care, and that is understandable, but it doesn't mean that we Americans shouldn't stand up and fight. I wonder why we allow people to come over to the US, attend our colleges, work in our firms, and then leave to better their countries...not ours. It doesn't make any sense to me. Maybe back in the late 90's when there was a lot of work, but now? BTW, I have been both outsourced (other country) and downsized (with only non-US workers left). No, they were not better...but they were a lot cheaper. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:28 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Java / J2EE Developer
I think this isn't the place to discuss this, so I'll let this be my last message on the issue. Look at what I said. I never said a darn thing about restricting free trade. All I said was why should we in the US educate, and train foreign workers? We shouldn't. If they wish to immigrate to the US great! Glad to have them. If they wish to set up shop in India, great...use your folks trained in your country and go for it. Just don't think that we here in the US should be happy with the companies that move US jobs there. It's our right to complain. Maybe you don't believe we should have that right. Anyway, this is WAY OT, as was the original post (request for a job) to begin with. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:45 PM To: Struts Users Mailing List Subject: [OT] Re: Java / J2EE Developer Look the US is the great bastion of free trade, take a look around the world and get real please. Both the US, UK and others have done well out of global trade. So its no good crying when the competition comes along. US and UK companies also benefit from being able to exploit the emerging labour markets. +1 to what james said. On 16 Feb 2004, at 19:38, Smith, Darrin wrote: I know better to get involved in this but... Improve yourself? How will that protect you unless that improvement happens to mean lowering your salary 80% or so? This is a problem to us in the US. Maybe folks from other countries don't care, and that is understandable, but it doesn't mean that we Americans shouldn't stand up and fight. I wonder why we allow people to come over to the US, attend our colleges, work in our firms, and then leave to better their countries...not ours. It doesn't make any sense to me. Maybe back in the late 90's when there was a lot of work, but now? BTW, I have been both outsourced (other country) and downsized (with only non-US workers left). No, they were not better...but they were a lot cheaper. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:28 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - Request against Session
I've been looking a lot at JSF, and the way you can handle scoping issues is to actually store your controller in the session as a bean. Memory is only an issue if you cache data beyond the method scope: An Action updates OrderController in the session with parameters from the request. The view then provides a set of getter's based on state of the bean in the session-- OrderController.getAllShipTos() that can be accessed via JSTL. If you are worried about memory consumption, then don't cache the shipto's in the OrderController, just fetch and return. This same idea can be applied to request scope data. -Jacob -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 11:54 AM To: Struts Users Mailing List Subject: RE: [OT] - Request against Session I like the way you think, cf. infra, Mike Mainguy. No wonder you have the name you have. LOL. This is, I think, helpful. I still think, however, that you NEVER need to store the data from the view in session. That, for me, is an anathema. That is like going back to the single file data storage prior to SQL for me. Something like a hidden parameter version of SQL is what I would prefer. But, I do think that your division reflects a distinction that needs to be addressed. Michael McGrady At 08:05 AM 2/16/2004, you wrote: Just to throw a little liquid (gasoline or water) on this fire... Let's say there are two ways to look at determining your current session state: #1 Is the Deterministic Automaton (for any set of inputs there is an output) #2 Is the Nondeterministic Automaton (for any set of inputs the output is unknown) Some, if not many, applications can have the user interface abstracted as a #1. If this is the case, you can simply pass a series of tokens (the inputs) to determine which page you SHOULD be on. In these cases, passing hidden fields is an highly desirable way of doing business (lends to clustering, no dead sessions hanging around, etc...) On the other hand, other types of interfaces don't lend themselves to this way of doing business: (i.e. they are dependant on internal or unknown factors to determine what to do/display). In these cases, may or may not need a session to determine where you are/where you are going to maintain the proper flow/state of the application. ??Comments?? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 10:42 AM To: Struts Users Mailing List Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool to use. Perhaps my understanding of data-mining is erroneous but I fail to see how storing data collected via a view (in the web tier) for a short time has anything to do with it. Data mining is the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. (Gartner Group). Another definition I found is Data Mining follows an inductive strategy of analyzing data where users apply machine learning algorithms to gain non-obvious knowledge from the data. [http://www.jcp.org/en/jsr/detail?id=073] I'm not suggesting any such thing, I'm not forming any analysis on the data collected and stored in httpsession as that would be silly. Nor do i see that the proposed alternative as having anything to do with datamining. While I can see how a high traffic site need an alternative to httpsession the storing data collected from the view temporarily before its ready to be permanently stored (What i understand of what Andrew has been saying, and I think craig's recommendations). I cant see how the syllogism all use of httpsession is bad can be justified. Not on all fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael
Re: [OT] - Request against Session
Oh dear. Joins the debate late and tries writing cgi apps in java. Show me the numbers son shine. I've seen some crazy kids hell bent on this sort on premature optimization go months over deadlines this this sort of fanaticism, that impresses managers, i'm impressed already. If you're that hell bent on ram conservation don't use java. The fact is many high load apps work perfectly well using httpsession where required, I really don't understand where this anti session school of thought has come from neither to i care. I'm sorry that this obviously concerns you quite this much. So go on tell us how late's the project you're working on ? On 16 Feb 2004, at 19:42, Niall Pemberton wrote: Thanks for the tips...I'm off now to 1) Re-write my app so it doesn't use java 3) Develop everything as session scope until I implement, at which point I'll then re-write them again as request scope. 3) Put at least something from app back into session scope (s**t I just took everything out!) in every app, 'coz there's no way I'm deploying a ludicrous app!! 4) Re-write my app again, because I ignored any problems until deployment time - bl##dy h#ll its going to get interesting. do you havce a name for this methodologysomething that when it rolls off the tongue impresses the hell out of managers - they're a sucker for believing its not my fault if I can give them a good acronym. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:58 PM Subject: Re: [OT] - Request against Session On 16 Feb 2004, at 17:25, Niall Pemberton wrote: Sorry if I'm regurgitating, but I haven't really been following this debate. The only good argument I've heard for session=evil is the memory bloat one. But thats a good reason not to use java at all. I've one's got that much of a cob-on about ram usage then don't use java. If its that much of a problem then better hitting the disk than filling memory (the later being how java manages to perform at all). If every struts form was defined in session scope then a user running around alot of forms can quickly consume alot - and it stays around unless you specifically clean them out or they do nothing long enough for the session to expire. Whether you have memory problems depends entirely on the amount your stuffing into the session and the number of 'active' sessions at any one time. I think the suggestion was sometimes copying request scoped forms into a session is a reasonable thing, certainly during the development cycle, rather than optimizing before anything is built. Sure always using session would be silly but nobody has said that. But never using session is arguably equally ludicrous. The good thing about doing everything in request scope is you never have to worry about this - however big your system or the traffic volume gets. In that sense its a no-brainer - tell everyone to do it in request and theres no consequences. If the advice on the other hand was session or request - you choose - alot of people would choose session because its easier to develop - once they deploy the app though, then the grins**t hits the fan/grin. When you deploy to a dev server thats probably a good time to address any problems. If you know the memory implications and the future traffic volumes of your system and can guarantee its never going to be an issue, then go ahead. For me though, even though it looks like I'm only going to have 20-40 users initially, I do it the request way - because then I don't even have to consider it as an issue, whatever the future. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic way of looking at the world tells me that if i need to temporally store data collected from some forms that storing in the session is a way to do this. The api says. The session persists for a specified time period, across more than one connection or page request from the user. Seems to fit the bill to me. Each form is a request and i need a structure in the web tier to store the data. Until such a time when the user is ready to complete whatever s/he is doing and thus commit everything to the model. I even concede I'm out-gunned in terms of the folk advocating such things, but I just cant see why everyone's so against sessions. I'm in crisis attempting to resolve the incongruity between my and folk's, who know better than me, views, but I just don't get it. But when did sessions become the root of all evil? What are they there for? I even like the idea of dynamically generating hidden values as an alternative or an optimization but surely session is a valid tool
Re: DataGrid...
So the displayTag librairie is now perfect ! Carl David Friedman wrote: Carl, There is EL support in the CVS (1.0-b3) version for displaytag. See: http://displaytag.sourceforge.net/changes-report.html Regards, David -Original Message- From: Carl [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:15 PM To: Struts Users Mailing List Subject: Re: DataGrid... Hi, I'm using displayTag and except the current lack of support for EL expression, it's very helpfull to me. Carl Daniel wrote: I am looking for data grid(paging / navigation, sorting and filtering) for integrate with myapp (based on struts, without EJB) and tested HTMLTable - Table framework for Struts (http://htmltable.yuriy-zubarev.com/jsp/index.jsp) and displaytag( http://displaytag.sourceforge.net/), someone know whats the better or know another free (for comercial applications). abraços Daniel S. - 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]
controller for tiles
Hi! I am still trying to write a webapplication with tiles that allows the user to choose which tiles he wants to see. So each tile should have its own controller to receive and handle the user inputs. I know that I can define a controller for a tile in the tiles-defs.xml but how do I access that controller from the jsp-page? And I am still looking for a possibility to create a page-flow within a tile! Any ideas how to do that? Thanks in advance! regards, dom -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Java / J2EE Developer
Maybe you should have taken your own advice and maybe I should have too, but your comments are too one eyed american not to comment. Improving your self doesn't mean you would have to change jobs, you surely have spare time to learn and read new things and there is plenty of trial software out there to play with. Don't think that because you are american you are special and the only one in this situation. It is occuring all around the world, and that is why people go to other countries because the same situation is occuring in their own country. Maybe you should take note and go overseas to see that there is other cultures than just the US. -Original Message- From: Smith, Darrin [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 February 2004 7:39 a.m. To: 'Struts Users Mailing List' Subject: RE: Java / J2EE Developer I know better to get involved in this but... Improve yourself? How will that protect you unless that improvement happens to mean lowering your salary 80% or so? This is a problem to us in the US. Maybe folks from other countries don't care, and that is understandable, but it doesn't mean that we Americans shouldn't stand up and fight. I wonder why we allow people to come over to the US, attend our colleges, work in our firms, and then leave to better their countries...not ours. It doesn't make any sense to me. Maybe back in the late 90's when there was a lot of work, but now? BTW, I have been both outsourced (other country) and downsized (with only non-US workers left). No, they were not better...but they were a lot cheaper. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:28 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] RE: Java / J2EE Developer
Please stop discussing this on the STRUTS-USER mailing list. Thanks -Original Message- From: Peter Abbot [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:34 PM To: Struts Users Mailing List Subject: [OT] RE: Java / J2EE Developer Maybe you should have taken your own advice and maybe I should have too, but your comments are too one eyed american not to comment. Improving your self doesn't mean you would have to change jobs, you surely have spare time to learn and read new things and there is plenty of trial software out there to play with. Don't think that because you are american you are special and the only one in this situation. It is occuring all around the world, and that is why people go to other countries because the same situation is occuring in their own country. Maybe you should take note and go overseas to see that there is other cultures than just the US. -Original Message- From: Smith, Darrin [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 February 2004 7:39 a.m. To: 'Struts Users Mailing List' Subject: RE: Java / J2EE Developer I know better to get involved in this but... Improve yourself? How will that protect you unless that improvement happens to mean lowering your salary 80% or so? This is a problem to us in the US. Maybe folks from other countries don't care, and that is understandable, but it doesn't mean that we Americans shouldn't stand up and fight. I wonder why we allow people to come over to the US, attend our colleges, work in our firms, and then leave to better their countries...not ours. It doesn't make any sense to me. Maybe back in the late 90's when there was a lot of work, but now? BTW, I have been both outsourced (other country) and downsized (with only non-US workers left). No, they were not better...but they were a lot cheaper. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:28 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Java / J2EE Developer deepak saini [EMAIL PROTECTED] wrote: Come to India, there are lots of jobs for you here. This drives me crazy -- our future is being exported and nobody seems to care. http://www.wired.com/wired/archive/12.02/india.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
James Mitchell [EMAIL PROTECTED] wrote: Looks like the only way to compete is to improve yourself. That works for me, what about you? I can improve myself all I want to, but if/when our CEO says that workers in India, China, or whatever other country work for pennies on my salary's dollar, then there goes my job. Our division leader has already said as much, and with that in mind I suspect that I'll be moving on within a few years. But the self-improvement comment is somewhat irrelevent, although to some degree I saw what you were getting at. The issue at hand is excessive corporate greed, and making the bottom line look as sweet to shareholders as possible. Even at the detrimental expense of the livelihood of a large number of highly-skilled American workers who have families, mortgages and lives to live. With that in mind, I find the act of outsourcing to be extremely disgusting. 'Nuff said. Back to the Struts discussions. And I apologize for further contributing to the off-topicness of this thread. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: controller for tiles
I don't know...but I believe the shipped tiles sample app/documentation does this - take a look at that. Niall - Original Message - From: Dominik Stoettner [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 7:22 PM Subject: controller for tiles Hi! I am still trying to write a webapplication with tiles that allows the user to choose which tiles he wants to see. So each tile should have its own controller to receive and handle the user inputs. I know that I can define a controller for a tile in the tiles-defs.xml but how do I access that controller from the jsp-page? And I am still looking for a possibility to create a page-flow within a tile! Any ideas how to do that? Thanks in advance! regards, dom -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] RE: Java / J2EE Developer
You tell 'em Jacob. It's not even Friday! -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:33 PM To: Struts Users Mailing List Subject: RE: [OT] RE: Java / J2EE Developer Please stop discussing this on the STRUTS-USER mailing list. Thanks snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: controller for tiles
Dominik, The pdf http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf (Tiles Advanced Features) lists various ways to do this. I suggest you extend your Action class as a tiles controller so that, within the action, you can set the pieces of the tile definition to those of your choosing. But, since you mentioned having your JSP make those changes, which sounds to me like the wrong place to modify your template, there might be a way to do that listed in that (or another) advanced Tiles document. Regards, David -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 2:42 PM To: Struts Users Mailing List Subject: Re: controller for tiles I don't know...but I believe the shipped tiles sample app/documentation does this - take a look at that. Niall - Original Message - From: Dominik Stoettner [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 7:22 PM Subject: controller for tiles Hi! I am still trying to write a webapplication with tiles that allows the user to choose which tiles he wants to see. So each tile should have its own controller to receive and handle the user inputs. I know that I can define a controller for a tile in the tiles-defs.xml but how do I access that controller from the jsp-page? And I am still looking for a possibility to create a page-flow within a tile! Any ideas how to do that? Thanks in advance! regards, dom -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++ - 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]
Hoe to use Actionpath in validation.xml???
Hi All, how to use action paths in validation.xml. Sample code will be greatly appreciated. Thanks in advance. Thanks and Regards Subramaniam Olaganthan Tata Consultancy Services India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:link passing multiple parameters
Thank you both for your suggestions! I haven't tried using EL or JSTL before. I guess it's time to learn it! Thanks again for your help. --- In [EMAIL PROTECTED], Nick Faiz [EMAIL PROTECTED] wrote: Thanks Adam - that's good to know. -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 2:10 PM To: Struts Users Mailing List Subject: Re: html:link passing multiple parameters There's also the use of c:url. The catch there is that if you incude the resulting url in a html:link, it will be double contexted, which means you should use a standard href tag and use a c:out to spit out the final url. - Original Message - From: Nick Faiz [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Sunday, February 15, 2004 4:39 PM Subject: RE: html:link passing multiple parameters I did something along those lines using Struts-EL. c:set var=concernType value=${project.progressConcernType} scope=request/ jsp:useBean id=paramMap class=java.util.HashMap / c:set target=${paramMap} property=projectIdentifier value=${project.projectIdentifier} / c:set target=${paramMap} property=concern value=${concernType} / html-el:link action=advanceProjectConcern.do name=paramMap /html-el:link Why bother with bean:write when you can use c:set ? Nick Faiz -Original Message- From: phortonpeg [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 9:34 AM To: [EMAIL PROTECTED] Subject: html:link passing multiple parameters Hi, I have a situation where I need to pass several parameters in an html:link tag. From what I've read, I know that I must use a HashMap to send as a param which would contain the values I want to send to the URL. I first display the values in a table using logic:iterate and an arrayList onto the screen. The user should then be able to select a row and send that row's parameters to an action class that produces a pdf. My problem is how to extract the values from bean:write properties and load them into a hashMap. What would be the correct syntax to do this something like this? I've tried several ways to do something like the following without any luck : % String docNumber = bean:write name=task property=documentNumber/ ; % Here is a portion of the jsp that I am working with: logic:iterate id=task name=productionQcForm property=documents td class=databean:write name=task property=docGid/nbsp;/td td class=databean:write name=task property=revision/nbsp;/td td class=databean:write name=task property=pgCount/nbsp;/td td class=databean:write name=task property=statDate/nbsp;/td td class=databean:write name=task property=itemVkey/nbsp;/td td class=databean:write name=task property=title/nbsp;/td td class=databean:write name=task property=autoReject/nbsp;/td html:hidden name=task property=altGid / html:hidden name=task property=supplement / html:hidden name=task property=chgType / html:hidden name=task property=society / html:hidden name=task property=documentNumber html:hidden name=task property=order / % java.util.HashMap myMap = new java.util.HashMap(); myMap.put(docGid, How do I get the value of the property docGid from the list above???); myMap.put (docNumber, documentNumber); myMap.put (order, order); myMap.put (society, society); myMap.put (statDate, statDate); myMap.put (vKey, itemVkey); myMap.put (supp, supplemenat); myMap.put (chgType, chgType); myMap.put (revision, revision); pageContext.setAttribute(map, myMap); % td class=data align=center html:link page=/showScannerPdf.do name=map html:img src=images/EditBCard.gif altKey=action.properties width=20 height=20 border=0/ /html:link /td Any ideas or suggestions would be very appreciated! Thanks for you help! Peggy -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
preview form
Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: preview form
select does support readonly , unfortunaely it does not understand readonly attribute, but only disabled -Dan - Original Message - From: Janice [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:03 PM Subject: preview form Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - 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]
Exceptions
My application framework doesnt allow me to use message resource files. My Business logic has customized exceptions that contain user messages. Can anyone help me how to proceed without using html:errors (to display on the view) Is there any other alternative to handle exceptions apart from our own ExceptionHandlers Please provide me links to proceed with... Thanx in advance... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: preview form
We needed a read only version of a selection list as well, but the need wasn't apparent until after one of our developers had already finished writing all the JSP's. The solution I came up with was to write a subclass of the SelectionTag (and OptionTag, OptionsTag) to override the functionality of the read-only attribute. Basically, if it is read-only I render a read-only text box instead of a selection list. Then it was quick to change all of our selection lists by globally changing the prefix for the existing selection tags to the prefix we use for our own custom tags. Not sure if this was the best method, but in our case it was the quickest and easiest. Robb -Original Message- From: Janice [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:03 PM To: [EMAIL PROTECTED] Subject: preview form Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: preview form
Maybe you can use a read-only text field to display the selected value of the drop-down on your preview page. You can get the label of the drop down in your action class for Preview , and then set the form bean property for the same. Also, use logic:equal on your JSP to check for the user action, and display drop-down or text field accordingly. HTH, Shyam P.S. Wonder if the 'newbie' has come of age?;) --- Janice [EMAIL PROTECTED] wrote: Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: preview form
Read-only and disabled don't have the same meaning here. For a read-only field, the value cannot be changed by the user, but it still gets submitted with the rest of the form values. For a disabled field, the user cannot change the value, and the value does NOT get submitted. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:34 PM To: Struts Users Mailing List Subject: Re: preview form select does support readonly , unfortunaely it does not understand readonly attribute, but only disabled -Dan - Original Message - From: Janice [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:03 PM Subject: preview form Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - 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]
Separating Strut and Validator errors
Hi all, a quick newbie question. When I use an ActionError in my Action class in conjuction with the Validator, I get all my errors reported as server side validations (i.e. no java script). I have found the following code in the book Struts In Action to handle that but I guess it's depreciated... I searched over the web for a way to achieve the same but with no luck. Does anybody know what replaced the logic:messages tag or a way to achieve the same? Thank you for your time, Theo logic:messagesPresent UL logic:messages id=error LI bean:write name=errors/ /LI /logic:messages /UL /logic:messagesPresent
Re: Hoe to use Actionpath in validation.xml???
Its all down to the flavour of ActionForm you use. There a four validation flavours of ActionForm shipped with Struts: org.apache.struts.validator.ValidatorForm org.apache.struts.validator.ValidatorActionForm org.apache.struts.validator.DynaValidatorForm org.apache.struts.validator.DynaValidatorActionForm If your action forms are based on ValidatorForm or DynaValidatorForm then they use the associated form name from struts-config.xml to look up the validation rules in the validation configuration. If you use ValidatorActionForm or DynaValidatorActionForm then they use the path from the struts-config.xml to look up validations. If you are not happy with either of these mechanisms, then all you have to do is write your own ActionForm.validate() method which uses whatever naming you want to access validator. From the struts-config.xml: action path=/myPathName name=myFormName .. /action In your validation.xml file: form name=/myPathName .. /form Niall - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List Sent: Monday, February 16, 2004 7:57 PM Subject: Hoe to use Actionpath in validation.xml??? Hi All, how to use action paths in validation.xml. Sample code will be greatly appreciated. Thanks in advance. Thanks and Regards Subramaniam Olaganthan Tata Consultancy Services India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Separating Strut and Validator errors
http://jakarta.apache.org/struts/userGuide/struts-html.html#errors http://jakarta.apache.org/struts/userGuide/struts-html.html#messages - Original Message - From: Theodosios Paschalidis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 10:41 PM Subject: Separating Strut and Validator errors Hi all, a quick newbie question. When I use an ActionError in my Action class in conjuction with the Validator, I get all my errors reported as server side validations (i.e. no java script). I have found the following code in the book Struts In Action to handle that but I guess it's depreciated... I searched over the web for a way to achieve the same but with no luck. Does anybody know what replaced the logic:messages tag or a way to achieve the same? Thank you for your time, Theo logic:messagesPresent UL logic:messages id=error LI bean:write name=errors/ /LI /logic:messages /UL /logic:messagesPresent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: preview form
Isn't the easiest solution to have two separate pages, something along the lines of html:form action=reviewOrder html:textname=orderForm property=custNo html:select name=orderForm property=productId html:optionsCollection name=productCollection label=productDescription value=productId/ /html:select html:textname=orderForm property=orderQuantity /html:form html:form action=placeOrder html:hidden name=orderForm property=custNo html:hidden name=orderForm property=productId html:hidden name=orderForm property=orderQuantity bean:write name=orderForm property=custNo bean:write name=orderForm property=productId bean:write name=orderForm property=productDescription /html:form - Original Message - From: Janice [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 9:03 PM Subject: preview form Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: preview form
Hello again, Thanks for the responses. What I ended up with was having my original form take the user to the preview form where all the form elements were disabled, instead of readonly. It even provides a nice visual clue that the form isn't for input, since all the fields are slightly greyed out (I just hope the users can still read it!). Then from there the user can either accept or reject the values entered or changed. Cheers, Janice - Original Message - From: Janice To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 1:03 PM Subject: preview form Hi Gang, I have a form that the client would like to be 'previewed' before users can submit. The plan is to have a form with a button that takes the user to the exact same form, but with all the form elements set to readonly. From there the user can go back to the editable form or can submit. At least that's the plan. I'm open to other suggestions, especially of the 'best practices' variety. I would have liked to display the form information on a non-form looking page, but the problem I have is the drop-downs which have a very different value from label. I don't want the preview to display something like: person: 12353 instead of person: Jane Doe So I guess I need the drop-downs, unless you all have a workaround? My immediate problem is that html:select / doesn't support readonly... what else can I do? TIA, JJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts converts null to 0 ?
internally BeanUtils uses ConvertUtils to convert from Strings to objects. You can deregister the default converters http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/ConvertUtils.html The default converters are initialised as follows with 0 for most numeric defaults. if you construct and register converters with no default value, null will be returned for or when an error occurs converters.clear(); converters.put(BigDecimal.class, new BigDecimalConverter()); converters.put(BigInteger.class, new BigIntegerConverter()); converters.put(Boolean.TYPE, new BooleanConverter(defaultBoolean)); converters.put(Boolean.class, new BooleanConverter(defaultBoolean)); converters.put(booleanArray.getClass(), new BooleanArrayConverter(booleanArray)); converters.put(Byte.TYPE, new ByteConverter(defaultByte)); converters.put(Byte.class, new ByteConverter(defaultByte)); converters.put(byteArray.getClass(), new ByteArrayConverter(byteArray)); converters.put(Character.TYPE, new CharacterConverter(defaultCharacter)); converters.put(Character.class, new CharacterConverter(defaultCharacter)); converters.put(charArray.getClass(), new CharacterArrayConverter(charArray)); converters.put(Class.class, new ClassConverter()); converters.put(Double.TYPE, new DoubleConverter(defaultDouble)); converters.put(Double.class, new DoubleConverter(defaultDouble)); converters.put(doubleArray.getClass(), new DoubleArrayConverter(doubleArray)); converters.put(Float.TYPE, new FloatConverter(defaultFloat)); converters.put(Float.class, new FloatConverter(defaultFloat)); converters.put(floatArray.getClass(), new FloatArrayConverter(floatArray)); converters.put(Integer.TYPE, new IntegerConverter(defaultInteger)); converters.put(Integer.class, new IntegerConverter(defaultInteger)); converters.put(intArray.getClass(), new IntegerArrayConverter(intArray)); converters.put(Long.TYPE, new LongConverter(defaultLong)); converters.put(Long.class, new LongConverter(defaultLong)); converters.put(longArray.getClass(), new LongArrayConverter(longArray)); converters.put(Short.TYPE, new ShortConverter(defaultShort)); converters.put(Short.class, new ShortConverter(defaultShort)); converters.put(shortArray.getClass(), new ShortArrayConverter(shortArray)); converters.put(String.class, new StringConverter()); converters.put(stringArray.getClass(), new StringArrayConverter(stringArray)); converters.put(Date.class, new SqlDateConverter()); converters.put(Time.class, new SqlTimeConverter()); converters.put(Timestamp.class, new SqlTimestampConverter()); Larry Meadors wrote: Yeah, that is the joy of bean-utils. It is best to leave it a stringon the form and convert it yourself. [EMAIL PROTECTED] 02/16/04 7:45 AM I have a form with a Long property; I used Long instead of long to have the property nullable, but if the (html) form includes such a property, struts sets the corresponding bean property to 0, even if it has no value (value=); what I'd like is struts to leave the property at null!! It also behaves so if the (html) property has non numeric value!! Any help is VERY appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
Mate, if you wanted a sheltered workshop then you should have become a b***y sugar farmer. -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 February 2004 03:40 To: Struts Users Mailing List Subject: RE: Java / J2EE Developer James Mitchell [EMAIL PROTECTED] wrote: Looks like the only way to compete is to improve yourself. That works for me, what about you? I can improve myself all I want to, but if/when our CEO says that workers in India, China, or whatever other country work for pennies on my salary's dollar, then there goes my job. Our division leader has already said as much, and with that in mind I suspect that I'll be moving on within a few years. But the self-improvement comment is somewhat irrelevent, although to some degree I saw what you were getting at. The issue at hand is excessive corporate greed, and making the bottom line look as sweet to shareholders as possible. Even at the detrimental expense of the livelihood of a large number of highly-skilled American workers who have families, mortgages and lives to live. With that in mind, I find the act of outsourcing to be extremely disgusting. 'Nuff said. Back to the Struts discussions. And I apologize for further contributing to the off-topicness of this thread. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java / J2EE Developer
Hi Sirni, I think u played spoil sport over here.I think u r even mature enough and educated enough to understand this is a forum to discuss Struts related problems and look what uor foolish act of finding jobs in forum have done.I think if u did this act unkowingly then it is ok but if u did to get fun then better try not to put uor idiotic questions over here rather there r hundreds of jobs sites available go and post uor request over there. Please don't mind but uor request is not suited for this site try some jobs site. Have a nice day. Vishal Srini Pacharu wrote: Hi friends, I am looking for the position of Java / J2EE developer.I have experience of about 3 years in developing Java / J2EE applications.I worked extensively with Java, JSP, Servlets,EJB,Oracle, UML,HTML,XML,BEA Weblogic and frame works like Struts and webworks.I have used several J2EE Patterns.If you come across any opening please do let me know.Thank you everyone in advance.Have a good week ahead. -Srini. - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FileUploading Error
Hmmm. Sounds rather like a browser issue to me. You might want to see what is actually being passed in that request - if its actually a valid multipart request or not! I had a try in IE, but IE's file selector is too smart to allow selection of a folder as the upload file. Which browser are you using? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 February 2004 00:13 To: Struts Users Mailing List Subject: Re: FileUploading Error At 9:35 AM -0500 2/16/04, Mark Shifman wrote: In trying to bulletproof file uploading I noticed something odd. If I type some junk in the field for the file name and hit Submit, I get a file of size 0. I can deal with that. If I type in a directory name in my home directory (admittedly a dumb thing to type) nothing seems to happen and I get this error in my log file. ERROR 2004-02-13 14:09:18,679 handleRequest(CommonsMultipartRequestHandler.java:241) Failed to parse multipart request org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly ... This error seems to be thrown before it even gets to my UploadAction. How do I catch this and tell the user the file typed in is invalid? In Javascript, the value of the form field is the path to the file; you might be able to apply a mask validation testing for a reasonable filename -- this is far from perfect, but may help. I use this as a cheap way to get around the lack of support for the accepts attribute -- I test to see if the file has a right extension using the mask validator. Just one thought... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hoe to use Actionpath in validation.xml???
Hi, Thanks Nial , im using ValidatorActionForm, let me try that one. Subramaniam Olaganthan Tata Consultancy Services Plot No. 21 Industrial Estate,, Ambattur Chennai,Tamil Nadu India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Niall Pemberton [EMAIL PROTECTED] 02/17/2004 05:33 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: Hoe to use Actionpath in validation.xml??? Its all down to the flavour of ActionForm you use. There a four validation flavours of ActionForm shipped with Struts: org.apache.struts.validator.ValidatorForm org.apache.struts.validator.ValidatorActionForm org.apache.struts.validator.DynaValidatorForm org.apache.struts.validator.DynaValidatorActionForm If your action forms are based on ValidatorForm or DynaValidatorForm then they use the associated form name from struts-config.xml to look up the validation rules in the validation configuration. If you use ValidatorActionForm or DynaValidatorActionForm then they use the path from the struts-config.xml to look up validations. If you are not happy with either of these mechanisms, then all you have to do is write your own ActionForm.validate() method which uses whatever naming you want to access validator. >From the struts-config.xml: action path=/myPathName name=myFormName .. /action In your validation.xml file: form name=/myPathName .. /form Niall - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List Sent: Monday, February 16, 2004 7:57 PM Subject: Hoe to use Actionpath in validation.xml??? Hi All, how to use action paths in validation.xml. Sample code will be greatly appreciated. Thanks in advance. Thanks and Regards Subramaniam Olaganthan Tata Consultancy Services India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT2EDE DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaMail examples
Will SUN out ant effort to supply build.xml for javamail examples? I noticed that the current environment uses bat(ch) files .very VERY user hostile.. Thank You, Martin Gainty (m)001-617-852-7822 (e)[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]