Tomcat 4.1 and indexId
Hello! In my application I am using the indexId attribute in the nested:iterate tag. During development under NetBeans/Tomcat 4.0 all is ok. When I deploye my application with a Tomcat 4.0 server, all is ok too. But when I use a Tomcat 4.1 version, this error occures: Error compiling file: editWeekDistribution_jsp.java [javac] Compiling 1 source file ...editWeekDistribution_jsp.java:271: _jspx_weekNumber_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) java.lang.Integer _jspx_weekNumber_1 = weekNumber; ^ ...editWeekDistribution_jsp.java:271: cannot resolve symbol symbol : variable weekNumber location: class org.apache.jsp.editWeekDistribution_jsp java.lang.Integer _jspx_weekNumber_1 = weekNumber; Thanks for your help, Arno -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1 and indexId
What version of tomcat 4.1? Is the 4.12 version or earlier? Regards -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de noviembre de 2002 9:57 Para: Struts Users Mailing List Asunto: Tomcat 4.1 and indexId Hello! In my application I am using the indexId attribute in the nested:iterate tag. During development under NetBeans/Tomcat 4.0 all is ok. When I deploye my application with a Tomcat 4.0 server, all is ok too. But when I use a Tomcat 4.1 version, this error occures: Error compiling file: editWeekDistribution_jsp.java [javac] Compiling 1 source file ...editWeekDistribution_jsp.java:271: _jspx_weekNumber_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.ht tp.HttpServletResponse) java.lang.Integer _jspx_weekNumber_1 = weekNumber; ^ ...editWeekDistribution_jsp.java:271: cannot resolve symbol symbol : variable weekNumber location: class org.apache.jsp.editWeekDistribution_jsp java.lang.Integer _jspx_weekNumber_1 = weekNumber; Thanks for your help, Arno -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Réf. : RE: Tomcat 4.1 and indexId
It is the Apache Tomcat/4.1.10-LE-jdk14 Miguel Angel Mulero Martinez Pour : Struts Users Mailing List [EMAIL PROTECTED] [EMAIL PROTECTED]cc : csidel.es Objet : RE: Tomcat 4.1 and indexId 21/11/2002 09:58 Veuillez répondre à Struts Users Mailing List What version of tomcat 4.1? Is the 4.12 version or earlier? Regards -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de noviembre de 2002 9:57 Para: Struts Users Mailing List Asunto: Tomcat 4.1 and indexId Hello! In my application I am using the indexId attribute in the nested:iterate tag. During development under NetBeans/Tomcat 4.0 all is ok. When I deploye my application with a Tomcat 4.0 server, all is ok too. But when I use a Tomcat 4.1 version, this error occures: Error compiling file: editWeekDistribution_jsp.java [javac] Compiling 1 source file ...editWeekDistribution_jsp.java:271: _jspx_weekNumber_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.ht tp.HttpServletResponse) java.lang.Integer _jspx_weekNumber_1 = weekNumber; ^ ...editWeekDistribution_jsp.java:271: cannot resolve symbol symbol : variable weekNumber location: class org.apache.jsp.editWeekDistribution_jsp java.lang.Integer _jspx_weekNumber_1 = weekNumber; Thanks for your help, Arno -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT]Ignore-Test
Test -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Réf. : RE: Tomcat 4.1 and indexId
I download the latest version of tomcat (4.1.12) and the indexId attribute of the nested:iterate tag works. Thanks for your idea! Miguel Angel Mulero Martinez Pour : Struts Users Mailing List [EMAIL PROTECTED] [EMAIL PROTECTED]cc : csidel.es Objet : RE: Tomcat 4.1 and indexId 21/11/2002 09:58 Veuillez répondre à Struts Users Mailing List What version of tomcat 4.1? Is the 4.12 version or earlier? Regards -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de noviembre de 2002 9:57 Para: Struts Users Mailing List Asunto: Tomcat 4.1 and indexId Hello! In my application I am using the indexId attribute in the nested:iterate tag. During development under NetBeans/Tomcat 4.0 all is ok. When I deploye my application with a Tomcat 4.0 server, all is ok too. But when I use a Tomcat 4.1 version, this error occures: Error compiling file: editWeekDistribution_jsp.java [javac] Compiling 1 source file ...editWeekDistribution_jsp.java:271: _jspx_weekNumber_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.ht tp.HttpServletResponse) java.lang.Integer _jspx_weekNumber_1 = weekNumber; ^ ...editWeekDistribution_jsp.java:271: cannot resolve symbol symbol : variable weekNumber location: class org.apache.jsp.editWeekDistribution_jsp java.lang.Integer _jspx_weekNumber_1 = weekNumber; Thanks for your help, Arno -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Max file size when upload in struts-1.1b2
Dear group, I'm using struts-1.1b2. What should I do to set the maximum file size over 1M as I want to upload a file? Thanks, Huy __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP's under WEB-INF... or not
Just curious - why would one choose to do this instead of simply locating their JSP pages under WEB-INF (which is also portable)? Well, the way I look at it, the WEB-INF is a container for application resource files and meta data, not for the real application. Also, if you put your stuff in WEB-INF, you'll lock yourself down to the controller servlet paradigm. I can't come up with a reason right now to have direct access to one of your jsp files, but if you DO, you won't be able to access it within WEB-INF, whatever you do. With a deployment rule, you can always ease on restrictions. -- Erik Beijnoff Systems development Addsystems [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to prepare a bean for bean:... and define:... with dynamic fields?
Hi, I have a database application, thus I fetch fields thay I cannot read via getter methods. How can I provide the data to struts that I can use for example bean:define id=realName name=row property=fullname / Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Struts Tip] #16 How to (not) check a radio button
Each radio button element requires an assigned value that distinguishes it from the other radio buttons. When creating a static array of radio buttons, you need to indicate which one of these, if any, is checked. This does not need to be done when the radio buttons are being populated from dynamic data. The control can compare itself to the form bean's property and then check itself when appropriate. [more ... http://husted.com/struts/tips/016.html] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
name of zip file???chuck cavaness book
Hello all, i have finally resolved my download problem of struts book chapters from the sitre theserverside.com It is very simple http://www2.theserverside.com/resources/review/name of zip file to be downloaded.zip but one problem persist ...that can be resolved if someone who has already downloaded the chapters ...gives me the name of the zip file that gets downloaded when u try downloading the chapter no. 15 and chapter no 17. e.g. when i donload chapter no 1 the zip file i download is "struts-chapter1-apr25" similarly what is the name for the zip file for chapter no 15 and 17??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Forwarding and File Download problem
Eddie, The reference you refer to is for upload, so I am a bit confused as you talk about download. I assume you do mean download so: To change the name that you are downloading you need to have a mapping to your download servlet so that you can use a request path like http://../download/myFile.jpg then the browser dialog will show myFile.jpg. I am not sure how you'd acheive this with an Action Class, I'd look around creating a new mapping something like this: servlet-mapping servlet-nameaction/servlet-name url-pattern/download/*/url-pattern /servlet-mapping Before anyone shoots me down, I am not at all sure this will work as it stands, but it is a starting point. As far as the redirection after the download is concerned, you have a problem in that the browser is requesting the page and then doing nothing else. That's the way HTTP works :-( You could experiment with using a refresh header tag in the page from which you launch the download, so that it refreshes every 5 seconds or so. Hope the (slightly vague) ideas help. Mike At 17:28 21/11/2002 +1100, you wrote: This is an old one but I have scoured the archives and not seen a definitive answer to my problem. I am downloading a file via an Action class and want to refresh the Page display after the download completes. Now the action which should be forwarded to is not being executed. I have even tried to forward to a JSP rather than Action class but nothing seems to work. This has been reported on more than one occasion eg: http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]msgId=154587 Never found a definitive answer. Also the dialog box that IE pops up says that you are downloading the file: action class name from localhost. This is misleading as the actual dialog box that is next presented correctly names the output file name that I have set up. How can I change the name of the file on the first dialog box ? TIA Eddie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Mike Way, Senior Consultant, Shared Skills Ltd +44 (0)1752 491088, mobile +44 (0) 7941 225581 email: [EMAIL PROTECTED] web: www.sharedskills.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: moving from struts-b2 to actual nigthly build...
David Graham wrote: If the Tiles request processor isn't being called then there's probably an error in your struts config. Can you post the section that defines the plugin? !-- == Controller Configuration -- controller / !-- == Message Resources Definitions -- message-resources parameter=messages.ApplicationResources / !-- == Plug Ins Configuration = -- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathname value=/WEB-INF/validation/validator-rules.xml, /WEB-INF/validation/validation.xml/ /plug-in plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles/tile-frameset-content-definitions.xml, /WEB-INF/tiles/tile-dv-block-definitions.xml, /WEB-INF/tiles/tile-dv-content-definitions.xml, /WEB-INF/tiles/tile-dv-fusszeile-definitions.xml, /WEB-INF/tiles/tile-bv-block-definitions.xml, /WEB-INF/tiles/tile-bv-content-definitions.xml / set-property property=moduleAware value=true / /plug-in * tia, Andreas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Réf. : RE: Tomcat 4.1 and indexId
I don't know if this is your case, but version 4.10 4.11 had a bug under windows if you install it in a different drive from C:. They fail when try to compile JSP. Alos it isn't your case, I recommend to you change to version 4.12 or 4.05 (other versions have a security problem with default servlet that allows to see the code of your JSP or other resources). Regards, Miguel -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de noviembre de 2002 10:08 Para: Struts Users Mailing List Asunto: Réf. : RE: Tomcat 4.1 and indexId It is the Apache Tomcat/4.1.10-LE-jdk14 Miguel Angel Mulero Martinez Pour : Struts Users Mailing List [EMAIL PROTECTED] [EMAIL PROTECTED]cc : csidel.es Objet : RE: Tomcat 4.1 and indexId 21/11/2002 09:58 Veuillez répondre à Struts Users Mailing List What version of tomcat 4.1? Is the 4.12 version or earlier? Regards -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de noviembre de 2002 9:57 Para: Struts Users Mailing List Asunto: Tomcat 4.1 and indexId Hello! In my application I am using the indexId attribute in the nested:iterate tag. During development under NetBeans/Tomcat 4.0 all is ok. When I deploye my application with a Tomcat 4.0 server, all is ok too. But when I use a Tomcat 4.1 version, this error occures: Error compiling file: editWeekDistribution_jsp.java [javac] Compiling 1 source file ...editWeekDistribution_jsp.java:271: _jspx_weekNumber_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.ht tp.HttpServletResponse) java.lang.Integer _jspx_weekNumber_1 = weekNumber; ^ ...editWeekDistribution_jsp.java:271: cannot resolve symbol symbol : variable weekNumber location: class org.apache.jsp.editWeekDistribution_jsp java.lang.Integer _jspx_weekNumber_1 = weekNumber; Thanks for your help, Arno -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: name of zip file???chuck cavaness book
Chuck has worked very hard to get this book into print. In case you don't know, he has a family (wife and two sons) to support. He is too nice of a guy to say this, so I will say it for him... There is a reason that the download page is not there anymore. Buy the book. The dedicated individuals who spend hours each day helping others resolve issues get ABSOLUTELY NO compensation for doing so. For those who are lucky enough to get a book deal, the proceeds from it are hardly compensation for the enormous amount of time it takes to bring it to print. I know there will still be some who try to cheat him out of what little income he gets from each print, but the rest of us honest folk can do our part and thank him with our wallets. I purchased Ted's pdf the same day it was available, and I plan to pick up Chuck's as soon as it hits the shelves at my local book store. I also own the other 2 books Chuck has co-authored. Thank you Craig, Ted, Chuck, Brian, Sue, James and others (there are too many to name) for your wisdom, guidance, and patience. Besides the day to day knowledge transfer, having a good book beside us helps us all do our jobs better.so THANK YOU James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Shalu Goel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:51 AM To: Struts Users Mailing List Subject: name of zip file???chuck cavaness book Hello all, i have finally resolved my download problem of struts book chapters from the sitre theserverside.com It is very simple http://www2.theserverside.com/resources/review/name of zip file to be downloaded.zip but one problem persist ...that can be resolved if someone who has already downloaded the chapters ...gives me the name of the zip file that gets downloaded when u try downloading the chapter no. 15 and chapter no 17. e.g. when i donload chapter no 1 the zip file i download is struts-chapter1-apr25 similarly what is the name for the zip file for chapter no 15 and 17??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IE's autocomplete
Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Strutstest with tiles - verifyForward behavior
Pete, I'm seeing the same behavior... plus more weirdness. I'm using the latest CVS snapshot; I guess strutstestcase is not ready for testing those kind of Struts applications yet. tom Pete Gieser wrote: Using MockStrutsCase (from release 1.9) with the following test method: public void testManagerSuccess() { setRequestPathInfo(/famnet); actionPerform(); verifyForward(success); assertNotNull(getSession().getAttribute(members)); verifyNoActionErrors(); } and this section from struts-config.xml: action path=/famnet type=famnet.ManagerAction forward name=success path=famnet.list / /action and this section from tiles-def.xml: definition name=famnet.list path=/layout/layout.jsp extends=main.layout put name=title value=Members/ put name=body value=/famnet/listBody.jsp/ /definition I'm getting the following error: processActionForward(famnet.list, false) 'famnet.list' - processed as definition - --- Testcase: testManagerSuccess took 3.636 sec FAILED was expecting 'famnet.list' but received '/layout/layout.jsp' junit.framework.AssertionFailedError: was expecting 'famnet.list' but received '/layout/layout.jsp' at servletunit.struts.Common.verifyForwardPath(Common.java:152) at servletunit.struts.MockStrutsTestCase.verifyForward(MockStrutsTestCase.j ava:462) at struts.junit.TestManagerAction.testManagerSuccess(TestManagerAction.java :26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) Is this a bug, or is there something else I should be doing? Pete -- thomas quas| The truth indeed has never been preached by the Buddha, [EMAIL PROTECTED]| seeing that one has to realize it within oneself. |-- Lamkara Sutra -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Max file size when upload in struts-1.1b2
Set the following in the struts-config. controller maxFileSize=500K / For file sizes in MB use 1M, 1.5M etc. HTH Vikram - Original Message - From: Huynh Ngoc Huy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 7:33 PM Subject: Max file size when upload in struts-1.1b2 Dear group, I'm using struts-1.1b2. What should I do to set the maximum file size over 1M as I want to upload a file? Thanks, Huy __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Durability of a ActionForm
Hi all, My question is how can I make for extend the durability of a request scope ActionForm. For example, in my Action I can do somethig like: request.setAttribute(form, form); In this way, the ActionForm that I retrieved from the JSP and arrived to the Action, will arrive to the next JSP. But, how can I do it in the JSP no make it arrive to the next Action? My problem is that I wan't to use a request ActionForm (not a session), and if I create it in the Action before the JSP, when I make a submit the ActionForm doesn't exist and Struts creates one new. If I don't put the Action before the JSP, then Struts creates it in the JSP and it calls the submit function when I make submit. I wan't to achieve the second without putting the ActionForm in session scope and creating it in the Action before the JSP. Thanks all!! Miguel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: name of zip file???chuck cavaness book
Thanks James to bring it to my notice!!! I truly appreciate ur sentiments I promise!! i will surely buy it as soon as it is available in the book stores... But wait a minute i think u should always think of the possibility wherein a newbie honestly looking all out to get some packaged material on the technology to use and promote in one's own place of working... The reason why i am screaming BOOK!!! BOOK!!! is, i honestly thought it is not the issue with the chuck books getting printed rather... some s/w devolper has overwritten a jsp page(download.jsp) at theserverside.comHad it not been the case they would have also removed the link http://www2.theserverside.com/resources/strutsreview.jsp which talks about downloading the book chapters and then takes to a different page altogether there would surely have just been a list... no hyperlinks ..no instructions to download it ... Also i have enquired at bookstore in my local area ...Chuck's book has not reached the book stores yet!!! I gather... u have been a very sincere, honest and dedicated s/w professional ...but does ur innate humanity not gives you all the more reasons to trust others too??? Thanks and Regards Shalu - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 4:52 PM Subject: RE: name of zip file???chuck cavaness book Chuck has worked very hard to get this book into print. In case you don't know, he has a family (wife and two sons) to support. He is too nice of a guy to say this, so I will say it for him... There is a reason that the download page is not there anymore. Buy the book. The dedicated individuals who spend hours each day helping others resolve issues get ABSOLUTELY NO compensation for doing so. For those who are lucky enough to get a book deal, the proceeds from it are hardly compensation for the enormous amount of time it takes to bring it to print. I know there will still be some who try to cheat him out of what little income he gets from each print, but the rest of us honest folk can do our part and thank him with our wallets. I purchased Ted's pdf the same day it was available, and I plan to pick up Chuck's as soon as it hits the shelves at my local book store. I also own the other 2 books Chuck has co-authored. Thank you Craig, Ted, Chuck, Brian, Sue, James and others (there are too many to name) for your wisdom, guidance, and patience. Besides the day to day knowledge transfer, having a good book beside us helps us all do our jobs better.so THANK YOU James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Shalu Goel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:51 AM To: Struts Users Mailing List Subject: name of zip file???chuck cavaness book Hello all, i have finally resolved my download problem of struts book chapters from the sitre theserverside.com It is very simple http://www2.theserverside.com/resources/review/name of zip file to be downloaded.zip but one problem persist ...that can be resolved if someone who has already downloaded the chapters ...gives me the name of the zip file that gets downloaded when u try downloading the chapter no. 15 and chapter no 17. e.g. when i donload chapter no 1 the zip file i download is struts-chapter1-apr25 similarly what is the name for the zip file for chapter no 15 and 17??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question About Modules
We used FOP to generate dynamic pdf through the action. The action itself returned null. Vikram - Original Message - From: Madel,Kurt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 5:46 AM Subject: RE: Question About Modules Anyone using modules and going through an action to generate dynamic database driven pdf's??? Anyone . Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:27 AM To: 'Struts Users Mailing List' Subject: Question About Modules My understanding is that you have to use an extension mapping in order to use the Module functionality, i.e. '*.do' What are people doing if they need to serve say a '.pdf' from an action? That is, my pdf is dynamic and requires the use of the same DAO's that I use for my jsp pages. Sure you can set the mime type, but Internet Explorer ignores these most of the time and counts on the extension. If you map *.pdf and *.do then you won't be able to server static pdf's??? Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Question About Modules
You generate the PDF using FOP and attach to the request or session the forward to a JSP or Servlet that will serve the contect with the correct type etc. -Original Message- From: Vikram Goyal [mailto:[EMAIL PROTECTED]] Sent: 21 November, 2002 14:01 To: Struts Users Mailing List Subject: Re: Question About Modules We used FOP to generate dynamic pdf through the action. The action itself returned null. Vikram - Original Message - From: Madel,Kurt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 5:46 AM Subject: RE: Question About Modules Anyone using modules and going through an action to generate dynamic database driven pdf's??? Anyone . Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Madel,Kurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:27 AM To: 'Struts Users Mailing List' Subject: Question About Modules My understanding is that you have to use an extension mapping in order to use the Module functionality, i.e. '*.do' What are people doing if they need to serve say a '.pdf' from an action? That is, my pdf is dynamic and requires the use of the same DAO's that I use for my jsp pages. Sure you can set the mime type, but Internet Explorer ignores these most of the time and counts on the extension. If you map *.pdf and *.do then you won't be able to server static pdf's??? Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Html:select doesn't select correct element..
I have a problem with html:select not setting selected=selected for the correct item in a list of options. The weird thing is that it works fine for all bar one of my pages. I have checked that the property being passed in exists in the list of options using a bean:write just above the html:select statement. channelCommodity has the value of one of the elements 'code' in our collection. A snippet of the code I'm using which doesn't work properly: bean:define id=commodities name=CHANNELEDITFORM property=commodityUnits / html:select size=1 property=channelCommodity html:options collection=commodities property=code labelProperty=display/ /html:select A snippet of the code I'm using which works correctly on another jsp page: bean:define id=statuses name=MEASURINGDEVICEEDITFORM property=energisationStatuses / html:select size=1 property=energisation html:options collection=statuses property=code labelProperty=display/ /html:select I should point out that there are no errors with the pages displayed apart from the missing selected=selected for the element that should be selected. This is using struts 1.0.2 and running on tomcat 4.0.4. Any suggestions? Cheers Ash Beeson - IT Consultant email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
RE: IE's autocomplete
David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Html:select doesn't select correct element..
Stupid question, is the value supplied by the form exactly equal to one of the values supplied by the collection? Edgar -Original Message- From: Beeson, Ashley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:33 AM To: '[EMAIL PROTECTED]' Subject: Html:select doesn't select correct element.. I have a problem with html:select not setting selected=selected for the correct item in a list of options. The weird thing is that it works fine for all bar one of my pages. I have checked that the property being passed in exists in the list of options using a bean:write just above the html:select statement. channelCommodity has the value of one of the elements 'code' in our collection. A snippet of the code I'm using which doesn't work properly: bean:define id=commodities name=CHANNELEDITFORM property=commodityUnits / html:select size=1 property=channelCommodity html:options collection=commodities property=code labelProperty=display/ /html:select A snippet of the code I'm using which works correctly on another jsp page: bean:define id=statuses name=MEASURINGDEVICEEDITFORM property=energisationStatuses / html:select size=1 property=energisation html:options collection=statuses property=code labelProperty=display/ /html:select I should point out that there are no errors with the pages displayed apart from the missing selected=selected for the element that should be selected. This is using struts 1.0.2 and running on tomcat 4.0.4. Any suggestions? Cheers Ash Beeson - IT Consultant email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Forwarding and File Download problem
The reference you refer to is for upload, so I am a bit confused as you talk about download. I believe the issues are the same and the previous posting appears to describe the same behavior..Simply that the data stream seems to 'prevent', in some way , the processing of the rest of the code ie. after the output stream is closed I can see that the Action forward code is run but the JSP does not seem to have been forwarded to. If it had then the page would have been refreshed. I even tried to forward to the same action class but with a different action value so that it would 're-enter' itself and exit , forwarding to a JSP but it didn't work. It appears that the Controller is ignoring the forwarding that has been mapped in the struts-config.xml file... You could experiment with using a refresh header tag in the page from which you launch the download, so that it refreshes every seconds or so. Unfortunately it is only when a file is downloaded that I need to show the 'refresh' behavior.. Thanks anyway.. Eddie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: name of zip file???chuck cavaness book
-Original Message- From: Shalu Goel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:12 AM To: Struts Users Mailing List Subject: Re: name of zip file???chuck cavaness book Thanks James to bring it to my notice!!! I truly appreciate ur sentiments I promise!! i will surely buy it as soon as it is available in the book stores... That's great. I'm sure Chuck would appreciate it. But wait a minute i think u should always think of the possibility wherein a newbie honestly looking all out to get some packaged material on the technology to use and promote in one's own place of working... True. The reason why i am screaming BOOK!!! BOOK!!! is, i honestly thought it is not the issue with the chuck books getting printed rather... some s/w devolper has overwritten a jsp page(download.jsp) at theserverside.com Yes, and that's perfectly understandable. Had it not been the case they would have also removed the link http://www2.theserverside.com/resources/strutsreview.jsp which talks about downloading the book chapters and then takes to a different page altogether I understand where you are coming from. Unless I'm way off and this whole this was (as you say) an overwritten jsp, it's not fair for the reader or the author that there are pages with bad information and/or links on them. I mean, what's the author supposed to say.the preview is no longer free That's only going to piss off people. And that's the last thing you want to do is piss off your audienceespecially with a book on such a specific topic. there would surely have just been a list... no hyperlinks ..no instructions to download it ... Also i have enquired at bookstore in my local area ...Chuck's book has not reached the book stores yet!!! I gather... u have been a very sincere, honest and dedicated s/w professional ...but does ur innate humanity not gives you all the more reasons to trust others too??? My message was not intended to be personal. I'm sorry if it came off that way. In fact, I had put don't take this personally before sending, but decided to delete it because it is such an over-used phrase to hide vindictive comments. Thanks and Regards Shalu James I can't believe he didn't pick Brook!!! Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: moving from struts-b2 to actual nigthly build...
It works now... but i can't say exactly, what i've changed... the main struts-config file was correct, but in the sub-apps config files were differences... i think, i need in every config-file in every tiles-plugin-definition the same set (all) of tiles-def-files. thanks, Andreas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Struts Tip] #16 How to (not) check a radio button
Hi Ted, In your example for Struts beta2 you show that the collections of label and value is initialized in the Action. Is it better to perform this functionality in the ActionForm bean? -Shakeel Ted wrote: Each radio button element requires an assigned value that distinguishes it from the other radio buttons. When creating a static array of radio buttons, you need to indicate which one of these, if any, is checked. This does not need to be done when the radio buttons are being populated from dynamic data. The control can compare itself to the form bean's property and then check itself when appropriate. [more ... http://husted.com/struts/tips/016.html] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/aut ocomplete_ovr.asp It's disabled by adding autocomplete=off to the form tag or to an input tag. AFAIK, this means that the struts-html taglib would have to support the autocomplete attribute for html:form and html:text. Shouldn't be too difficult add this functionality (in your own struts source tree if nothing else). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Html:select doesn't select correct element..
Yes, I've checked this by printing out the value in the JSP and cross referencing it with the html option value=blah in the source generated. I can only assume that for some reason on that one page the comparison is failing. I have no idea why. I've checked that there are no spaces / hidden control characters that might throw it off as well. Ash -Original Message- From: edgar [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 12:57 To: 'Struts Users Mailing List' Subject: RE: Html:select doesn't select correct element.. Stupid question, is the value supplied by the form exactly equal to one of the values supplied by the collection? Edgar -Original Message- From: Beeson, Ashley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:33 AM To: '[EMAIL PROTECTED]' Subject: Html:select doesn't select correct element.. I have a problem with html:select not setting selected=selected for the correct item in a list of options. The weird thing is that it works fine for all bar one of my pages. I have checked that the property being passed in exists in the list of options using a bean:write just above the html:select statement. channelCommodity has the value of one of the elements 'code' in our collection. A snippet of the code I'm using which doesn't work properly: bean:define id=commodities name=CHANNELEDITFORM property=commodityUnits / html:select size=1 property=channelCommodity html:options collection=commodities property=code labelProperty=display/ /html:select A snippet of the code I'm using which works correctly on another jsp page: bean:define id=statuses name=MEASURINGDEVICEEDITFORM property=energisationStatuses / html:select size=1 property=energisation html:options collection=statuses property=code labelProperty=display/ /html:select I should point out that there are no errors with the pages displayed apart from the missing selected=selected for the element that should be selected. This is using struts 1.0.2 and running on tomcat 4.0.4. Any suggestions? Cheers Ash Beeson - IT Consultant email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Index Based Names in Iterate Tag
I want to present a collection of beans using the logic:iterate tag. One of the fields in the collection is another collection of beans. This second collection of beans I want presented in an html select object. In my Action Class, I'd like to iterate through the first collection creating http request attributes, each one containing an instance of the second collection. Something like this: List list = (List) getList(); Iterator it = list.iterator(); for (i=1; it.hasNext(), i++) { MyBean myBean = (MyBean) it.next(); request.setAttribute (select+ i, (List) myBean.getOtherList()); } I want to use the html:options tag to populate the select objects. The collection parameter of html:options will have to the name of the attributes created above (i.e., select1, select2, select3,...) How can I create the collection name in each html:options tag in the jsp? Can I use the indexId of the Iterate tag somehow to create it? For example, something like: table border=0 cellpadding=0 cellspacing=0 logic:iterate ... tr td html:select property=key html:options collection=select + indexOf property=id labelProperty=description / /html:select /td /tr /logic:iterate /table I know my use of indexOf can't be right. I'm just trying to show the idea of what I'm trying to do. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Index Based Names in Iterate Tag
Where I say indexOf below, I meant to say indexId. Thanks again. -Original Message- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:44 AM To: Struts (E-mail) Subject: Index Based Names in Iterate Tag I want to present a collection of beans using the logic:iterate tag. One of the fields in the collection is another collection of beans. This second collection of beans I want presented in an html select object. In my Action Class, I'd like to iterate through the first collection creating http request attributes, each one containing an instance of the second collection. Something like this: List list = (List) getList(); Iterator it = list.iterator(); for (i=1; it.hasNext(), i++) { MyBean myBean = (MyBean) it.next(); request.setAttribute (select+ i, (List) myBean.getOtherList()); } I want to use the html:options tag to populate the select objects. The collection parameter of html:options will have to the name of the attributes created above (i.e., select1, select2, select3,...) How can I create the collection name in each html:options tag in the jsp? Can I use the indexId of the Iterate tag somehow to create it? For example, something like: table border=0 cellpadding=0 cellspacing=0 logic:iterate ... tr td html:select property=key html:options collection=select + indexOf property=id labelProperty=description / /html:select /td /tr /logic:iterate /table I know my use of indexOf can't be right. I'm just trying to show the idea of what I'm trying to do. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strutstest with tiles - verifyForward behavior
I also notice that a bug has been filed by another individual on sourceforge that is displaying this same behavior...so I guess you are right. Pete -Original Message- From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Quas Sent: Tuesday, November 19, 2002 1:38 AM To: [EMAIL PROTECTED] Subject: Re: Strutstest with tiles - verifyForward behavior Pete, I'm seeing the same behavior... plus more weirdness. I'm using the latest CVS snapshot; I guess strutstestcase is not ready for testing those kind of Struts applications yet. tom Pete Gieser wrote: Using MockStrutsCase (from release 1.9) with the following test method: public void testManagerSuccess() { setRequestPathInfo(/famnet); actionPerform(); verifyForward(success); assertNotNull(getSession().getAttribute(members)); verifyNoActionErrors(); } and this section from struts-config.xml: action path=/famnet type=famnet.ManagerAction forward name=success path=famnet.list / /action and this section from tiles-def.xml: definition name=famnet.list path=/layout/layout.jsp extends=main.layout put name=title value=Members/ put name=body value=/famnet/listBody.jsp/ /definition I'm getting the following error: processActionForward(famnet.list, false) 'famnet.list' - processed as definition - --- Testcase: testManagerSuccess took 3.636 sec FAILED was expecting 'famnet.list' but received '/layout/layout.jsp' junit.framework.AssertionFailedError: was expecting 'famnet.list' but received '/layout/layout.jsp' -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] How to tell when a project you are on is in trouble
I think (hope?) that it's a joke Andrew. Although the subject line makes me think that it might be real and therefore very, very worrying. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:41 PM To: Struts Users Mailing List Subject: RE: [OT] How to tell when a project you are on is in trouble used if the object must not be null and it is Ummm. Surely thats what the java.lang.NullPointerException is for? -Original Message- From: Jeff Caddel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 13:32 To: [EMAIL PROTECTED] Subject: [OT] How to tell when a project you are on is in trouble The architect of the project a friend of mine is on just unleashed this beauty into the source tree, thought ya'll might get a kick out of it: /** * NullObjectException * * Copyright © 2001,2002 ## Corp. All rights reserved. * This exception is used if the object must not be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh?? Jeff Caddel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL in Struts.
I wish to use JSTL taglib in my project (Struts 1.1b2). I have read on the mailing-list that latest versions of Struts contain Struts-EL. I understood that this Struts-EL is an implementation of JSTL. But it requires the nightly builds. It seems that Sun and Jakarta Taglibs also provide JSTL. To me, I could download one of them, install it manually into Struts 1.1b2 and go. My question: what's the difference between Struts-EL and Jakarta Taglib JSTL, for example? why should I use Struts-EL, instead of JSTL from other sources? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Index Based Names in Iterate Tag
I think that you can use a scriplet to define the property name: % String property = null; % logic:iterate ... indexID=index html:select property=key % property = select + index; % html:options collection=%= property % property=id labelProperty=description / /html:select /logic:iterate Hope it helps Patrice - Original Message - From: Cohan, Sean [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 2:44 PM Subject: Index Based Names in Iterate Tag I want to present a collection of beans using the logic:iterate tag. One of the fields in the collection is another collection of beans. This second collection of beans I want presented in an html select object. In my Action Class, I'd like to iterate through the first collection creating http request attributes, each one containing an instance of the second collection. Something like this: List list = (List) getList(); Iterator it = list.iterator(); for (i=1; it.hasNext(), i++) { MyBean myBean = (MyBean) it.next(); request.setAttribute (select+ i, (List) myBean.getOtherList()); } I want to use the html:options tag to populate the select objects. The collection parameter of html:options will have to the name of the attributes created above (i.e., select1, select2, select3,...) How can I create the collection name in each html:options tag in the jsp? Can I use the indexId of the Iterate tag somehow to create it? For example, something like: table border=0 cellpadding=0 cellspacing=0 logic:iterate ... tr td html:select property=key html:options collection=select + indexOf property=id labelProperty=description / /html:select /td /tr /logic:iterate /table I know my use of indexOf can't be right. I'm just trying to show the idea of what I'm trying to do. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: extension provided to read configuration from database instead of XML
Thanks, is your system using it in this way ? -Original Message- From: Igor G. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 12:01 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: extension provided to read configuration from database instead of XML you can store it as a clob in a database Igor G. --- C.K [EMAIL PROTECTED] wrote: Hello, I am looking for an extension to read configuration from database instead of Struts.xml, does anyone come across such extension ? C.K __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSTL in Struts.
The Struts-EL supports EL just like JSTL. But the Struts-EL project is all the Struts custom tags you're used to, less functionality covered by tags in the JSTL. In essence, it forces developers to use the JSTL for certain functionality instead of relying on the Struts tags. This how this would have been if the JSTL was developed before the Struts custom tags. But the JSTL came after Struts, resulting in duplicate functionality between the two tag libraries. Hence, using Struts-EL encourages the use of standard custom tags (i.e. JSTL) in lieu of the Struts tags, where possible. Here's some more info from the readme file in the Struts-EL project: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL == Struts TagJSTL Tag -- cookiec:set, EL definec:set, EL headerc:set, EL include c:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL === Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqual c:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThan c:if, c:when, EL notEmpty c:if, c:when, EL notEqual c:if, c:when, EL notPresentc:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL == None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:19 AM To: '[EMAIL PROTECTED]' Subject: JSTL in Struts. I wish to use JSTL taglib in my project (Struts 1.1b2). I have read on the mailing-list that latest versions of Struts contain Struts-EL. I understood that this Struts-EL is an implementation of JSTL. But it requires the nightly builds. It seems that Sun and Jakarta Taglibs also provide JSTL. To me, I could download one of them, install it manually into Struts 1.1b2 and go. My question: what's the difference between Struts-EL and Jakarta Taglib JSTL, for example? why should I use Struts-EL, instead of JSTL from other sources? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the
RE: JSTL in Struts.
The Struts-EL supports EL just like JSTL. But the Struts-EL project is all the Struts custom tags you're used to, less functionality covered by tags in the JSTL. In essence, it forces developers to use the JSTL for certain functionality instead of relying on the Struts tags. This how this would have been if the JSTL was developed before the Struts custom tags. But the JSTL came after Struts, resulting in duplicate functionality between the two tag libraries. Hence, using Struts-EL encourages the use of standard custom tags (i.e. JSTL) in lieu of the Struts tags, where possible. Here's some more info from the readme file in the Struts-EL project: Thank you very much for the cut/paste. I could not find this information on the site. My additionnal question is: JSTL from Jakarta/Sun requires Tomcat4 (because of Servlet/JSP versions). Does Struts-EL also requires Tomcat4? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Page flow diagrams for Struts
Hi all, I was wondering if anyone has a good diagramatic representation of page flow that also captures forms and Action processing from submit buttons and links. I've have my own representation of course, but I was wonder what other people do. I suppose what I'm really after is a good story boarding technique that I can standardise on. Cheers ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
I like how it extends Exception which forces you to catch it. It seems like java has this already...maybe NullPointerException? At least that's a RuntimeException. Can you imagine having to catch all of the situations an object might be null? Tell your friend I'm sorry for him :-). David From: Jeff Caddel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] How to tell when a project you are on is in trouble Date: Wed, 20 Nov 2002 22:32:24 -0700 The architect of the project a friend of mine is on just unleashed this beauty into the source tree, thought ya'll might get a kick out of it: /** * NullObjectException * * Copyright © 2001,2002 ## Corp. All rights reserved. * This exception is used if the object must not be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh?? Jeff Caddel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSTL in Struts.
I believe Struts-EL (and any other EL tags) also require a servlet 2.3 container. David From: ROSSEL Olivier [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: JSTL in Struts. Date: Thu, 21 Nov 2002 15:40:29 +0100 The Struts-EL supports EL just like JSTL. But the Struts-EL project is all the Struts custom tags you're used to, less functionality covered by tags in the JSTL. In essence, it forces developers to use the JSTL for certain functionality instead of relying on the Struts tags. This how this would have been if the JSTL was developed before the Struts custom tags. But the JSTL came after Struts, resulting in duplicate functionality between the two tag libraries. Hence, using Struts-EL encourages the use of standard custom tags (i.e. JSTL) in lieu of the Struts tags, where possible. Here's some more info from the readme file in the Struts-EL project: Thank you very much for the cut/paste. I could not find this information on the site. My additionnal question is: JSTL from Jakarta/Sun requires Tomcat4 (because of Servlet/JSP versions). Does Struts-EL also requires Tomcat4? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSTL in Struts.
JSTL requires JSP 1.2 or higher. I don't use Tomcat, so I do know much about it. More specifically, I don't know if it has JSTL support built-in, or whether it still requires importing the JSTL reference implementation from Jakarta. I'm currently using the JSTL reference implementation (1.0.2), and the Struts-EL library with WebLogic 6.1. These work fine. Hence, these should work for you as long as your application server supports JSP 1.2 or higher. -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:40 AM To: 'Struts Users Mailing List' Subject: RE: JSTL in Struts. The Struts-EL supports EL just like JSTL. But the Struts-EL project is all the Struts custom tags you're used to, less functionality covered by tags in the JSTL. In essence, it forces developers to use the JSTL for certain functionality instead of relying on the Struts tags. This how this would have been if the JSTL was developed before the Struts custom tags. But the JSTL came after Struts, resulting in duplicate functionality between the two tag libraries. Hence, using Struts-EL encourages the use of standard custom tags (i.e. JSTL) in lieu of the Struts tags, where possible. Here's some more info from the readme file in the Struts-EL project: Thank you very much for the cut/paste. I could not find this information on the site. My additionnal question is: JSTL from Jakarta/Sun requires Tomcat4 (because of Servlet/JSP versions). Does Struts-EL also requires Tomcat4? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Page flow diagrams for Struts
napkins work well. they are usually folded so you can open them for more writing surface. the drawback is the paper is thin and sometimes will tear, but if you use ballpoint the advantage is it can be used to wipe coffee spills. - Original Message - From: Nick Sharples To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 9:43 AM Subject: Page flow diagrams for Struts Hi all, I was wondering if anyone has a good diagramatic representation of page flow that also captures forms and Action processing from submit buttons and links. I've have my own representation of course, but I was wonder what other people do. I suppose what I'm really after is a good story boarding technique that I can standardise on. Cheers ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Page flow diagrams for Struts
*** MS Visio ** Bubbles, Boxes and Arrows. and whatever else.. I am interested in this tool: http://www.alien-factory.co.uk/struts/struts-index.html It allows you generate config files from the diagrams as well as reverse engineer your existing config files. I have not actually used it however as it still working to to support 1.1 ( as per the todo list) Mark Lepkowski [EMAIL PROTECTED] on 11/21/2002 08:55:39 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:Re: Page flow diagrams for Struts napkins work well. they are usually folded so you can open them for more writing surface. the drawback is the paper is thin and sometimes will tear, but if you use ballpoint the advantage is it can be used to wipe coffee spills. - Original Message - From: Nick Sharples To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 9:43 AM Subject: Page flow diagrams for Struts Hi all, I was wondering if anyone has a good diagramatic representation of page flow that also captures forms and Action processing from submit buttons and links. I've have my own representation of course, but I was wonder what other people do. I suppose what I'm really after is a good story boarding technique that I can standardise on. Cheers ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Runtime dynamic form/jsp from XML
project: create an xml-driven set of screens within the struts framework. concept: we're attempting to create a rapid-release framework for rolling out new products. the idea is to have a portion of the framework driven by xml. the xml would contain information on what fields to display to the user, validation rules for the fields, bean routing database mappings for that bean to use. all this fun stuff would be assembled at runtime into a jsp using a dynaForm with a map for all the form data. after form submittal, the validation is run, the map is sent to the bean which uses the db mappings a insert/update/delete parameter to tell it what to do where. question: in searching the archives i've found plenty of references to people wanting to develop similar projects - but very little concrete information on how one might accomplish it =). has anyone built a system similar to this? (especially someone who's code i could have =) any suggestions on better design/methedology? much thanks, andrew _\|/_ andrew b forman aim ph0rman _\|/___ generation-d development andrew b forman aim ph0rman v820-2422 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: InputStream from FormFile - OK now
Hey! Dont post a question, then find a solution without sharing! If you figure it out, share the love! - Original Message - From: Huynh Ngoc Huy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 11:18 PM Subject: Re: InputStream from FormFile - OK now It is al right now! Huy --- Huynh Ngoc Huy [EMAIL PROTECTED] wrote: Hi all, How can we store InputStream from FormFile into another InputStream to use later? Thanks in advance, Huy __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
Hi David, I haven´t personally needed this yet, however I suppose there is a workaround until the struts developers update the tag. The only other way that I can think of is to use a normal input field with bean:write ... ignore=true/ for the value attribute. I assume you don´t need to have this deactivated everywhere?! Of course, should anyone have a better idea - I´ll be glad to learn from him/her ;-) ! Regards, Michael Delamere -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 13:50 To: Struts Users Mailing List Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
OT: IE's autocomplete
[EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
Call me crazy, but I can see how this may be useful. NullPointerException on its own subclasses RuntimeException. This means that you are not required to catch runtime exceptions or declare them with a throws clause of a method. But there are times where having an object be null may have a meaning other than a bug in the code - for example you may read from some third-party library that returns a null object as a valid response. If that happens, you may need to catch it or declare it in a throws clause. NullPointerException won't enforce this becaue it subclasses RuntimeException. The problem I would have is that it is not named after a recognizable business event - it should be named as an application exception that describes what caused it. Something like: NoDataAvailableException or whatever describes the actual problem. On the other hand, this person could just be an idiot - who am I to say? : - Kevin David Graham [EMAIL PROTECTED] on 11/21/2002 09:44:44 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:Re: [OT] How to tell when a project you are on is in trouble I like how it extends Exception which forces you to catch it. It seems like java has this already...maybe NullPointerException? At least that's a RuntimeException. Can you imagine having to catch all of the situations an object might be null? Tell your friend I'm sorry for him :-). David From: Jeff Caddel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] How to tell when a project you are on is in trouble Date: Wed, 20 Nov 2002 22:32:24 -0700 The architect of the project a friend of mine is on just unleashed this beauty into the source tree, thought ya'll might get a kick out of it: /** * NullObjectException * * Copyright © 2001,2002 ## Corp. All rights reserved. * This exception is used if the object must not be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh?? Jeff Caddel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
In the meantime why don't you just disable it like so: (assuming you have only one form) html:html head html:base / script function disableAutoComplete() { document.form[0].autocomplete=off; } /script /head body onload=disableAutoComplete() html:form ... /body /html:html this method fails if you dont allow javascript (duh) -Tim -Original Message- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:20 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
-Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:22 To: Struts Users Mailing List Subject: OT: IE's autocomplete [EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. Great idea, but near impossible to accomplish. Ok, if you know who is going to be using the clients, you might be able to do some persuasion :-)! We´ve actually started using Netscape 7.x which I find to be quite good! Still, I find that the majority use the IE and it will take a while, more likely never, to get people away from it! Regards, Michael Delamere -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
getting select tag data from ActionForm
Hi all, I define a multiple select tag in my jsp like this : html:select property='selectedCodes' size=4 multiple=true html:options name='fundOptionCodes' labelName='fundOptionLabels' / /html:select name and label are objects in the session. I would like to capture selected datas from actionForm instead of doing it like this : String[] selectedCodes = request.getParameterValues(selectedCodes); I wondered if someone has used this feature or something similar. The other problem I'm facing is that when an error occurs, the selected values are not selected back when the form is redisplayed. Only one value is selected. It seems to me that it's because of the property attribute 'selectedCodes' which is a String. Is there another way to declare it so as all selected values could be rendered back ? any help would be appreciate. Meissa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Runtime dynamic form/jsp from XML
Andrew, You may want to have a look at STXX. It is available at http://www.openroad.ca/opencode/stxx. Here is a generial description from the site: Struts for transforming XML with XSL (stxx) is an extension of the struts framework to support XML and XSL without changing the functionality of struts . stxx sit's on top of struts, extending it's existing functionality to allow Action classes to return XML that will be transformed by an XSL file. The idea of stxx is to remove the need to be use JSP and TagLibs for the presentation layer of this framework. However, stxx does not force you to go the XML/XSL route, both technologies will work side by side. Regards, Todd G. Nist From: Andrew B Forman [EMAIL PROTECTED] Date: 2002/11/21 Thu AM 10:13:42 EST To: List - Struts-User [EMAIL PROTECTED] Subject: Runtime dynamic form/jsp from XML project: create an xml-driven set of screens within the struts framework. concept: we're attempting to create a rapid-release framework for rolling out new products. the idea is to have a portion of the framework driven by xml. the xml would contain information on what fields to display to the user, validation rules for the fields, bean routing database mappings for that bean to use. all this fun stuff would be assembled at runtime into a jsp using a dynaForm with a map for all the form data. after form submittal, the validation is run, the map is sent to the bean which uses the db mappings a insert/update/delete parameter to tell it what to do where. question: in searching the archives i've found plenty of references to people wanting to develop similar projects - but very little concrete information on how one might accomplish it =). has anyone built a system similar to this? (especially someone who's code i could have =) any suggestions on better design/methedology? much thanks, andrew _\|/_ andrew b forman aim ph0rman _\|/___ generation-d development andrew b forman aim ph0rman v820-2422 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Workflow Extention
Hi All, I am using the workflow extention to create my workflows. It seems that when I am in the middle of a workflow, there is no way to allow the user to jump out of the workflow into another area of the application. I have tried specifying a * and a *.do as a nextPath parameter but that doesn't seem to work. Does anyone know how to gain a little more flexibility with this framework? All I want to do is stop people from jumping steps/entering into the middle of a workflow. At the moment, it seems that a user needs to enter a workflow and then complete that workflow before a he/she can leave it. Does anyone have any suggestions how I can work around this? Thanks Jordan Jordan Thomas Fraunhofer-Institut fuer Produktionstechnik und Automatisierung (FhG-IPA) Nobelstrasse 12 D-70569 Stuttgart Tel.: +49 (0) 711-970-1187 Fax: +49 (0) 711-970-97-1187 Handi:+49 (0) 150-554-76776 E-mail: [EMAIL PROTECTED] Web: http://www.ipa.fhg.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
Generally, methods shouldn't return null they should throw an exception. If I wanted to spend my time checking function return codes I would use C. It's perfectly acceptable to have a NoDataAvailableException if that describes the problem (NullObjectException describes nothing more than NullPointerException). Also, you can never have a null object. You either have an object or you don't :-). David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] How to tell when a project you are on is in trouble Date: Thu, 21 Nov 2002 10:21:37 -0500 Call me crazy, but I can see how this may be useful. NullPointerException on its own subclasses RuntimeException. This means that you are not required to catch runtime exceptions or declare them with a throws clause of a method. But there are times where having an object be null may have a meaning other than a bug in the code - for example you may read from some third-party library that returns a null object as a valid response. If that happens, you may need to catch it or declare it in a throws clause. NullPointerException won't enforce this becaue it subclasses RuntimeException. The problem I would have is that it is not named after a recognizable business event - it should be named as an application exception that describes what caused it. Something like: NoDataAvailableException or whatever describes the actual problem. On the other hand, this person could just be an idiot - who am I to say? : - Kevin David Graham [EMAIL PROTECTED] on 11/21/2002 09:44:44 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:Re: [OT] How to tell when a project you are on is in trouble I like how it extends Exception which forces you to catch it. It seems like java has this already...maybe NullPointerException? At least that's a RuntimeException. Can you imagine having to catch all of the situations an object might be null? Tell your friend I'm sorry for him :-). David From: Jeff Caddel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] How to tell when a project you are on is in trouble Date: Wed, 20 Nov 2002 22:32:24 -0700 The architect of the project a friend of mine is on just unleashed this beauty into the source tree, thought ya'll might get a kick out of it: /** * NullObjectException * * Copyright © 2001,2002 ## Corp. All rights reserved. * This exception is used if the object must not be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh?? Jeff Caddel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Workflow Extention
Hi All, I am using the workflow extention to create my workflows. It seems that when I am in the middle of a workflow, there is no way to allow the user to jump out of the workflow into another area of the application. I have tried specifying a * and a *.do as a nextPath parameter but that doesn't seem to work. Does anyone know how to gain a little more flexibility with this framework? All I want to do is stop people from jumping steps/entering into the middle of a workflow. At the moment, it seems that a user needs to enter a workflow and then complete that workflow before a he/she can leave it. Does anyone have any suggestions how I can work around this? Thanks Jordan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Page flow diagrams for Struts
Nick, Aside from the lighthearted ribbing, did you want a UML diagram? Brian Hi all, I was wondering if anyone has a good diagramatic representation of page flow that also captures forms and Action processing from submit buttons and links. I've have my own representation of course, but I was wonder what other people do. I suppose what I'm really after is a good story boarding technique that I can standardise on. Cheers ..Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
You're the first person I've ever heard say they like Netscape 7! Truly amazing considering it's a memory hog and very slow. Whatever floats your boat ;-) ... My favorite Netscape 7 feature: the install puts about 500 AOL, RealPlayer, and Netscape icons all over your hard drive. If we irritate people with all these shortcuts, they'll have to use it more! David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 16:32:00 +0100 -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:22 To: Struts Users Mailing List Subject: OT: IE's autocomplete [EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. Great idea, but near impossible to accomplish. Ok, if you know who is going to be using the clients, you might be able to do some persuasion :-)! We´ve actually started using Netscape 7.x which I find to be quite good! Still, I find that the majority use the IE and it will take a while, more likely never, to get people away from it! Regards, Michael Delamere -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to access the Struts ConnectionPool from an ActionForm
The servlet is null. So then how and what do I tell the actionform is its servlet. Thanks, Steve PS I still am interested in ppls view on whether all DB calls are model or there is a case when you could consider the DB call view Jagdish Arora wrote: Steven, since you are getting a NPE, could you tell us if is it the servlet that is null, or is servlet.getServletContext() that is null? amrinder - Original Message - From: Steven Citron-Pousty [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Subject: How to access the Struts ConnectionPool from an ActionForm DataSource dataSource = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
- Original Message - From: [EMAIL PROTECTED] Call me crazy, but I can see how this may be useful. You're crazy. :-) NullPointerException on its own subclasses RuntimeException. This means that you are not required to catch runtime exceptions or declare them with a throws clause of a method. Bruce Eckel (author of Thinking in Java) posted an interesting article on his website a short while back, discussing whether checked exceptions in general are actually a good idea. The article is at http://www.mindview.net/Etc/Discussions/CheckedExceptions if you're interested. I'm still not sure whether I agree with the authors conclusions, but it's interesting to think about. But there are times where having an object be null may have a meaning other than a bug in the code - for example you may read from some third-party library that returns a null object as a valid response. If that happens, you may need to catch it or declare it in a throws clause. NullPointerException won't enforce this becaue it subclasses RuntimeException. I can see where you're coming from with this, but if null is a valid return value then surely that means it's not an exceptional condition? In that case, the right thing to do is to check whether the return value is null rather than waiting for an exception to be thrown... Cheers, Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ --Disclaimer-- This e-mail and any attachments may be confidential and/or legally privileged. If you have received this email and you are not a named addressee, please inform the sender at Digital Steps Ltd by phone on +44 (0)1483 469 480 or by reply email and then delete the email from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this email. Although Digital Steps Ltd routinely screens for viruses, addressees should check this email and any attachments for viruses. Digital Steps Ltd makes no representation or warranty as to the absence of viruses in this email or any attachments. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
that makes sense. but how about including an attributes tag that allows a map of attribute name/values? that might be helpful while maintaining the whole not render any client specific attributes. -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: IE's autocomplete Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
According to Effective Java, it is a better practice to throw an exception rather than return null. This book makes for good reading. - Original Message - From: Vilya Harvey [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 10:06 AM Subject: Re: [OT] How to tell when a project you are on is in trouble - Original Message - From: [EMAIL PROTECTED] Call me crazy, but I can see how this may be useful. You're crazy. :-) NullPointerException on its own subclasses RuntimeException. This means that you are not required to catch runtime exceptions or declare them with a throws clause of a method. Bruce Eckel (author of Thinking in Java) posted an interesting article on his website a short while back, discussing whether checked exceptions in general are actually a good idea. The article is at http://www.mindview.net/Etc/Discussions/CheckedExceptions if you're interested. I'm still not sure whether I agree with the authors conclusions, but it's interesting to think about. But there are times where having an object be null may have a meaning other than a bug in the code - for example you may read from some third-party library that returns a null object as a valid response. If that happens, you may need to catch it or declare it in a throws clause. NullPointerException won't enforce this becaue it subclasses RuntimeException. I can see where you're coming from with this, but if null is a valid return value then surely that means it's not an exceptional condition? In that case, the right thing to do is to check whether the return value is null rather than waiting for an exception to be thrown... Cheers, Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ --Disclaimer-- This e-mail and any attachments may be confidential and/or legally privileged. If you have received this email and you are not a named addressee, please inform the sender at Digital Steps Ltd by phone on +44 (0)1483 469 480 or by reply email and then delete the email from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this email. Although Digital Steps Ltd routinely screens for viruses, addressees should check this email and any attachments for viruses. Digital Steps Ltd makes no representation or warranty as to the absence of viruses in this email or any attachments. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
muliple select lists and DynaActionForms
Hello, I am having trouble with the submitted results of the html:select where multiple=true. I have the form defined as a DynaActionForm with the property in question defined as an ArrayList of the ids to pre-select. The pre selection works fine but when I submit the form, the exception below is thrown. Please let me know if you have a solution. Thanks, Herb Watkins Root cause of ServletException org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'j ava.lang.String' to property 'winLossReasonIds' of type 'java.util.ArrayList' at org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:376) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property Utils.java:1592) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property Utils.java:1506) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils. java:1536) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:674 ) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:504) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProc essor.java:779) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:246) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129 2) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
I personally like the tabbing feature! ;-) Plus it´s only the startup that´s slow, after that it´s ok. I agree though on 2 points: 1. I hate the profile crap that you have to go through everytime you install netscape. 2. The additional software is a bit of a pain. Anyway Netscape 7, like Mozilla, both use the same Gecko engine :-). Regards, Michael -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:54 To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete You're the first person I've ever heard say they like Netscape 7! Truly amazing considering it's a memory hog and very slow. Whatever floats your boat ;-) ... My favorite Netscape 7 feature: the install puts about 500 AOL, RealPlayer, and Netscape icons all over your hard drive. If we irritate people with all these shortcuts, they'll have to use it more! David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 16:32:00 +0100 -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:22 To: Struts Users Mailing List Subject: OT: IE's autocomplete [EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. Great idea, but near impossible to accomplish. Ok, if you know who is going to be using the clients, you might be able to do some persuasion :-)! We´ve actually started using Netscape 7.x which I find to be quite good! Still, I find that the majority use the IE and it will take a while, more likely never, to get people away from it! Regards, Michael Delamere -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles newbie
A coworker asked the following question Can I implement Tiles as a stand alone? I was busy so I said Not likely and we are only in production with 1.0.2 A quick search (if there is such a thing) of the archives reveals a lot of Tiles info, but nothing specific to his question. Does anyone know if I was too quick with my answer? I will send pizza :o) Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: getting select tag data from ActionForm
Make selectedCodes be either a String[] or Collection in your ActionForm. Make sure your accessors/setters reflect that. That will allow the ActionForm value to be automatically populated from the request parameters, and will fill in all the selected items when the view is rebuilt. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Hi all, I define a multiple select tag in my jsp like this : html:select property='selectedCodes' size=4 multiple=true html:options name='fundOptionCodes' labelName='fundOptionLabels' / /html:select name and label are objects in the session. I would like to capture selected datas from actionForm instead of doing it like this : String[] selectedCodes = request.getParameterValues(selectedCodes); I wondered if someone has used this feature or something similar. The other problem I'm facing is that when an error occurs, the selected values are not selected back when the form is redisplayed. Only one value is selected. It seems to me that it's because of the property attribute 'selectedCodes' which is a String. Is there another way to declare it so as all selected values could be rendered back ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
ditto on Effective Java, its a MUST READ (When Gosling says this book was useful to him (comments on back of book)... it says something) mark John Owen [EMAIL PROTECTED] on 11/21/2002 10:13:04 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: [OT] How to tell when a project you are on is in trouble According to Effective Java, it is a better practice to throw an exception rather than return null. This book makes for good reading. - Original Message - From: Vilya Harvey [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 10:06 AM Subject: Re: [OT] How to tell when a project you are on is in trouble - Original Message - From: [EMAIL PROTECTED] Call me crazy, but I can see how this may be useful. You're crazy. :-) NullPointerException on its own subclasses RuntimeException. This means that you are not required to catch runtime exceptions or declare them with a throws clause of a method. Bruce Eckel (author of Thinking in Java) posted an interesting article on his website a short while back, discussing whether checked exceptions in general are actually a good idea. The article is at http://www.mindview.net/Etc/Discussions/CheckedExceptions if you're interested. I'm still not sure whether I agree with the authors conclusions, but it's interesting to think about. But there are times where having an object be null may have a meaning other than a bug in the code - for example you may read from some third-party library that returns a null object as a valid response. If that happens, you may need to catch it or declare it in a throws clause. NullPointerException won't enforce this becaue it subclasses RuntimeException. I can see where you're coming from with this, but if null is a valid return value then surely that means it's not an exceptional condition? In that case, the right thing to do is to check whether the return value is null rather than waiting for an exception to be thrown... Cheers, Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED] / digital steps / (W) +44 (0)1483 469 480 (M) +44 (0)7816 678 457 http://www.digitalsteps.com/ --Disclaimer-- This e-mail and any attachments may be confidential and/or legally privileged. If you have received this email and you are not a named addressee, please inform the sender at Digital Steps Ltd by phone on +44 (0)1483 469 480 or by reply email and then delete the email from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this email. Although Digital Steps Ltd routinely screens for viruses, addressees should check this email and any attachments for viruses. Digital Steps Ltd makes no representation or warranty as to the absence of viruses in this email or any attachments. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tiles newbie
I have never tried it, but this website implies that Tiles can run without Struts http://www.lifl.fr/~dumoulin/tiles/ -Original Message- From: Brian Hickey [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:21 AM To: Struts Users Mailing List Subject: Tiles newbie A coworker asked the following question Can I implement Tiles as a stand alone? I was busy so I said Not likely and we are only in production with 1.0.2 A quick search (if there is such a thing) of the archives reveals a lot of Tiles info, but nothing specific to his question. Does anyone know if I was too quick with my answer? I will send pizza :o) Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles newbie
There is a nice website about tiles at http://www.lifl.fr/~dumoulin/tiles It talks about the standalone features also. Thanks, Vid [EMAIL PROTECTED] 11/21/02 10:21AM A coworker asked the following question Can I implement Tiles as a stand alone? I was busy so I said Not likely and we are only in production with 1.0.2 A quick search (if there is such a thing) of the archives reveals a lot of Tiles info, but nothing specific to his question. Does anyone know if I was too quick with my answer? I will send pizza :o) Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] Re: IE's autocomplete
Check how much memory Netscape is consuming and compare that to IE and Opera. It's at least 10 MB higher! I can't live without tabs so I use Opera which is a million times better than Netscape. If you don't want to pay then I would use Mozilla. David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 17:16:14 +0100 I personally like the tabbing feature! ;-) Plus it´s only the startup that´s slow, after that it´s ok. I agree though on 2 points: 1. I hate the profile crap that you have to go through everytime you install netscape. 2. The additional software is a bit of a pain. Anyway Netscape 7, like Mozilla, both use the same Gecko engine :-). Regards, Michael -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:54 To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete You're the first person I've ever heard say they like Netscape 7! Truly amazing considering it's a memory hog and very slow. Whatever floats your boat ;-) ... My favorite Netscape 7 feature: the install puts about 500 AOL, RealPlayer, and Netscape icons all over your hard drive. If we irritate people with all these shortcuts, they'll have to use it more! David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 16:32:00 +0100 -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:22 To: Struts Users Mailing List Subject: OT: IE's autocomplete [EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. Great idea, but near impossible to accomplish. Ok, if you know who is going to be using the clients, you might be able to do some persuasion :-)! We´ve actually started using Netscape 7.x which I find to be quite good! Still, I find that the majority use the IE and it will take a while, more likely never, to get people away from it! Regards, Michael Delamere -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
set a html:checkbox checked
Hi, how can I set a checkbox checked during creation in the JSP. In HTML I would do it like this: input type=checkbox name=mycheck checked But I can't find that for the struts tag: html:checkbox property=mycheckcheck it/html:ckeckbox And can I use the value true to set a checkbox checked. I get only a true from my bean and not a checked or something else. ciao Oliver. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles newbie
Yes, Tiles can work without Struts. You need to initialize the definition factory yourself if you use definitions. This can be done with a special servlet. In the distribution on original site (http://www.lifl.fr/~dumoulin/tiles/), there is a blank-tiles.war file that do exactly that. Cedric Ahearn, Denis wrote: I have never tried it, but this website implies that Tiles can run without Struts http://www.lifl.fr/~dumoulin/tiles/ -Original Message- From: Brian Hickey [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:21 AM To: Struts Users Mailing List Subject: Tiles newbie A coworker asked the following question Can I implement Tiles as a stand alone? I was busy so I said Not likely and we are only in production with 1.0.2 A quick search (if there is such a thing) of the archives reveals a lot of Tiles info, but nothing specific to his question. Does anyone know if I was too quick with my answer? I will send pizza :o) Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Re: IE's autocomplete
You guys really need to try Phoenix (it is just the Mozilla browser - no extraneous crap), it's lightning-fast for me: http://www.mozilla.org/projects/phoenix/ -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:26 AM To: [EMAIL PROTECTED] Subject: [OT] Re: IE's autocomplete Check how much memory Netscape is consuming and compare that to IE and Opera. It's at least 10 MB higher! I can't live without tabs so I use Opera which is a million times better than Netscape. If you don't want to pay then I would use Mozilla. David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 17:16:14 +0100 I personally like the tabbing feature! ;-) Plus it´s only the startup that´s slow, after that it´s ok. I agree though on 2 points: 1. I hate the profile crap that you have to go through everytime you install netscape. 2. The additional software is a bit of a pain. Anyway Netscape 7, like Mozilla, both use the same Gecko engine :-). Regards, Michael -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:54 To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete You're the first person I've ever heard say they like Netscape 7! Truly amazing considering it's a memory hog and very slow. Whatever floats your boat ;-) ... My favorite Netscape 7 feature: the install puts about 500 AOL, RealPlayer, and Netscape icons all over your hard drive. If we irritate people with all these shortcuts, they'll have to use it more! David From: Michael Delamere [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 16:32:00 +0100 -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 21. November 2002 16:22 To: Struts Users Mailing List Subject: OT: IE's autocomplete [EMAIL PROTECTED] wrote: Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. If security is such a big issue, why the heck are you using IE as a client? I am having success in getting clients to switch to mozilla as the preferred client for all my web applications. Multiplatform yet consistent view for everyone. Great idea, but near impossible to accomplish. Ok, if you know who is going to be using the clients, you might be able to do some persuasion :-)! We´ve actually started using Netscape 7.x which I find to be quite good! Still, I find that the majority use the IE and it will take a while, more likely never, to get people away from it! Regards, Michael Delamere -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with application scope data
Hi, I've been reading through the lists archive and still can't find the way to make this work. I'm doing the following: - Created a subclass from ActionServlet, with the following code: public class IDCVActionServlet extends ActionServlet{ public void init() throws ServletException { try{ super.init(); } catch(ServletException e){ throw(e); } initIDCV(); } protected void initIDCV(){ getServletContext().setAttribute(demo, new ValueBean(Mensaje Demo)); } } the class ValueBean is the following: public class ValueBean{ protected String data; public ValueBean(String data){ this.data = data; } public String getData(){ return(this.data); } public void setData(String data){ this.data = data; } } I modified web.xml to load my custom class instead of the standard ActionServlet, then I try to print demo.data in a jsp, like this: bean:write scope=application name=demo property=data/ but I get a nullPointerException, can someone point me to the right way of doing this? Regards, Jorge Macias -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tiles newbie
Yes, we were using Tiles (just) before Struts - and then went to use Struts+Tiles. The only aspect AFAIK that will not be available is using Tiles as Struts forwards. There was also a thread about using Tiles with Struts 1.0.2 - try ng apache.struts on news server news.basebeans.net and look for title: Tiles and Struts 1.0.2?, the most relevant answer seems to be: The Tiles site (http://www.lifl.fr/~dumoulin/tiles/) is the place to go. The binary download (tiles.zip for ex.) contains the 'tilesForStruts1.0.jar' you mention and also a 'tiles-blank-struts1-0.war to help you get started. g Esther Hue. -Original Message- From: Brian Hickey [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 16:21 To: Struts Users Mailing List Subject: Tiles newbie A coworker asked the following question Can I implement Tiles as a stand alone? I was busy so I said Not likely and we are only in production with 1.0.2 A quick search (if there is such a thing) of the archives reveals a lot of Tiles info, but nothing specific to his question. Does anyone know if I was too quick with my answer? I will send pizza :o) Brian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IE's autocomplete
How would this attributes tag work/look like? Can you post an example of what you're thinking of? Dave From: Chen, Gin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 11:07:40 -0500 that makes sense. but how about including an attributes tag that allows a map of attribute name/values? that might be helpful while maintaining the whole not render any client specific attributes. -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: IE's autocomplete Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks, David Heagney This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
Help with custom validation please
I've written a simple custom validator that is working just fine. However, when the validation returns back to the page to display the error message to the user, all I get is the following: ???en_US.errors.ordersearch??? I know that key errors.ordersearch is in the ApplicationResources.properties file for sure. The rest of my configuration for this custom validator is as follows: validator name=namordersearch classname=com.nielsenmedia.nam.ui.validation.NAMCustomValidator method=validateOrderSearch methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext msg=errors.ordersearch /validator form name=searchByForm field property=searchBy depends=required arg0 key=prompt.searchby/ /field field property=searchTerm depends=namordersearch arg0 key=prompt.search.term/ /field /form All I have in my method at the present time is this: public static boolean validateOrderSearch(Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request, ServletContext context){ errors.add(field.getKey(), StrutsValidatorUtil.getActionError(request, va, field)); return false; If anyone has run across this issue and has a possible solution, please let me know. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with html:option
Hello, This code doesn't work. How can I do I put a bean value in my option tag? html:option value='bean:write name=cmp property=CMP_ID/' Thanks in advance Yann VERLYNDE Ingénieur d'Etudes Oxade Ingénierie 13, Place Kossuth 75009 PARIS Tel : 01 42 82 99 38 Fax : 01 42 82 99 35 www.oxade.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] How to tell when a project you are on is in trouble
- Original Message - From: [EMAIL PROTECTED] Call me crazy, but I can see how this may be useful. You're crazy. :-) You're right. What was I thinking? --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with html:option
Have you tried bean:define id=foo name=cmp property=CMP_ID/ html:option value=%=foo% Sri -Original Message- From: Yann Verlynde [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:28 PM To: Struts Subject: Problem with html:option Hello, This code doesn't work. How can I do I put a bean value in my option tag? html:option value='bean:write name=cmp property=CMP_ID/' Thanks in advance Yann VERLYNDE Ingénieur d'Etudes Oxade Ingénierie 13, Place Kossuth 75009 PARIS Tel : 01 42 82 99 38 Fax : 01 42 82 99 35 www.oxade.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with html:option
Sorry but I doesn't work this is my complete code. html:select property=select_CMP onchange=submit() html:option value=0Choisissez votre cadre emplois/html:option logic:iterate name=CMP id=cmp type=com.oxade.struts.javabean.CadreEmploi html:option value=bean:write name='cmp' property='CMP_ID'/ bean:write name='cmp' property='CMP_LIB'/ /html:option /logic:iterate /html:select - Original Message - From: Sri Sankaran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 6:35 PM Subject: RE: Problem with html:option Have you tried bean:define id=foo name=cmp property=CMP_ID/ html:option value=%=foo% Sri -Original Message- From: Yann Verlynde [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:28 PM To: Struts Subject: Problem with html:option Hello, This code doesn't work. How can I do I put a bean value in my option tag? html:option value='bean:write name=cmp property=CMP_ID/' Thanks in advance Yann VERLYNDE Ingénieur d'Etudes Oxade Ingénierie 13, Place Kossuth 75009 PARIS Tel : 01 42 82 99 38 Fax : 01 42 82 99 35 www.oxade.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: not render any client specific attributes [was: IE's autocomplete]
Gin Chen, is this what you were thinking? !--Might work with either Map or Collection.-- % ArrayList list = new ArrayList(); list.add(customField1, anything I may need); list.add(customField2, other stuff); pageContext.setAttribute(customHtml, list); % First Name:html:text property=userFirstName customAttrs=customHtml/br Last Name:html:text property=userLastName customAttrs=customHtml/ would render: First Name:input type=text name=userName customField1=anything I may need customField2=other stuffbr Last Name:input type=text name=userName customField1=anything I may need customField2=other stuff -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete How would this attributes tag work/look like? Can you post an example of what you're thinking of? Dave From: Chen, Gin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 11:07:40 -0500 that makes sense. but how about including an attributes tag that allows a map of attribute name/values? that might be helpful while maintaining the whole not render any client specific attributes. -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: IE's autocomplete Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: IE's autocomplete Hi, I'm trying to get the definitive answer on this, will STRUTS have functionality to disable MS IE's *autocomplete* for input forms in the near future? Has anyone had experience disabling this by any other means? Thanks,
Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml
Has anyone successfully subclassed the FormBeanConfig associated with a form-bean element? For example: form-bean name=myForm type=org.apache.struts.action.DynaActionForm className=mypackage.MyFormBeanConfig . . . /form-bean When I try this, I get the following exception: javax.servlet.ServletException: Cannot find message resources under key ui at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:494) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:280) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) 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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:471) 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:2396) 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:170) 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.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:479) I am using the Struts 1.1-b2, and Tomcat 4.1. If I remove the className=mypackage.MyFormBeanConfig from my form-bean element, then my application works fine. Does anyone have any hints on what is causing this exception? Thanks, Denis
RE: Problem with html:option
Ah, you should be using html:options, to replace your logic:iterate, and the nested html:option and bean:write. It will handle all of that. Read the API description. You can also see some examples of this in the struts-exercise-taglib application in the Struts distribution. -Original Message- From: Yann Verlynde [mailto:[EMAIL PROTECTED]] Sorry but I doesn't work this is my complete code. html:select property=select_CMP onchange=submit() html:option value=0Choisissez votre cadre emplois/html:option logic:iterate name=CMP id=cmp type=com.oxade.struts.javabean.CadreEmploi html:option value=bean:write name='cmp' property='CMP_ID'/ bean:write name='cmp' property='CMP_LIB'/ /html:option /logic:iterate /html:select - Original Message - From: Sri Sankaran [EMAIL PROTECTED] Have you tried bean:define id=foo name=cmp property=CMP_ID/ html:option value=%=foo% Sri -Original Message- From: Yann Verlynde [mailto:[EMAIL PROTECTED]] Hello, This code doesn't work. How can I do I put a bean value in my option tag? html:option value='bean:write name=cmp property=CMP_ID/' -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: not render any client specific attributes [was: IE's autocomplete]
I believe this will be in JSP 2.0 as an option in the TLD. Mark Roth wrote One thing we did notice is that struts tags have a LOT of attributes :) Many of them simply echo their value straight to HTML. We've added a feature to JSP 2.0 called dynamic attributes to help reduce the number of attributes one needs to declare for a tag. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:45 PM To: 'Struts Users Mailing List' Subject: RE: not render any client specific attributes [was: IE's autocomplete] Gin Chen, is this what you were thinking? !--Might work with either Map or Collection.-- % ArrayList list = new ArrayList(); list.add(customField1, anything I may need); list.add(customField2, other stuff); pageContext.setAttribute(customHtml, list); % First Name:html:text property=userFirstName customAttrs=customHtml/br Last Name:html:text property=userLastName customAttrs=customHtml/ would render: First Name:input type=text name=userName customField1=anything I may need customField2=other stuffbr Last Name:input type=text name=userName customField1=anything I may need customField2=other stuff -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete How would this attributes tag work/look like? Can you post an example of what you're thinking of? Dave From: Chen, Gin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 11:07:40 -0500 that makes sense. but how about including an attributes tag that allows a map of attribute name/values? that might be helpful while maintaining the whole not render any client specific attributes. -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: IE's autocomplete Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the
Tiles
I am new to tiles and struts. I want to customize views based on roles. For instance, one department should access on their departments pages. With each department, the views for a manager should be different from a subordinate. Basically, I would like to control access to information. The user profiles and their roles are made available via a MySql database. Could someone please let me know what are best practices in desiging the customizable views with tiles. I have read about rss and dynamic portals design using tiles. Are there any examples which I follow through on this aspect. Thanks for your help, Vid -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: not render any client specific attributes [was: IE's autocomp lete]
Actually thats pretty much what I was thinking :) Except that it would have to be a map as list doesnt support the key/value pairings. Unless of course we use the LabelValueBean(?) just a thought -Tim -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:45 PM To: Struts Users Mailing List Subject: RE: not render any client specific attributes [was: IE's autocomplete] Gin Chen, is this what you were thinking? !--Might work with either Map or Collection.-- % ArrayList list = new ArrayList(); list.add(customField1, anything I may need); list.add(customField2, other stuff); pageContext.setAttribute(customHtml, list); % First Name:html:text property=userFirstName customAttrs=customHtml/br Last Name:html:text property=userLastName customAttrs=customHtml/ would render: First Name:input type=text name=userName customField1=anything I may need customField2=other stuffbr Last Name:input type=text name=userName customField1=anything I may need customField2=other stuff -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: RE: IE's autocomplete How would this attributes tag work/look like? Can you post an example of what you're thinking of? Dave From: Chen, Gin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 11:07:40 -0500 that makes sense. but how about including an attributes tag that allows a map of attribute name/values? that might be helpful while maintaining the whole not render any client specific attributes. -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 10:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: IE's autocomplete Struts tags will not render any client specific attributes. The tags conform to the HTML 4.01 spec. The autocomplete attribute is IE specific and therefore won't be supported by Struts. It would be pretty easy to extend a Struts tag to support this attribute if you are using IE. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: IE's autocomplete Date: Thu, 21 Nov 2002 10:20:08 -0500 The tags are pretty simple, I would submit a bug report as an ENHANCEMENT with a diff of the changes required to render the attribute. Edgar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:50 AM To: 'Struts Users Mailing List' Subject: RE: IE's autocomplete Thanks Robert... I realise Struts is a server side framework but take the Struts notation for say an input box e.g. html:text property=name size=35/ It supports the attributes 'alt', 'disabled' and various Javascript-specific extensions which are not all supported or rendered the same in different browsers... I have read several mails inquiring about the same thing, if the 'autocomplete' extension will be accessible through Struts in the future... The auotcomplete function is a security risk or is percieved as such by many people, it would seem more like common sense to cater for it in whatever means possible, even if it simply serves to make STRUTS more attractive as a rapid development framework for people who are going to use IE to view the application and where security is an issue. HTML has a standard way of disabling it, e.g. input type=text autocomplete=off ... this is how it's disabled in many banking applications etc. where security is a big concern... I'd appreciate any input on this that anyone might have, Thanks, David Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: 21/11/2002 12:35 Subject: RE: IE's autocomplete Please respond to Struts Users Mailing List David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy of the client. robert -Original
RE: Can anybody tell how to setup struts in Netbeans IDE
For working on the distribution itself: 1. Create a new project (from the Project Manager window) 2. Download the struts source distribution (or use built-in cvs to get the module) 3. Extract to a local drive (if on windoze, try not to have spaces in the directory (such as C:\My Documents) 4. Mount the directory you unzipped to 5. Copy build.properties.sample to build.properties and customize to point to where you keep those jars 6. Mount each of the source directories that you wish to work in For me, I use: jakarta-struts/src/share jakarta-struts/src/example 7. Mount each jar referenced in the build.properties file * Note - NetBeans has built in support for auto-mounting these if your build.xml specifies the jars in the project.classpath, but that's not the case for the default struts distribution. For doing your own thing: 1. Create a new project (from the Project Manager window) 2. Download (or build for yourself) the required jars *See the jakarta-struts-1.1-b2/webapps/struts-example.war 3. Create a directory (I use a structure similar to how the webapp will exist) +-/my-project | +-/WEB-INF | +-/classes | +-/lib | +-/src 4. Create a build.xml for your project (so ant can build and war it for you). I recommend you use an existing file to get a jump start on development. Actually, I recommend you re-use someone's entire existing project. That will surely get you ahead of the game. 5. Mount that directory * If you specified the build classpath and the jars are there, NetBeans will mount the jars for you automatically. 6. Mount each of the source directories that you wish to work in /myproject/WEB-INF/src 7. Always work in the node in #6 when modifying your java files. I'll also take this opportunity to tell you that I recommend using Eclipse. I was a NetBeans advocate for the longest time, but a few weeks ago several discussion had prompted me to try out Eclipse, and I can say without a doubt, that it is much more mature an IDE than NetBeans. And since they are both Open Source.heywhy not? One definite advantage Eclipse has over NetBeans is that Eclipse is built using SWT (Standard Widget Toolkit). That means that the IDE is written in Java, but the underlying framework uses native JNDI calls the OS API.or, in other words..its fast as Hell on windows. Anyone who has left NetBeans running in the background overnight on a laptop knows the pain of doing an Alt+Tab back to the IDE and seeing how Swing pulls its rather large A## up from the swap fileheh heh :) Hope that will help you get started. I was planning to post a how-to for doing this and a few other tasks with NetBeans, Eclipse, and JBuilder. I even have quite a few screenshots taken, but I just haven't finished it. Good Luck with it!!! -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: [MVC-Programmers] RE: MVC-Programmers digest, Vol 1 #94 - 7 msgs Hi, I am new to struts framework. Can anybody tell how to setup struts in Netbean IDE.. Thanks Kaja. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 3:00 PM To: [EMAIL PROTECTED] Subject: MVC-Programmers digest, Vol 1 #94 - 7 msgs Send MVC-Programmers mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://www.netbean.net/mailman/listinfo/mvc-programmers or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of MVC-Programmers digest... Today's Topics: 1. How to access the Struts Connection Pool from an ActionForm (Steven Citron-Pousty) 2. Re: How to access the Struts Connection Pool from an ActionForm (V. Cekvenich) 3. Re: How to access the Struts Connection Pool from an ActionForm (V. Cekvenich) 4. [Fwd: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate Recommendation] (V. Cekvenich) 5. [Fwd: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate Recommendation] (V. Cekvenich) --__--__-- Message: 1 From: Steven Citron-Pousty [EMAIL PROTECTED] Date: Tue, 19 Nov 2002 17:01:41 -0500 Organization: Basebeans.com To: [EMAIL PROTECTED] Subject: [MVC-Programmers] How to access the Struts Connection Pool from an ActionForm Greetings all:I am trying to populate the
RE: Can anybody tell how to setup struts in Netbeans IDE
-Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] One definite advantage Eclipse has over NetBeans is that Eclipse is built using SWT (Standard Widget Toolkit). That means that the IDE is written in Java, but the underlying framework uses native JNDI calls the OS Gosh, James, I would think that using remote JNDI calls to draw graphics would be really expensive! ;) (Methinks he meant JNI.) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can anybody tell how to setup struts in Netbeans IDE
-Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:36 PM To: Struts Users Mailing List Subject: RE: Can anybody tell how to setup struts in Netbeans IDE -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] One definite advantage Eclipse has over NetBeans is that Eclipse is built using SWT (Standard Widget Toolkit). That means that the IDE is written in Java, but the underlying framework uses native JNDI calls the OS Gosh, James, I would think that using remote JNDI calls to draw graphics would be really expensive! ;) (Methinks he meant JNI.) Me thinks you right. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to access the Struts ConnectionPool from an ActionForm
Steve, If memory serves, I don't think you can get the ActionServlet (thus the servlet) from the Form; but it's been a long time since I last looked at that stuff and I may well be incorrect on that - it's just a guess. As for the db call issue, it makes more sense for something like that to be in a separate class or your Action at the least. You would simply call the appropriate accessors on the form to set the results. For example, if you had three VARCHAR/TEXT columns you could query and obtain a ResultSet. Then, iterate through the ResultSet and set the appropriate form properties. Obviously, that's just one way to do it and perhaps not the ideal way, but it is a viable option. Chris -Original Message- From: Steven Citron-Pousty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 4:46 PM To: struts-user Subject: How to access the Struts ConnectionPool from an ActionForm Greetings all: I am trying to populate the options for a select list from a DB call. And I am getting a null pointer exception from this line in the ActionForm (I copied it from my Action, where it works): DataSource dataSource = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY); What I am trying to do is use the ConnectionPool provided by Struts. This call works great in my Action but doesn't work in my ActionForm. On the IRC channel (irc.freenode.net #struts) we have been discussing the merits of putting a DB call in an ActionForm. SOoo, my main question is, How do I ask the context for the connection pool in an ActionForm? But I would also love to see discussion about the merits of putting a DB call in an ActionForm at all. If I didn't put the call in the ActionForm how would I get the data from the DB call into the actionForm? Thanks in advance for all your help, Steve BTW it appears as if posting from the basebeans nntp doesn't get posted to the list. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml
Apparently, you are trying to use a 'message resources under key ui' and it is not found :/ Have you validated that it is there? Can you post your Dyna extension? -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Ahearn, Denis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:51 PM To: '[EMAIL PROTECTED]' Subject: Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml Has anyone successfully subclassed the FormBeanConfig associated with a form-bean element? For example: form-bean name=myForm type=org.apache.struts.action.DynaActionForm className=mypackage.MyFormBeanConfig . . . /form-bean When I try this, I get the following exception: javax.servlet.ServletException: Cannot find message resources under key ui at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:494) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:280) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) 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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:471) 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:2396) 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:170) 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.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at
RE: Can anybody tell how to setup struts in Netbeans IDE
Out of curiosity, how well does Eclipse run on old hardware. I have a Pentium laptop w/96M RAM - NB is my usual IDE but that's right out, even JEdit is a bit painful to work it. thx -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 13:31 To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: RE: Can anybody tell how to setup struts in Netbeans IDE For working on the distribution itself: 1. Create a new project (from the Project Manager window) 2. Download the struts source distribution (or use built-in cvs to get the module) 3. Extract to a local drive (if on windoze, try not to have spaces in the directory (such as C:\My Documents) 4. Mount the directory you unzipped to 5. Copy build.properties.sample to build.properties and customize to point to where you keep those jars 6. Mount each of the source directories that you wish to work in For me, I use: jakarta-struts/src/share jakarta-struts/src/example 7. Mount each jar referenced in the build.properties file * Note - NetBeans has built in support for auto-mounting these if your build.xml specifies the jars in the project.classpath, but that's not the case for the default struts distribution. For doing your own thing: 1. Create a new project (from the Project Manager window) 2. Download (or build for yourself) the required jars *See the jakarta-struts-1.1-b2/webapps/struts-example.war 3. Create a directory (I use a structure similar to how the webapp will exist) +-/my-project | +-/WEB-INF | +-/classes | +-/lib | +-/src 4. Create a build.xml for your project (so ant can build and war it for you). I recommend you use an existing file to get a jump start on development. Actually, I recommend you re-use someone's entire existing project. That will surely get you ahead of the game. 5. Mount that directory * If you specified the build classpath and the jars are there, NetBeans will mount the jars for you automatically. 6. Mount each of the source directories that you wish to work in /myproject/WEB-INF/src 7. Always work in the node in #6 when modifying your java files. I'll also take this opportunity to tell you that I recommend using Eclipse. I was a NetBeans advocate for the longest time, but a few weeks ago several discussion had prompted me to try out Eclipse, and I can say without a doubt, that it is much more mature an IDE than NetBeans. And since they are both Open Source.heywhy not? One definite advantage Eclipse has over NetBeans is that Eclipse is built using SWT (Standard Widget Toolkit). That means that the IDE is written in Java, but the underlying framework uses native JNDI calls the OS API.or, in other words..its fast as Hell on windows. Anyone who has left NetBeans running in the background overnight on a laptop knows the pain of doing an Alt+Tab back to the IDE and seeing how Swing pulls its rather large A## up from the swap fileheh heh :) Hope that will help you get started. I was planning to post a how-to for doing this and a few other tasks with NetBeans, Eclipse, and JBuilder. I even have quite a few screenshots taken, but I just haven't finished it. Good Luck with it!!! -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: [MVC-Programmers] RE: MVC-Programmers digest, Vol 1 #94 - 7 msgs Hi, I am new to struts framework. Can anybody tell how to setup struts in Netbean IDE.. Thanks Kaja. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 3:00 PM To: [EMAIL PROTECTED] Subject: MVC-Programmers digest, Vol 1 #94 - 7 msgs Send MVC-Programmers mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://www.netbean.net/mailman/listinfo/mvc-programmers or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of MVC-Programmers digest... Today's Topics: 1. How to access the Struts Connection Pool from an ActionForm (Steven Citron-Pousty) 2. Re: How to access the Struts Connection Pool from an ActionForm (V. Cekvenich) 3. Re: How to access the Struts Connection Pool from an ActionForm (V. Cekvenich) 4. [Fwd: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate Recommendation] (V.
Self reference in optionsCollection
How do you reference this in an optionsCollection (or any standard tag for that matter)? The nested tags support a special notation of ./ or this/, which doesn't appear to carry through to standard tags. Thanks, David Morris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can anybody tell how to setup struts in Netbeans IDE
Well, I would know. When I bought this laptop months ago, I gave my old one away. It was a PII 233 w/64MB. I ran NetBeans on it one time..and never tried it againLOL. That was about the most painful thing I've watched in quite a while. I thought I was smelling smoke for a few minutes. So my new laptop is a 1 gig with 128 (which I upgraded about 2 weeks ago to 512), so Eclipse is now SCREEMING -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:42 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Can anybody tell how to setup struts in Netbeans IDE Out of curiosity, how well does Eclipse run on old hardware. I have a Pentium laptop w/96M RAM - NB is my usual IDE but that's right out, even JEdit is a bit painful to work it. thx -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 13:31 To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: RE: Can anybody tell how to setup struts in Netbeans IDE For working on the distribution itself: 1. Create a new project (from the Project Manager window) 2. Download the struts source distribution (or use built-in cvs to get the module) 3. Extract to a local drive (if on windoze, try not to have spaces in the directory (such as C:\My Documents) 4. Mount the directory you unzipped to 5. Copy build.properties.sample to build.properties and customize to point to where you keep those jars 6. Mount each of the source directories that you wish to work in For me, I use: jakarta-struts/src/share jakarta-struts/src/example 7. Mount each jar referenced in the build.properties file * Note - NetBeans has built in support for auto-mounting these if your build.xml specifies the jars in the project.classpath, but that's not the case for the default struts distribution. For doing your own thing: 1. Create a new project (from the Project Manager window) 2. Download (or build for yourself) the required jars *See the jakarta-struts-1.1-b2/webapps/struts-example.war 3. Create a directory (I use a structure similar to how the webapp will exist) +-/my-project | +-/WEB-INF | +-/classes | +-/lib | +-/src 4. Create a build.xml for your project (so ant can build and war it for you). I recommend you use an existing file to get a jump start on development. Actually, I recommend you re-use someone's entire existing project. That will surely get you ahead of the game. 5. Mount that directory * If you specified the build classpath and the jars are there, NetBeans will mount the jars for you automatically. 6. Mount each of the source directories that you wish to work in /myproject/WEB-INF/src 7. Always work in the node in #6 when modifying your java files. I'll also take this opportunity to tell you that I recommend using Eclipse. I was a NetBeans advocate for the longest time, but a few weeks ago several discussion had prompted me to try out Eclipse, and I can say without a doubt, that it is much more mature an IDE than NetBeans. And since they are both Open Source.heywhy not? One definite advantage Eclipse has over NetBeans is that Eclipse is built using SWT (Standard Widget Toolkit). That means that the IDE is written in Java, but the underlying framework uses native JNDI calls the OS API.or, in other words..its fast as Hell on windows. Anyone who has left NetBeans running in the background overnight on a laptop knows the pain of doing an Alt+Tab back to the IDE and seeing how Swing pulls its rather large A## up from the swap fileheh heh :) Hope that will help you get started. I was planning to post a how-to for doing this and a few other tasks with NetBeans, Eclipse, and JBuilder. I even have quite a few screenshots taken, but I just haven't finished it. Good Luck with it!!! -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: [MVC-Programmers] RE: MVC-Programmers digest, Vol 1 #94 - 7 msgs Hi, I am new to struts framework. Can anybody tell how to setup struts in Netbean IDE.. Thanks Kaja. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL
RE: Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml
Yes, my struts-config.xml has the following definition in it: message-resources key=ui null=false parameter=/WEB-INF/conf/UserInterfaceResources factory=com.mycompany.util.SpecifiedPropMsgResourcesFactory/ The application where I am trying to subclass the FormBeanConfig is a robust working Struts app, which has many bean:message tags that successfully draw resources from the ui message resources. As soon as I trying subclassing the FormBeanConfig of any form-bean element, the exception starts happening. Here is my code for the MyFormBeanConfig class: -- package mypackage; import org.apache.struts.config.FormBeanConfig; public class MyFormBeanConfig extends FormBeanConfig { protected String callbackClassName; public MyFormBeanConfig() { super(); callbackClassName = null; } public String getCallbackClassName() { return this.callbackClassName; } public void setCallbackClassName(String callbackClassName) { this.callbackClassName = callbackClassName; } } I am wondering if the Cannot find message resources under key ui error message I am getting is not indicative of the true problem. I really don't think anything is wrong with how I have set up my message resources, but I could be wrong. Thanks again, Denis -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:41 PM To: Struts Users Mailing List Subject: RE: Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml Apparently, you are trying to use a 'message resources under key ui' and it is not found :/ Have you validated that it is there? Can you post your Dyna extension? -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Ahearn, Denis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:51 PM To: '[EMAIL PROTECTED]' Subject: Error Cannot find message resources under key ui when attempting to subclass FormBeanConfig in struts-config.xml Has anyone successfully subclassed the FormBeanConfig associated with a form-bean element? For example: form-bean name=myForm type=org.apache.struts.action.DynaActionForm className=mypackage.MyFormBeanConfig . . . /form-bean When I try this, I get the following exception: javax.servlet.ServletException: Cannot find message resources under key ui at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImp l.java:494) at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:280) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) 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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:471) 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:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at