Re: MVC + Validation tips?
Hi, I'm intereseted if you found a better solution, because I have this problem too best regards, Slavic - Original Message - From: James Higginbotham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:44 AM Subject: MVC + Validation tips? Hi, After searching the archives, I couldn't find an email that described a good solution to my question, and Ted's sample chapter on Validation didn't touch on it either. I have an action that is called which prepares the appropriate data and forwards to a JSP which contains a struts form. I have validation turned on now, so the action tries to validate and fails when its initially called, thus preventing my data from being loaded (it just goes to the input page, itself). My current workaround is to do the following: action path=/editor type=my.editor.EditorAction name=editor scope=request input=editor.default validate=false forward name=editor.default path=editor.default/ /action action path=/editorSave type=my.editor.EditorAction name=editor scope=request input=editor.default forward name=editor.default path=editor.default/ forward name=editor.save.success path=/viewer.do/ forward name=editor.cancel path=/viewer.do/ /action I then call the /editor.do first, and that renders a JSP that will POST to /editorSave.do and validate the form. Is there a better way to handle this, or is this the preferred method when honoring MVC and only requesting pages via Actions? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MVC + Validation tips?
What kind of form are you using? I'm implementing a validatorform, and I use the following hack to allow the same action to populate the form before validation. This code is put in my implementation of the validate method: if (request.getMethod().equals(POST)) { ActionErrors errors = super.validate(mapping, request); return errors; } else { return null; } This code only triggers validation when there is a POST in progress. Hope this helps. Anders, On Mon, 31 Mar 2003, Veaceslav Chicu wrote: Hi, I'm intereseted if you found a better solution, because I have this problem too best regards, Slavic - Original Message - From: James Higginbotham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:44 AM Subject: MVC + Validation tips? Hi, After searching the archives, I couldn't find an email that described a good solution to my question, and Ted's sample chapter on Validation didn't touch on it either. I have an action that is called which prepares the appropriate data and forwards to a JSP which contains a struts form. I have validation turned on now, so the action tries to validate and fails when its initially called, thus preventing my data from being loaded (it just goes to the input page, itself). My current workaround is to do the following: action path=/editor type=my.editor.EditorAction name=editor scope=request input=editor.default validate=false forward name=editor.default path=editor.default/ /action action path=/editorSave type=my.editor.EditorAction name=editor scope=request input=editor.default forward name=editor.default path=editor.default/ forward name=editor.save.success path=/viewer.do/ forward name=editor.cancel path=/viewer.do/ /action I then call the /editor.do first, and that renders a JSP that will POST to /editorSave.do and validate the form. Is there a better way to handle this, or is this the preferred method when honoring MVC and only requesting pages via Actions? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tiles] putList() Displaying
Hi, The tiles:insert tag don't check if the attribute is a list because element of the list can be of several kind (def name, URL, Item, custom bean, ...). Doing an insert on a attribute of type list doesn't means that you want to insert each element of the list. Maybe you simply want to display the element. Take for example the menu layout. It requires as input a list of Item. One can customized the Item: how the insert tag can take into account such customization ? In the current proposal, the insert tag just pass the list as is, and let the programmer play with the list according to what have been pushed in the list. Cedric Jacob Hookom wrote: I was wondering if I missed something in the documentation pertaining to displaying lists of includes without using scriptlets. The tiles example war uses putLists to describe menus, but then uses a scriptlet with an Iterator to actually display them. Why doesn't the tiles:insert tag know if it's a list and iterate over the results to display them-- again, I may have completely missed it in the documentation? Best Regards, Jacob Hookom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HowTo install an Struts 1.1 application on Tomcat 3.2.4
Hello, I tried to install the examples application, which comes with Struts 1.1 RC1 on Tomcat 3.2.4. When I put the struts-example.war into the webapps directory and restart Tomcat, I get an exception (here is the complete stack trace): [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory java.l ang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFacto ryjava.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResou rcesFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:183) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav a:182) at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR esourcesFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageRe sources.java:576) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138) at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR esourcesFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageRe sources.java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.jav a:1276) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:459) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn StartupInterceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java :491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory java.l ang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializerError: java.lang .NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageRe sources.java:577) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138) at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR esourcesFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageRe sources.java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.jav a:1276) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:459) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn StartupInterceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java :491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) cannot load servlet name: action: null Because Struts 1.1 needs an JAXP 1.1 compatible XML parser, I renamed crimson.jar to zcrimson.jar (and jaxp.jar in the same way) and put xercesImpl.jar and xmlParserAPIs.jar from Xerces 2.3.0 into the lib directory of Tomcat. Even when I deleted the XML parser library, which ships with Tomcat, I get the exception. What else I have to configure, to get the examples application work? Greetings Stefan Deutscher Sparkassen Verlag GmbH Am Wallgraben 115 70565 Stuttgart Telefon: 0711/782-0 Webseite: http://www.dsv-gruppe.de Dieses E-Mail einschließlich evtl. angehängter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind und Sie dieses E-Mail irrtümlich erhalten haben, dürfen Sie weder den Inhalt dieses E-Mails nutzen noch dürfen Sie die evtl. angehängten Dateien öffnen und auch nichts kopieren oder weitergeben/verbreiten. Bitte verständigen Sie den Absender und löschen Sie dieses E-Mail und evtl. angehängte Dateien umgehend.
Re: custom tile definitions leads to error
Hi, If you use your own defined Item class, you can disable the xml validation to add your extra properties (set the appropriate option in the TilesPlugin). Also, you can use the bean tag instead of item: bean classname=... set-property property=... value=... / set-property property= ... value=... / ... /bean Maybe we should add the set-property ... tag to the item tag ? Cedric Dan Allen wrote: I took the lead of Cedric when he made his SimpleMenuItem and I extended it to make a SimpleMenuActionItem with the following layout: item text=Home action=/Home classtype=net.creativerge.bean.SimpleMenuActionItem/ However, now I am getting DTD parse errors all over the place. It seems sort of lame to have to worry about DTD issues if you want to extend and make your own custom tag. But I guess such is life with XML. So I can do one of two things at this point. I can create my SimpleMenuActionItem using the original attributes and just have a non-intuitive mapping between the two (the attribute name and what it actually does) or I can modify the DTD for my new item set. However, if i modify the DTD I have no idea where to put it or how to reference it (okay, so I lack some XML knowledge). However, I thought it was a pretty good idea, seeing how struts should always make internal links action links, to make a SimpleMenuActionItem. I also felt that the attribute text was more intuitive for the contents between the link than value since the other option is icon my proposal for the DTD is as follows: + add an attribute action which, when used in place of link will reference a struts action + change value to text to counter the icon I could be just talking crazy here, but it seems like a good idea to me. Perhaps we could excite some interest in defining how to extend the items list a bit better. Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to get a single value from hashtable
Shashi, Ah, very clear now -- excellent description. This will almost do what you want. It requires that the Hashtable instance you want to iterate over be available in some scope (probably a request attribute) under the name pages: table logic:iterate id=currentPage name=pages tr tdbean:write name=currentPage property=key //td tdol logic:iterate id=question name=currentPage property=value libean:write name=question //li /logic:iterate /td/ol /tr /logic:iterate /table There is one major problem with this approach, however. A Hashtable is not an ordered list. I made a little example app (I'll send that directly to you in a separate message, Shashi), and it would always output the page 2 row first. If you need to guarantee the order in which the rows display, a Hashtable is not an appropriate structure. You need some kind of List to guarantee the order. Alternately, you could construct key strings with the number in them in the right order and use that to get the right value from the Hashtable, but that is somewhat inelegant, requires more code in a scriptlet, and it will break if you change the strings. A Hashtable is a synchronized Map, too, so performance will be somewhat impacted negatively versus using an unsychronized Map class like HashMap. This will be minor (though still present) if each new request gets its own Hashtable, but it could be a lot worse if many requests might share the same Hashtable instance. To solve the ordering problem, you could change from a Hashtable to some kind of List (ArrayList will work well), so the code in the action would look like this: List questions; List pages = new ArrayList(); // page 1 questions = new ArrayList(); questions.add(Where did I park my car?); questions.add(Why is the sky blue?); pages.add(questions); // page 2 questions = new ArrayList(); questions.add(When do I need to finish this project?); questions.add(Do you have any objections to using Struts?); pages.add(questions); // add the hashtables of pages to the request request.setAttribute(pages, pages); And then use this in the JSP: table logic:iterate id=currentPage indexId=pageIndex name=pages tr tdpage %=pageIndex.intValue()+1%/td tdol logic:iterate id=question name=currentPage libean:write name=question //li /logic:iterate /td/ol /tr /logic:iterate /table Even the List implementation has some shortcomings, however. Specifically, the row headings for the pages are now in the JSP rather than your action, so you lose a lot of flexibility about what you can name them. And you need a scriptlet to display the page number, since pageIndex will start at 0. Both the Hashtable and List implementations aren't very O-O, which severely limits their flexibility. Imagine if you wanted to add a third column with some additional information from the page. You can't since it isn't really an object with properties, but rather just a List of questions. The questions in the Hashtable and List implementations aren't really question objects, either. That limits them in a similar fashion -- they are just Strings, so you can't add more properties, like an answer or a URL to provide a link to more info, etc. Identifying those objects as pages and questions may be difficult for your future maintenance programmers since variable names and comments are all they have to go on and they won't necessarily be consistent or even well named. To the runtime, you just have a Hashtable of String keys, where each is mapped to an ArrayList of String objects. Your maintenance programmers might be thankful if you give it more structure, where your ActionMapping/Action/JSP share some kind of ActionForm, with a pages property that is a List of Pages, where each Page has a questions property that is a List of Question objects, and each Question object has a text property that is a String that represents the text of the question. If you are writing an app with many pages that use these things, the Page and Question beans could be reused. If you are able to change the data structure, that would be a good idea. I might do something like this: // you probably want a better name that relates to what this page represents in your problem domain, but I don't // know what the domain is, so I gave the class this simple name... class StructuredActionForm extends ActionForm { private List pages; public List getPages() { return pages; } public void setPages(List pages) { this.pages = pages; } } class Page { private String name; private List questions; public Page(String name, List questions) { this.name = name; this.questions = questions; } public List getQuestions() { return questions; } public String getName() { return name; } } class Question { private String text; public Question(String text) {
DESIGN: mapping pages and/or tiles in action
I am starting to have a large mix of acction mapping names, tile layout names and JSP names throughout my JSP's and action mappings. There does not seem to be any concistant way I am currently going it yet. So 1 action may have 1 forward to .defaultLayout, 1 to userListAction, and 1 to member.jsp. I am also getting confused as to the type and location of all my different mappings as the concistancy is not in place. So 1 JSP, might have links to other jsp's, as well as action's. I am wondering what I can do, or what others are doing to keep as consistant as possible? - Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 - Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: validator mask
I would like to know if it's possible to define multiple mask validation rules for the same form field.I tried this but doesn't work but I don't if it's because of my mistake. I'm a newbie in regular expressions so I can't write a regexp that checks if a string contains at least 1 digit, at least 1 lowercase character, at least 1 uppercase character.Maybe it's impossible? Thanks for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Right way to extends Action
I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks.
Session beans are shared across multiplae instances of browsers!
My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi
RE: [Tiles] putList() Displaying
Why can't the tag or the tiles controller do something along the lines of instanceof, if the property is a list-type, then process each member of the list to the page? I thought everyone was getting away from scriptlets -Jacob -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Mon 3/31/2003 3:50 AM To: Struts Users Mailing List Cc: Subject: Re: [Tiles] putList() Displaying Hi, The tiles:insert tag don't check if the attribute is a list because element of the list can be of several kind (def name, URL, Item, custom bean, ...). Doing an insert on a attribute of type list doesn't means that you want to insert each element of the list. Maybe you simply want to display the element. Take for example the menu layout. It requires as input a list of Item. One can customized the Item: how the insert tag can take into account such customization ? In the current proposal, the insert tag just pass the list as is, and let the programmer play with the list according to what have been pushed in the list. Cedric Jacob Hookom wrote: I was wondering if I missed something in the documentation pertaining to displaying lists of includes without using scriptlets. The tiles example war uses putLists to describe menus, but then uses a scriptlet with an Iterator to actually display them. Why doesn't the tiles:insert tag know if it's a list and iterate over the results to display them-- again, I may have completely missed it in the documentation? Best Regards, Jacob Hookom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session beans are shared across multiplae instances of browsers!
Stateless session bean are pooled by the container, and reused. So if you define globals in your session bean, then everone has access to this. This is _not_ struts, this is J2EE. If you do not want things modified, make them locals instead of globals in the SB. -Original Message- From: Jain, Shilpi [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:42 PM To: Struts Users Mailing List Subject: Session beans are shared across multiplae instances of browsers! My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session beans are shared across multiplae instances of browsers!
how is that possible to share your session bean? is your bean static? -Original Message- From: Jain, Shilpi [mailto:[EMAIL PROTECTED] Sent: 31 March 2003 01:42 To: Struts Users Mailing List Subject: Session beans are shared across multiplae instances of browsers! My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.net/legal/email.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does a degree matter?
Brandon, But we Indians have to work like a dog ... for getting handful of Rupees...!!! tough to take out anytime for reading...after a work of 12-15 hours a day. Regards, Puneet Agarwal Ext: 1031 Struts ... Action ... Struts in Action ... Action in Struts ... Action with Struts ... Brandon Goodin To: Struts Users Mailing List [EMAIL PROTECTED] [EMAIL PROTECTED]cc: s Subject: RE: Does a degree matter? 03/30/03 02:29 AM Please respond to Struts Users Mailing List Maybe I'll go become a citizen of India... They seem to be getting a lot of IT work. Heck $20/hour over there is like $80/hour here :-)) Brandon Goodin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: RE: Does a degree matter? Hello Brandon, Generally degrees, diplomas, accreditation, courses and the like can only help you in any career. But the IT career is unusual because of pace at which things change in the IT industry. Cheaper computers, cheaper software and cheaper programmers make it tough to see where you will be in a couple of years. Downturns in the economy and outsourcing/nearsourcing IT work to far away lands only make it worse. There's a lot of soul searching going on now within the IT industry. It's tough going from being able to get work anywhere for lots of money to having a tough time getting a job for much less money. I think that if you are considering going to school for a degree, you should make sure that computers is the career you want. This may be a rare opportunity for you to consider another kind of career. Auto mechanics now earn about the same as programmers and they can open the windows while the work! Good luck! Steve -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 3:09 PM To: Struts Users Mailing List Subject: Does a degree matter? Hey all, I'm trying to make a decision as to what I am going to do. I am sucking wind on profitable work. So, I was thinking about going to school and getting a BA in Comp Science to make myself more attractive in the job market. Is it really worth doing? I've been doing development for 5 years professionaly. 2 years Perl and ASP, 3 years Java. Prior to that I was hobbying in those languages on my own. My knowledge is competitive with anyone else in my realm of experience. Anyways, I was just wondering how important you all think a BA in Computer Science is for a family man trying to give his career a boost. Brandon Goodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session beans are shared across multiplae instances of browsers!
Shilpi, If you are opening up the new browser window by pressing CTRL+N then the session will be shared. To avoid this always open the browser as a new process from your desktop menu. Regards Ritesh -Original Message- From: Jain, Shilpi [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:12 PM To: Struts Users Mailing List Subject: Session beans are shared across multiplae instances of browsers! My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session beans are shared across multiplae instances of browsers!
Shilpi, You should also make sure you are not actually in the same session. If you use IE and press ctrl-n for a new window you will be in the same session to the server. Oz ps. too funny - you work for xerox!!! ;) well, maybe not that funny. -Original Message- From: Jain, Shilpi [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 9:42 PM To: Struts Users Mailing List Subject: Session beans are shared across multiplae instances of browsers! My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session beans are shared across multiplae instances of browsers!
Do you guys have any openings in Xerox ?? Whats the location of the DC ? And how much they pay? -Original Message- From: Oguz Kologlu [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:34 PM To: Struts Users Mailing List Subject: RE: Session beans are shared across multiplae instances of browsers! Shilpi, You should also make sure you are not actually in the same session. If you use IE and press ctrl-n for a new window you will be in the same session to the server. Oz ps. too funny - you work for xerox!!! ;) well, maybe not that funny. -Original Message- From: Jain, Shilpi [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 9:42 PM To: Struts Users Mailing List Subject: Session beans are shared across multiplae instances of browsers! My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrade from struts 1.0
I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do anybody have a to-do-list or something similar to convert the old struts-config.xml into the new DTD to let me have some idea of the effort before to start? Angelo Andreetto Analyst programmer / Application Products Boss Lab SA, via Cantonale, CH - 6934 Bioggio tel. +41 (0)91 612 26 65 - fax +41 (0)91 612 27 72 [EMAIL PROTECTED] www.bosslab.com IMPORTANT: This e-mail transmission is intended for the named addressee(s) only. Its contents are private, confidential and protected from disclosure and should not be read, copied or disclosed by any other person. If you are not the intended recipient, we kindly ask you to notify the sender immediately by telephone (+41-91-612 26 11), to redirect the message to the account [EMAIL PROTECTED] and to delete this e-mail. E-mail transmissions may be intercepted, altered or read by unauthorized persons and may contain viruses. Therefore, it is recommended that you use regular mail or courier services for any information intended to be confidential. However, by sending us messages through e-mail, you authorize and instruct us to correspond by e-mail in the relevant matter. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Right way to extends Action
Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles with logic:iterate and JavaScript to sort table
I have a Struts web application with the following JSP page that allows to display table. I would like to allow the user to sort column. %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % html:form action=/MyAction.do method=GET table id=table0 width=100% border=1 cellpadding=0 cellspacing=0 bordercolor=#FF %-- Title for the columns of the table --% tr bgcolor=#FFCC00 th align=left width=10%bean:message key=title.id//th th align=left width=10%bean:message key=title.name//th /tr logic:iterate name=myForm id=employees property=employees type=myBean.Employee offset=offset length=length tr bgcolor=#EBEBEB td bgcolor=#EBEBEB width=10% html:link href=display.do bean:write name=employees property=id/ /html:link /td td bgcolor=#EBEBEB width=10% bean:write name=employees property=name/ /td /tr /logic:iterate /table script src=sortTable.js/script scriptinitTable(table0);/script /html:form This page extends a common model classicLayout.jsp. Do I have to call the script in the head of the classicLayout.jsp ? I placed the JavaScript file sortTable.js in the same directory as my JSP. But it doesn't work, has someone an idea of the problem ? As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. Please note my new email address: [EMAIL PROTECTED] http://www.thomson.net/
Re: Upgrade from struts 1.0
Oh another swiss guy ;) I'm been thinking I was the only swiss guy around here. Cheers. -- Alexandre Jaquet - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:09 PM Subject: Upgrade from struts 1.0 I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do anybody have a to-do-list or something similar to convert the old struts-config.xml into the new DTD to let me have some idea of the effort before to start? Angelo Andreetto Analyst programmer / Application Products Boss Lab SA, via Cantonale, CH - 6934 Bioggio tel. +41 (0)91 612 26 65 - fax +41 (0)91 612 27 72 [EMAIL PROTECTED] www.bosslab.com IMPORTANT: This e-mail transmission is intended for the named addressee(s) only. Its contents are private, confidential and protected from disclosure and should not be read, copied or disclosed by any other person. If you are not the intended recipient, we kindly ask you to notify the sender immediately by telephone (+41-91-612 26 11), to redirect the message to the account [EMAIL PROTECTED] and to delete this e-mail. E-mail transmissions may be intercepted, altered or read by unauthorized persons and may contain viruses. Therefore, it is recommended that you use regular mail or courier services for any information intended to be confidential. However, by sending us messages through e-mail, you authorize and instruct us to correspond by e-mail in the relevant matter. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Design Problem Action Class
Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Right way to extends Action
I think this is the best way to go. We have somethign similar...We are using struts 1.0.. And we have over ridden perform method and added pre and processing hooks public final ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { preprocess(mapping, form, request, response); ActionForward result = null; // new exception handling prepared ActionErrors errors = (ActionErrors) request.getAttribute(ERROR_KEY); if (errors == null) errors = new ActionErrors(); try { //check login(); ActionForward forward = prePerformAction(mapping, form, errors, request, response); if (forward != null) return forward; // new exception handling prepared result = performAction(mapping, form, errors, request, response); } catch (ServiceException ex) { } catch (Throwable t) { //do error handling stuff.. } finally { handleErrors(request, errors); } return result; } -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Right way to extends Action
I would change the signature of the executeAction method not to throw Exception, but a custom ActionException. This way, you would be able to be aware of what exceptions are thrown in your action code. i.e. public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws MyActionException; -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check
So I have got the demo to work, so I copied the .xml and java files accross to my own project and I get this javax.servlet.exception Error matching patterns Any idea what that is? I set it up the same as with the Catalina example. As in '/*' in web.xml and '/index.jsp' in security filter. Thanks in advance. Ronan. On Déardaoin, Már 20, 2003, at 00:20 Etc/GMT, Max Cooper wrote: You can also use SecurityFilter, a filter-based clone of container-managed security. It allows you to set a default page to take users to when they log in out of the blue. Container-managed security doesn't allow such login requests. http://securityfilter.sourceforge.net/ -Max - Original Message - From: Scott Barr [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:12 PM Subject: Re: j_security_check Hi Ronan You'll get this when you go directly to the page for the user to login. Instead, setup a resource that is protected by Container Managed Security eg. /userHome.do, which will then take you to your login page. Once login is successful, you will be fowarded on to /userHome.do Once you've got a logged in user via CMS, you can use Filters (if using a servlet 2.3 container) to make sure the users session is setup with all required objects. To log out, simply call session.invalidate() Regards Scott Barr www.exergonic.com.au On Thu, 2003-03-20 at 09:49, ronanoc wrote: I get this message when I am trying to login, and if I am already logged in too. Status 404 /mywebapp/j_security_check type Status report message /mywebapp/j_security_check description The requested resource (/mywebapp/j_security_check) is not available. How can I prevent this happening, and how can I logout, and log in again? Thanks. Ronan O'Ciosoig One Louder Recordings IRL Co. Dublin, Ireland. http://www.onelouder.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tiles] putList() Displaying
You can getting away of scriptlet by using logic:insert ... with a jsp 1.2 compliant server, or use jstl c:forEach. The examples provided in tiles-documentation should be jsp1.1 compliant, so they use a loop in a scriptlet. But this doesn't really matter, as this scriptlet only occur in a well located jsp. You can think of this jsp as a black box, and don't bother at what there is inside. Your jsp can contain only tag with no scriptlet, and use some layout containing the scriptlet. Cedric Hookom, Jacob John wrote: Why can't the tag or the tiles controller do something along the lines of instanceof, if the property is a list-type, then process each member of the list to the page? I thought everyone was getting away from scriptlets -Jacob -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Mon 3/31/2003 3:50 AM To: Struts Users Mailing List Cc: Subject: Re: [Tiles] putList() Displaying Hi, The tiles:insert tag don't check if the attribute is a list because element of the list can be of several kind (def name, URL, Item, custom bean, ...). Doing an insert on a attribute of type list doesn't means that you want to insert each element of the list. Maybe you simply want to display the element. Take for example the menu layout. It requires as input a list of Item. One can customized the Item: how the insert tag can take into account such customization ? In the current proposal, the insert tag just pass the list as is, and let the programmer play with the list according to what have been pushed in the list. Cedric Jacob Hookom wrote: I was wondering if I missed something in the documentation pertaining to displaying lists of includes without using scriptlets. The tiles example war uses putLists to describe menus, but then uses a scriptlet with an Iterator to actually display them. Why doesn't the tiles:insert tag know if it's a list and iterate over the results to display them-- again, I may have completely missed it in the documentation? Best Regards, Jacob Hookom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Right way to extends Action
If you're using a Servlet 2.3 container, then filters seem like a better way to go. Otherwise, for Struts 1.1, a custom RequestProcessor seems more appropriate. Quoting Dario Geier [EMAIL PROTECTED]: I would change the signature of the executeAction method not to throw Exception, but a custom ActionException. This way, you would be able to be aware of what exceptions are thrown in your action code. i.e. public abstract ActionForward executeAction( ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws MyActionException; -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session beans are shared across multiplae instances ofbrowsers!
On Mon, 2003-03-31 at 06:42, Jain, Shilpi wrote: My session beans are getting shared across multiple instances of the browser. The updation that I do in one instance is reflected in the other instance. Is this a struts bug or I am doing something wrong! Shilpi Shilpi, This is correct behavior for session beans. It is because of how _most_ browsers handle sessions. A new session is created _only_ if you open a new application instance (e.g., double-click on the IE, Netscape icon), not if you do a Ctrl-N, or File-New window. If you do a Ctrl_n, opening up a new browser window, that window will (usually) share the same session as any other browser windows that are open. Does this make sense? -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction YY Y MyActionMyDispatchActionMySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Does a degree matter?
Or you can try what one of my best friends did several years ago. He was a self-taught wizard with no college and could not even get an interview. So I manufactured a resume for him awarding him a CS degree from a highly-regarded state university. He waltzed into the next job that came along (a matter of days) and ended up writing Lockheed-Martins health benefits application. For the past 5 years he has been working for a very highly-regarded West Coast firm and is now a departmental VP for software. My experience has been that IT departments and recruiters are much more concerned about proven experience than a degree or certification. The degree only gives them a sense of security, and in over 10 years in the business I have not known a single employer to check the educational credentials of a candidate. It's the technical interview and experience that's important. Moral: Don't let artificial and superficial barriers stand in your way - be creative! Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 3:29 PM To: [EMAIL PROTECTED] Subject: [OT] Re: Does a degree matter? A university degree is important for employers even though you have experience. If nothing else it might be fun to go back to school! David From: Brandon Goodin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Does a degree matter? Date: Sat, 29 Mar 2003 13:09:11 -0700 Hey all, I'm trying to make a decision as to what I am going to do. I am sucking wind on profitable work. So, I was thinking about going to school and getting a BA in Comp Science to make myself more attractive in the job market. Is it really worth doing? I've been doing development for 5 years professionaly. 2 years Perl and ASP, 3 years Java. Prior to that I was hobbying in those languages on my own. My knowledge is competitive with anyone else in my realm of experience. Anyways, I was just wondering how important you all think a BA in Computer Science is for a family man trying to give his career a boost. Brandon Goodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Too much wine tonight?
Yeah, I see that now - next day, 2 cups coffee. Got to learn to stop when I have to start relying on the dot.completion editor. ;-) Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Too much wine tonight? Looks like you're trying to dynamically construct a variable name and assign a value to it. Sorry, can't do that in Java; maybe in another language you've been working with recently? David From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Subject: Too much wine tonight? Date: Fri, 28 Mar 2003 18:48:02 -0500 Why doesn't this compile? reset()... this.(taxi_limo + day) = Constants.FLOAT_DEFAULT; ... mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design Problem Action Class
so this is the only solution i was thinking if somehow i can 2 extend classes. ;-) __C++ was good__ - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 6:26 PM Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction Y YY MyAction MyDispatchAction MySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Does a degree matter?
No shit! It took me 15 YEARS to pay off my student loans - and I even had scholarships and, at the grad level, 3 teaching fellowships. Mark -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 5:00 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Does a degree matter? On Sat, Mar 29,'03 (02:31 PM GMT-0600), Jeff wrote: probably only you can make that decision. its a tough one. Also depends on your financial situation...sucks when you have to take out loans for school. I think I'll be paying back my loans forever:)(Biology major...not even computer science.:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to talk to individuals less technically savvy than themselves. I guess all I'm saying is that you're not alone, and don't get discouraged. I can speak only for myself, but I have a lot of those moments. =) -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction YY Y MyActionMyDispatchActionMySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does a degree matter?
I couldn't agree more, Craig. A bean counter? You? That's funny! Mark (Liberal Arts undergrad; Am Hist grad; polisci post-grad) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 12:45 AM To: Struts Users Mailing List Subject: Re: Does a degree matter? * Many folks who go for Comp Sci degrees obsess over learning the particular technologies being taught in their classes, at the expense of courses to improve your general thinking skills. Any specific technology you learn in your first year is going to be totally obsolete by the time you graduate from the program anyway, so why bother? The important skill to employers (at least from my viewpoint) is that you've learned how to quickly adapt your existing skills to new technologies as they become available. Also, the fundamentals of good architecture and design practices tend to change much more slowly than the favorite language de jour -- so if you decide to go for Comp Sci, focus on fundamentals like O-O, design patterns, and so on. * Many folks who go for Comp Sci degrees are so focused on the technical things, and don't accumulate any domain knowledge along the way that would make you *more* valuable to potential employers than another Comp Sci graduate with similar skills. If you're building e-commerce systems, do you know anything about the fundamental accounting principles involved in tracking purchases? If you're building systems to introduce novices to the world of online information, have you ever studied any human factors engineering? If you're building trading systems for a Wall Street broker, do you have the slightest idea how stock and commodity exchanges work? It may surprise some of you to find out that I don't have a Comp Sci degree at all -- instead, I got a BA in Business with a focus on Accounting. This was ***tremendously*** helpful in setting me apart from everyone else who was learning programming and systems analysis in those days -- I could immediately communicate with the end users responsible for the systems we were building, using their vocabulary, without having to be trained -- in addition to the fact that I was a fair-to-middlin' programmer :-). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
Yes, delegation is the common alternative for multiple inheritance. If you are using IntelliJ, you can use the Code / Delegate Methods menu option. It will write the methods for you :) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:59 PM To: Struts Users Mailing List Subject: Re: Design Problem Action Class so this is the only solution i was thinking if somehow i can 2 extend classes. ;-) __C++ was good__ - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 6:26 PM Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction Y YY MyAction MyDispatchAction MySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nested Iterator Design Question (ValueObject or String variables ValueObject)
Hi, I have some doubts regarding ValueObject and ActionForm. I am putting all variables in ActionForm as Strings (because I doesn't want to populate default values in a form (like 0 for int and 0.0 for float)). Data getting/setting from Business Layer as ValueObjects (I am putting all variables in ValueObject with appropriate primitive Data types only). The above decessions are good or any suggestions ?? I am coming to my actual requirement and Doubt I have a nested:iterate table. (I am displaying some records as nester:iterate texts) To populate data in nested:iterate table I need to set some ArrayList of Objects. My doubt is Shall I set these objects as ValueObjects or String Variables ValueObject. If I kept String Variable ValueObjects as ArrayList of objects: I need to convert all ValueObjects into String Variable ValueObjects( this become performance issue). If I kept ValueObject as ArrayList of objects: Here I will get initilize variables problem. I think every one will face this type of design in their projects, pls help me on this. String Variables ValueObject: This means I am putting all variables in this as String only. Thanks Regards, Ashok.
DispatchAction Clarification
hi guys, correct me if i am wrong. DisptachAction class uses the parameter from the __request__ attributes to call the __method__ defined in Action class. AND the *name of the request parameter* has to be SAME as *value specified for parameter attribute* in action tag of struts-config will wait for reply Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrade from struts 1.0
Tight under-pants are the key!!! - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:11 PM Subject: RE: Upgrade from struts 1.0 Wear a hat - protect your hair. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do anybody have a to-do-list or something similar to convert the old struts-config.xml into the new DTD to let me have some idea of the effort before to start? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Too many session scoped form beans!
I like this approach. It's really smart. The only problem that I see is regarding multiple browser windows. What if the user has more than one browser window on the same screen but working on different instances? For example, the user might have an order form for client 1 and another order form for client 2 open simultaneously. Using a session scope bean (singleton) wouldn't be recommended in such cases (the same form bean instance for more than one entry form). Anyway, I realize now that the issue is bigger than I thought. Thank you guys for shedding some light on this topic. Jorge -Mensagem original- De: Nicolas De Loof [mailto:[EMAIL PROTECTED] Enviada em: Monday, March 31, 2003 5:01 AM Para: Struts Users Mailing List Assunto: Re: Too many session scoped form beans! That is just an example, I don't know what MAX value can be used for the datas you want the user to submit. Another solution would be to put form-bean into session scope and add a to-be-removed mecanism : When an action puts some form-bean on session scope for editing, it can set a to-be-removed string in session scope with the form-bean name. Every action of the application has to do is job, and look for this to-be-removed. If it exists, remove the associated objet from session. This way : - Your action sets the form-bean for editing, with an intialized ArrayList as item property. - Jsp generates HTML text fields for items. - If user follows the correct application behaviour, your edit-action gets its form-bean from session and can remove it itself. - If user clicks on menu or use a bookmark, form-bean will be removed by any other action. Nico. Of course, your newest solution is better, but it still does not feel right regarding the MAX_INDEX allowed ;-) -D - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 10:44 PM Subject: Re: Too many session scoped form beans! If this hacking scenario makes you nervous, you can set an acceptable max index value : private static final int MAX_INDEX = 100; public void setItem(int index, Object obj) { if (index MAX_INDEX) { throw new IndexOutOfBoundsException(); } Nico. Nicolas, Your great suggestion makes me nervous ... It is possible for a hacker to change the index so big that it can hog the CPU, which busy creating empty node, for each request. However, I cant come up with another solution Any comments? anyone? -D - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 28, 2003 5:19 AM Subject: Re: Too many session scoped form beans! Reading my own post I realize this code will throw an IndexOutOfBoundsException You need to put 'empty' datas on the List as needed : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } for (int i = this.item.size(); i index; i++) { this.item.add(); } this.item.add(index, obj); } Nico. I think you can use something like this in a request scoped form-bean : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } else { this.item.ensureCapacity(index); } this.item.add(index, obj); } This way, when form-bean population occurs, you will get a new Collection when needed. Nico. I'd like to know if it's possible to avoid using to many session scoped form beans. I have a bean that contains a collection and I use nested:iterate to display entry fields on my html:form. When the form is submitted, I get an error in BeanUtils.populate(), because the new bean (when the bean is request scoped) contains an empty collection and populate() tries to set the properties of the elements that existed on the bean of the previous request. If I change the bean to session scope, everything works fine (because now the bean is the same for both requests), but I think it's kind of messy to have lots of session scoped beans. I'd appreciate to have any comments on this subject. Thanks Jorge Mascena - To unsubscribe, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Does a degree matter?
Australia has what is known as HECS (Higher Education Contribution Scheme) - which is like a student loan , only paid back through extra tax when you start working and in fact is only a fraction of the actual cost of your uni education the rest being funded already by the government - which along with Austudy, the dole and other disfunctional welfare schemes is probably why the tax is so high (Subsidised education is actually quite a good idea IMHO - but only if implemented right (as opposed to 'implemented by the right' ;-))). The interesting thing about HECS is that you only have to start paying it back if your earning over 20k per annum (12k USD) - in Australia. Australia has quite a few unemployed graduates collecting the dole, and large numbers of the more employable graduates heading overseas where tax is lower and HECS isnt collected. Funny that... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 21:01 To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Does a degree matter? No shit! It took me 15 YEARS to pay off my student loans - and I even had scholarships and, at the grad level, 3 teaching fellowships. Mark -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 5:00 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Does a degree matter? On Sat, Mar 29,'03 (02:31 PM GMT-0600), Jeff wrote: probably only you can make that decision. its a tough one. Also depends on your financial situation...sucks when you have to take out loans for school. I think I'll be paying back my loans forever:)(Biology major...not even computer science.:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
What I meant by delegation is using a different ActionUtility class. The base executeAction / performAction method implementation could be implemented as a Template method, where you call your checkForLogin and other methods as you wish. I am not calling other actions, but a neutral independent class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:07 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction YY Y MyActionMyDispatchActionMySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrade from struts 1.0
And whatever you do, dont let your tie get caught in the RequestProcessor! -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 21:11 To: 'Struts Users Mailing List' Subject: RE: Upgrade from struts 1.0 Wear a hat - protect your hair. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do anybody have a to-do-list or something similar to convert the old struts-config.xml into the new DTD to let me have some idea of the effort before to start? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
[EMAIL PROTECTED] írta: I tried to convert the file to utf-8 using native2ascii as described in http://www.anassina.com/struts/i18n/i18n.html but the problem remains. native2ascii cannot convert to utf-8 afaik... it converts to ascii where the not-ascii characters will be exchanged with their escaped ascii equivalent. However native2ascii is your tool. Did you reload your application after converting the properties file? Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Design Problem Action Class
hi shirish, SAY We write 2 methods in Action (MUST extend DynamicAction here) Class public ActionForward add(...) public ActionForward del(...) AND we have action tag in config file saying action type=.. parameter=param Calling URLs a.do?param=add a.do?param=del will directly call those methods. AND there by save 2 IFs in execute(...) method :-) Hope now you would agree THIS Helper Action class is really useful ;-) regards Navjot Singh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 6:36 PM Subject: RE: Design Problem Action Class But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction Y YY MyAction MyDispatchAction MySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
On Mon, Mar 31, 2003 at 03:26:00PM +0200, Gemes Tibor wrote: [EMAIL PROTECTED] ?rta: I tried to convert the file to utf-8 using native2ascii as described in http://www.anassina.com/struts/i18n/i18n.html but the problem remains. native2ascii cannot convert to utf-8 afaik... it converts to ascii where the not-ascii characters will be exchanged with their escaped ascii equivalent. However native2ascii is your tool. Did you reload your application after converting the properties file? Tib Yes I reload it Also I forgot to write that when I tried the utf-8 encoding for the page I got some strange symbols (like questionmarks) in the browser. I thought that it might be the browser's fault and so I tried to view the page with a couple of browers but none workedd. -- Kornilios Kourtis The worst is yet to come - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
Hi Navjot, I never said that these helper classes are not required..Infact I am using them heavily in my application.. What i am saying is U need not extend those acions or copy thier code in your base actionBEcause that does not serve any purpose.. U can use the dispatch action as it is... regards, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:23 PM To: Struts Users Mailing List Subject: Re: Design Problem Action Class hi shirish, SAY We write 2 methods in Action (MUST extend DynamicAction here) Class public ActionForward add(...) public ActionForward del(...) AND we have action tag in config file saying action type=.. parameter=param Calling URLs a.do?param=add a.do?param=del will directly call those methods. AND there by save 2 IFs in execute(...) method :-) Hope now you would agree THIS Helper Action class is really useful ;-) regards Navjot Singh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 6:36 PM Subject: RE: Design Problem Action Class But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction Y YY MyAction MyDispatchAction MySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles with logic:iterate and JavaScript to sort table
Title: RE: Tiles with logic:iterate and JavaScript to sort table Sorry, but I don't know _javascript_ very well and I don't understand your remark. In my example the call to the function initTable(table0); is done after the definition of the table table id=table0. So the navigator know its name, isn't it ? it is probably the _javascript_ which is not called. but I do not know how to make this test. I added the line alert(function found and starting..);,but nothing what is the aim of this instruction ? I joined the _javascript_. Thanks in advance for your help As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. Please note my new email address: [EMAIL PROTECTED] http://www.thomson.net/ Original Message- From: Thomas CORNET [mailto:[EMAIL PROTECTED]] Sent: 31 March 2003 14:32 To: Struts Users Mailing List Subject: Re: Tiles with logic:iterate and _javascript_ to sort table As the 'initFunction' function has a parameter which is the name of the table, its call should stay at the bottom of the page. If you put it at the top, there will be an error because the table hasn't been yet processed by the navigator so it can't know its name. To ensure the script is called, just put a debugging message at the first line of 'initFunction' in your script, such as alert(function found and starting..); Thomas At 14:18 31/03/2003, you wrote: I have a Struts web application with the following JSP page that allows to display table. I would like to allow the user to sort column. %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % html:form action="" method=GET table id=table0 width=100% border=1 cellpadding=0 cellspacing=0 bordercolor=#FF %-- Title for the columns of the table --% tr bgcolor=#FFCC00 th align=left width=10%bean:message key=title.id//th th align=left width=10%bean:message key=title.name//th /tr logic:iterate name=myForm id=employees property=employees type=myBean.Employee offset=offset length=length tr bgcolor=#EBEBEB td bgcolor=#EBEBEB width=10% html:link href=""> bean:write name=employees property=id/ /html:link /td td bgcolor=#EBEBEB width=10% bean:write name=employees property=name/ /td /tr /logic:iterate /table script src=""> scriptinitTable(table0);/script /html:form This page extends a common model classicLayout.jsp. Do I have to call the script in the head of the classicLayout.jsp ? I placed the _javascript_ file sortTable.js in the same directory as my JSP. But it doesn't work, has someone an idea of the problem ? As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. Please note my new email address: [EMAIL PROTECTED] http://www.thomson.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [Filename: sortTable.js, Content-Type: application/octet-stream] Thomson policy does not allow executable code to be sent inbound via email. Use ftp://ftp.thmulti.com for inbound file transfers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DispatchAction Clarification
if you have an attribute named myMethod in your form, then you need myMethod in you action like param=myMethod. Then, the action class must have a method called myMethod. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:14 PM To: Struts Users List Subject: DispatchAction Clarification hi guys, correct me if i am wrong. DisptachAction class uses the parameter from the __request__ attributes to call the __method__ defined in Action class. AND the *name of the request parameter* has to be SAME as *value specified for parameter attribute* in action tag of struts-config will wait for reply Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: DispatchAction Clarification
And the value of the request parameter has to be the same as the name of the method in your DispatchAction. Also, remember NOT to implement the execute method in your DispatchAction. Jorge Mascena -Mensagem original- De: Navjot Singh [mailto:[EMAIL PROTECTED] Enviada em: Monday, March 31, 2003 10:14 AM Para: Struts Users List Assunto: DispatchAction Clarification hi guys, correct me if i am wrong. DisptachAction class uses the parameter from the __request__ attributes to call the __method__ defined in Action class. AND the *name of the request parameter* has to be SAME as *value specified for parameter attribute* in action tag of struts-config will wait for reply Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
[EMAIL PROTECTED] írta: Also I forgot to write that when I tried the utf-8 encoding for the page I got some strange symbols (like questionmarks) in the browser. I thought that it might be the browser's fault and so I tried to view the page with a couple of browers but none workedd. Check the page source. If it contains question marks the error is server side. If it shows the right characters, check your browser. Did you set the content type for your pages? I use this for example: %@ page language=java contentType=text/html;charset=ISO-8859-2% Hth, Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to talk to individuals less technically savvy than themselves. I guess all I'm saying is that you're not alone, and don't get discouraged. I can speak only for myself, but I have a lot of those moments. =) -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logic:notEmpty
I want to use the logic:notEmpty tag to test if a collection I have is empty or not. The Collection is in the pageContext under the variable name barcodeList. The Docs for notEmpty say that name, property, and scope are not required but if I use the property attribute it complains that I need the name. If I use name, it compains that I need property. I would think I should just be able to do: logic:notEmpty property=barcodeList stuff /logic:notEmpty but this doesn't seem to work. What is the correct way? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com
Web sphere and productivity
I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B
RE: Web sphere and productivity
I would prefere WSAD to Websphere Studio but it depends on the functionnalities and technologies that will be used during your project. But eclipse is a good tool too and it can replace WSAD easily. Have you introduced the automated tests in your developement processus, It will help to reduce the estimation. -Message d'origine- De : Frédéric BAROZZI [mailto:[EMAIL PROTECTED] Envoyé : Monday, March 31, 2003 4:09 PM À : Struts Users Mailing List Objet : Web sphere and productivity I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
On Mon, Mar 31, 2003 at 03:55:16PM +0200, Gemes Tibor wrote: [EMAIL PROTECTED] ?rta: Also I forgot to write that when I tried the utf-8 encoding for the page I got some strange symbols (like questionmarks) in the browser. I thought that it might be the browser's fault and so I tried to view the page with a couple of browers but none workedd. Check the page source. If it contains question marks the error is server side. If it shows the right characters, check your browser. Did you set the content type for your pages? I use this for example: %@ page language=java contentType=text/html;charset=ISO-8859-2% Hth, Tib yes I set the encoding of the page (iso-8859-7) and I even tried with telnet and verified that the server sends question marks -- Kornilios Kourtis The worst is yet to come - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to talk to individuals less technically savvy than themselves. I guess all I'm saying is that you're not alone, and don't get discouraged. I can speak only for myself, but I have a lot of those moments. =) -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does a degree matter?
Working in TCS is a certainly a great experience...[even after 5 Years] especially as regards to Name, Work and Facilities. I talking abt general conditions in India. Puneet Agarwal Ext: 1031 Struts ... Action ... Struts in Action ... Action in Struts ... Action with Struts ... Amitkumar_J_Malhot [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] cc: 03/31/03 05:57 PM Subject: RE: Does a degree matter? Please respond to Struts Users Mailing List come on puneet , if people from tcs start complainng about salaries in india , then every one else ( in india) should be sulking :-))) or are we riding in the same boat :-)) regards, amit malhotra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web sphere and productivity
Hi, We are using WSAD 4.0 for last one year in our project and I will not recommend you shifting from Eclipse to WSAD atleast for development.. We have a team of 7 java developers and even though WSAD Studio is the official IDE for the project, 7 of us are using Eclipse and tomcat with plugins for development.Only our team leader is using WSAD as we have on deploy on WSAD... It is to slow and takes too much of memory(We used to have 512 MB ram..But that was not at all good with wsad 4.0 So w upgraded to 1 GB ram..But still it is slow..)And if u run the server in Debug mode or so , it is too too slowAnd i think, during development , what u will be doing is starting and stopping the server frequently and debugging the application most of the time..So I will Strngly advice u that it will not at all improve productivity... I am not sure why it was choosen as deployment platform for our project and I am not an expert on Security issues etc..So I cant commnet if WSAD is good for deployment. BUT as for development , I can tell you from our experience that It is very very slow.They have improved the performance marginally with release 5.0 but still its no match for Eclipse... Hope this helps. regards, Shirish -Original Message- From: Frédéric BAROZZI [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:09 PM To: Struts Users Mailing List Subject: Web sphere and productivity I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:notEmpty
I have used this tag, but I usually reference the name (formbean) and property together. At the very least, you *must* include the value attribute to make the logic comparison with your property value. Even if the tag picked up your property, what it is supposed to be comparing it to see if it is notEqual? Hope this helps, Susan Bradeen On 03/31/2003 09:01:50 AM Sloan Seaman wrote: I want to use the logic:notEmpty tag to test if a collection I have is empty or not. The Collection is in the pageContext under the variable name barcodeList. The Docs for notEmpty say that name, property, and scope are not required but if I use the property attribute it complains that I need the name. If I use name, it compains that I need property. I would think I should just be able to do: logic:notEmpty property=barcodeList stuff /logic:notEmpty but this doesn't seem to work. What is the correct way? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] overwhelmed [was] Re: Does a degree matter?
Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to talk to individuals less technically savvy than themselves. I guess all I'm saying is that you're not alone, and don't get discouraged. I can speak only for myself, but I have a lot of those moments. =) -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design Problem Action Class
Well, that depends on your implementation. If need to perform any checkings (like checking whether the user has logged in) before any or almost any action you perform, then you'll need this customed layer (i.e. you'll call the ActionUtility.checkLoggedUser() method before calling executeAction in every BaseAction class). Even you can use them for customizing your logging. This is not too much work, and it could be of great use in the future. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:39 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class this sounds good idea...But still I dont see any reason to extend those helpr classes..U can use them out of the box :-)) -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:20 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class What I meant by delegation is using a different ActionUtility class. The base executeAction / performAction method implementation could be implemented as a Template method, where you call your checkForLogin and other methods as you wish. I am not calling other actions, but a neutral independent class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:07 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction YY Y MyActionMyDispatchActionMySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards Navjot Singh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Web sphere and productivity
I use WSAD only because the corporation has mandated it. WebSphere 4.0 has heaps of vendor specific code and code generation added into WSAD. This is not portable to other app servers. For the cost of WSAD, I would not consider it. I have been using it for 1.5 years since it came out. Maybe look into XDoclet for some code savings. -Original Message- From: Frédéric BAROZZI [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:09 PM To: Struts Users Mailing List Subject: Web sphere and productivity I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:notEmpty
Oops, sorry about that ... I was thinking of the wrong tag! Yes, I use notEmpty, and use both name and property attributes. Susan Bradeen On 03/31/2003 09:19:18 AM Susan Bradeen wrote: I have used this tag, but I usually reference the name (formbean) and property together. At the very least, you *must* include the value attribute to make the logic comparison with your property value. Even if the tag picked up your property, what it is supposed to be comparing it to see if it is notEqual? Hope this helps, Susan Bradeen On 03/31/2003 09:01:50 AM Sloan Seaman wrote: I want to use the logic:notEmpty tag to test if a collection I have is empty or not. The Collection is in the pageContext under the variable name barcodeList. The Docs for notEmpty say that name, property, and scope are not required but if I use the property attribute it complains that I need the name. If I use name, it compains that I need property. I would think I should just be able to do: logic:notEmpty property=barcodeList stuff /logic:notEmpty but this doesn't seem to work. What is the correct way? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com__ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Tablib
Cool, but sorry James, I hate frames. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: March 29, 2003 1:02 AM To: Struts Users List Subject: [ANN] Tablib I just commited a new project by Mohan Kishore [EMAIL PROTECTED]. He developed and contributed this (very cool IMHO) new build target. It allows us to generate 2 new types of taglib documentation. * TaglibDoc This is a JavaDoc-like set of html and css files for browsing the taglib documentation. Here's what this target does (I ran this about 15 minutes ago): http://struts.sourceforge.net/struts-atlanta/taglibdoc/ * TaglibReport This target will generate a grid-like view of the taglibs and their attributes so that you can see every tag in a typical package side by side. This helps when comparing which tags implement a certain attribute, by allowing you to view them side by side and not have to look up each tag by hand. (also about 15 minutes ago) http://struts.sourceforge.net/struts-atlanta/taglibreport/ Thank you Mohan, I, for one, will definitely take advantage of this. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
action form Q
hi consider an integer field in an action form private int A = -1; public void setA(int a) {A = a;} public int getA() { return A; } what if the user typed text suche as ouch in the html form field. how will struts behave under such circumstances? would it throw some exception? would it not set any value? is there a way to check if such a thing has happened? similarly, if there are variations for Date, Time, Timestamp fields i'd be very interested to know them as well. thanx guys appreciate any help riyaz ps: any one remember what's the reg expression to catch multi-line comments (/* blah */) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
Kornilios Kourtis írta: yes I set the encoding of the page (iso-8859-7) and I even tried with telnet and verified that the server sends question marks How does ApplicationResources.properties look like? It should like this: prompt.login=\ufeff\u038c\u03bd\u03bf\u03bc\u03b1 \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 or like. I don't know any greek ;-). Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
Write your own cheques if you know FORTRAN!! - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:22 PM Subject: RE: [OT] overwhelmed [was] Re: Does a degree matter? Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to talk to individuals less technically savvy than themselves. I guess all I'm saying is that you're not alone, and don't get discouraged. I can speak only for myself, but I have a lot of those moments.
RE: Web sphere and productivity
I am using WSAD 4.0.3 with a dual 2.2Ghz and 1GIG of ram. Some of my projects take up to 15 minutes to RMIC each time. Not to mention the all the new xml mapping files I get to create, just to have WSAD change them without telling me. -Original Message- From: Sakhare, Shirishchandra Sent: Monday, March 31, 2003 4:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Web sphere and productivity Hi, We are using WSAD 4.0 for last one year in our project and I will not recommend you shifting from Eclipse to WSAD atleast for development.. We have a team of 7 java developers and even though WSAD Studio is the official IDE for the project, 7 of us are using Eclipse and tomcat with plugins for development.Only our team leader is using WSAD as we have on deploy on WSAD... It is to slow and takes too much of memory(We used to have 512 MB ram..But that was not at all good with wsad 4.0 So w upgraded to 1 GB ram..But still it is slow..)And if u run the server in Debug mode or so , it is too too slowAnd i think, during development , what u will be doing is starting and stopping the server frequently and debugging the application most of the time..So I will Strngly advice u that it will not at all improve productivity... I am not sure why it was choosen as deployment platform for our project and I am not an expert on Security issues etc..So I cant commnet if WSAD is good for deployment. BUT as for development , I can tell you from our experience that It is very very slow.They have improved the performance marginally with release 5.0 but still its no match for Eclipse... Hope this helps. regards, Shirish -Original Message- From: Frédéric BAROZZI [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:09 PM To: Struts Users Mailing List Subject: Web sphere and productivity I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Right way to extends Action
Hi, Why have we choose to raise Execption on our BaseAction ? Because, as was designed the execute method of the Action class, the exceptions raised in an action class are passed back to the ActionSevlet, who can handle all the exceptions that we have defined in the Struts config file. Xavier - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:41 PM Subject: RE: Right way to extends Action I would change the signature of the executeAction method not to throw Exception, but a custom ActionException. This way, you would be able to be aware of what exceptions are thrown in your action code. i.e. public abstract ActionForward executeAction( ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws MyActionException; -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action form Q
check out the struts validation framework - there's a developer guide on the Struts pages, and loads of info in books, on the archives, etc. HTH, -jeff On Monday, March 31, 2003, at 02:32 AM, Riyaz Mansoor wrote: hi consider an integer field in an action form private int A = -1; public void setA(int a) {A = a;} public int getA() { return A; } what if the user typed text suche as ouch in the html form field. how will struts behave under such circumstances? would it throw some exception? would it not set any value? is there a way to check if such a thing has happened? similarly, if there are variations for Date, Time, Timestamp fields i'd be very interested to know them as well. thanx guys appreciate any help riyaz ps: any one remember what's the reg expression to catch multi-line comments (/* blah */) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
Never laugh! I just finished a project integrating a legacy app written in FORTRAN into the back end of a Struts-fronted webapp. Maybe those FORTRAN guys are smarter than we think - we've all beaten our heads against the wall learning 6 different languages and porting all our stuff, and they are still using libraries they wrote 20 years ago. LOL, -jeff On Monday, March 31, 2003, at 08:31 AM, Simon Kelly wrote: Write your own cheques if you know FORTRAN!! - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:22 PM Subject: RE: [OT] overwhelmed [was] Re: Does a degree matter? Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are your interests outside of computers? If you end up doing consulting, relating to clients is very important. A close friend of mine a year older than you works as a specialized O/S customer support professional. She started programming, etc. when she was 29. She took a position that allows her to use her technical degree yet emphasizes her people skills. Consistently, she receives very positive feedback from Fortune 500 companies, feedback that some of her more techie coworkers do not, because they don't share her ability to
RE: Tiles with logic:iterate and JavaScript to sort table
Generally the JS include (script src=sortTable.js/script) should go in the head of the document so that the objects and/or functions defined in it will be global to the page. The alert() function just displays a dialog window with a message. It's like using println() to debug java code. Here are some JavaScript resources: http://developer.netscape.com/docs/manuals/javascript.html http://developer.netscape.com/docs/manuals/javascript.html http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/index.html http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/index.html Welcome to the wonderful world of JavaScript! -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 7:41 AM To: 'Struts Users Mailing List' Subject: RE: Tiles with logic:iterate and JavaScript to sort table Sorry, but I don't know JavaScript very well and I don't understand your remark. In my example the call to the function initTable(table0); is done after the definition of the table table id=table0. So the navigator know its name, isn't it ? it is probably the JavaScript which is not called. but I do not know how to make this test. I added the line alert(function found and starting..);,but nothing what is the aim of this instruction ? I joined the JavaScript. Thanks in advance for your help As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. Please note my new email address: [EMAIL PROTECTED] http://www.thomson.net/ http://www.thomson.net/ Original Message- From: Thomas CORNET [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 31 March 2003 14:32 To: Struts Users Mailing List Subject: Re: Tiles with logic:iterate and JavaScript to sort table As the 'initFunction' function has a parameter which is the name of the table, its call should stay at the bottom of the page. If you put it at the top, there will be an error because the table hasn't been yet processed by the navigator so it can't know its name. To ensure the script is called, just put a debugging message at the first line of 'initFunction' in your script, such as alert(function found and starting..); Thomas At 14:18 31/03/2003, you wrote: I have a Struts web application with the following JSP page that allows to display table. I would like to allow the user to sort column. %@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % html:form action=/MyAction.do method=GET table id=table0 width=100% border=1 cellpadding=0 cellspacing=0 bordercolor=#FF %-- Title for the columns of the table --% tr bgcolor=#FFCC00 th align=left width=10%bean:message key=title.id//th th align=left width=10%bean:message key=title.name//th /tr logic:iterate name=myForm id=employees property=employees type=myBean.Employee offset=offset length=length tr bgcolor=#EBEBEB td bgcolor=#EBEBEB width=10% html:link href=display.do bean:write name=employees property=id/ /html:link /td td bgcolor=#EBEBEB width=10% bean:write name=employees property=name/ /td /tr /logic:iterate /table script src=sortTable.js/script scriptinitTable(table0);/script /html:form This page extends a common model classicLayout.jsp. Do I have to call the script in the head of the classicLayout.jsp ? I placed the JavaScript file sortTable.js in the same directory as my JSP. But it doesn't work, has someone an idea of the problem ? --- - As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. Please note my new email address: [EMAIL PROTECTED] http://www.thomson.net/ http://www.thomson.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action form Q
Don't do that. Make all your form fields strings, use the validator plug in, and convert from String to other type in your Action class. One good reason to do this is that if the user were to type ouch in an Integer field, it would be impossible to even tell them that ouch wasn't a valid value because there is nowhere to store the string ouch -- you'd have to say whatever you typed is invalid whereas with strings and validator you have all the flexibility in the world. I hope that helps! - Original Message - From: Riyaz Mansoor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:32 AM Subject: action form Q hi consider an integer field in an action form private int A = -1; public void setA(int a) {A = a;} public int getA() { return A; } what if the user typed text suche as ouch in the html form field. how will struts behave under such circumstances? would it throw some exception? would it not set any value? is there a way to check if such a thing has happened? similarly, if there are variations for Date, Time, Timestamp fields i'd be very interested to know them as well. thanx guys appreciate any help riyaz ps: any one remember what's the reg expression to catch multi-line comments (/* blah */) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Right way to extends Action
Ho Xavier, so, how do you know which exception are thrown? You'll discover them at runtime :( -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:40 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, Why have we choose to raise Execption on our BaseAction ? Because, as was designed the execute method of the Action class, the exceptions raised in an action class are passed back to the ActionSevlet, who can handle all the exceptions that we have defined in the Struts config file. Xavier - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:41 PM Subject: RE: Right way to extends Action I would change the signature of the executeAction method not to throw Exception, but a custom ActionException. This way, you would be able to be aware of what exceptions are thrown in your action code. i.e. public abstract ActionForward executeAction( ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws MyActionException; -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction I want to check user session and to put some data in it, if that data doesn't exist. Is it good way: public class SomeAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { super.execute( mapping,form, request, response); OK, proceed ... public class BaseAction extends BaseAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) { if (userSession is wrong) { -try -- put data in session -catch -- return mapping.findForward(wrongSession);} else return null; //everything is OK What you think about this way and is there better way to extend Action? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
lol what's about fortran 2000 ;))) http://www.j3-fortran.org/ -- Alexandre Jaquet - Original Message - From: Jeff Kyser [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:38 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Never laugh! I just finished a project integrating a legacy app written in FORTRAN into the back end of a Struts-fronted webapp. Maybe those FORTRAN guys are smarter than we think - we've all beaten our heads against the wall learning 6 different languages and porting all our stuff, and they are still using libraries they wrote 20 years ago. LOL, -jeff On Monday, March 31, 2003, at 08:31 AM, Simon Kelly wrote: Write your own cheques if you know FORTRAN!! - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:22 PM Subject: RE: [OT] overwhelmed [was] Re: Does a degree matter? Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't compete with the 16-year old hacker who lives for his/her computer. Heck, my little (23-yo) brother has started being the one I ask about many things, not the other way around. ;) You've got to keep your strengths in mind in order to stay positive. What were you doing those years before you started working with computers? I studied Biochemistry and worked a diverse range of jobs. What are
request.isUserInRole() with mapping.findForward()
HI, I am using mapping.findForward(newPage) to navigate to a new page. In the new page, I use logic:present role=myRole.../logic:present. Though the user is a valid user with myRole defined for the user, the logic:present role=myRole.../logic:present returns falls. For a direct get operation the logic:present role=myRole.../logic:present works fine. Other observations: request.getUserPrincipal() returns null in the newPage. Please help. Thanks in advance and regards, Senthil Rajagopal, CSC India
RE: Upgrade from struts 1.0
All kidding aside the upgrade will be a little time consuming but should not be a painful one. You are not using modules or tiles so I don't believe there are any struts-config changes that will impact you. If you were using the external nested tags you will have to dispense with extra jar. If you were using any of the commons packages you will be upgrading those so check those issues separately. There are many deprecations but if you have an ide those are relatively minor, i.e. perform -- execute. If you have any automated test sequence that will help as well. All, in all the struts team did a good job of maintaining backward compatibility. Edgar -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 8:23 AM To: 'Struts Users Mailing List' Subject: RE: Upgrade from struts 1.0 And whatever you do, dont let your tie get caught in the RequestProcessor! -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 21:11 To: 'Struts Users Mailing List' Subject: RE: Upgrade from struts 1.0 Wear a hat - protect your hair. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I'm thinking to upgrade from Struts 1.0 (maybe integrating Tiles). Do anybody have a to-do-list or something similar to convert the old struts-config.xml into the new DTD to let me have some idea of the effort before to start? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Test
It happened last Thursday only. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: March 29, 2003 11:47 PM To: Struts Users Mailing List Subject: Re: [OT] Test On Sat, 2003-03-29 at 23:44, Dan Tran wrote: I keep seeing double messages sending to me when I make a post to this group I'm only seeing one. Please ignore this mail -Dan _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web sphere and productivity
Eclipse is a wonderful (and free!) IDE. The other criticisms of WSAD are fair; Eclipse is lighter and quicker. David From: Frédéric BAROZZI [EMAIL PROTECTED] Reply-To: Frédéric BAROZZI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Web sphere and productivity Date: Mon, 31 Mar 2003 16:08:44 +0200 I developpe with struts and Eclipse and its plugins. I want to know if it's very interesting to buy Web sphere studio. Does it makes developpement easier ? I need 2000 hours for my projet (first estimation with my tools) and i have to reduce it (700 hours less) so Thanks to answer Regards Fred B _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
Please!! No bad language on this site!! ;-) - Original Message - From: Alexandre Jaquet [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:42 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? lol what's about fortran 2000 ;))) http://www.j3-fortran.org/ -- Alexandre Jaquet - Original Message - From: Jeff Kyser [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:38 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Never laugh! I just finished a project integrating a legacy app written in FORTRAN into the back end of a Struts-fronted webapp. Maybe those FORTRAN guys are smarter than we think - we've all beaten our heads against the wall learning 6 different languages and porting all our stuff, and they are still using libraries they wrote 20 years ago. LOL, -jeff On Monday, March 31, 2003, at 08:31 AM, Simon Kelly wrote: Write your own cheques if you know FORTRAN!! - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:22 PM Subject: RE: [OT] overwhelmed [was] Re: Does a degree matter? Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be totally wrong there. All and all it's just very frustrating:) Ehhh I'm just venting... just ignore me. Wish I could just start over and be a farmer in some little rural ho-dunk town where my greatest concerns would be whether God was going to provide enough rain for the crops. Rick, I often feel the way you do. I didn't get into programming until I was 24. (28 now..). Although I don't have children of my own, I also greatly value my time with my nephew, family and friends, and won't give that up to cram more knowledge into my head. It's also important to me to spend time exercising and pursuing non-computer hobbies. I've accepted that I can't
RE: [ANN] Tablib
On Mon, 2003-03-31 at 09:31, apachep2 wrote: Cool, but sorry James, I hate frames. Fortunately for me, I have enough experience using them to know when *not* to use them. For me that's *all the time*!! But that's not going to stop me from using these reports. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: March 29, 2003 1:02 AM To: Struts Users List Subject: [ANN] Tablib I just commited a new project by Mohan Kishore [EMAIL PROTECTED]. He developed and contributed this (very cool IMHO) new build target. It allows us to generate 2 new types of taglib documentation. * TaglibDoc This is a JavaDoc-like set of html and css files for browsing the taglib documentation. Here's what this target does (I ran this about 15 minutes ago): http://struts.sourceforge.net/struts-atlanta/taglibdoc/ * TaglibReport This target will generate a grid-like view of the taglibs and their attributes so that you can see every tag in a typical package side by side. This helps when comparing which tags implement a certain attribute, by allowing you to view them side by side and not have to look up each tag by hand. (also about 15 minutes ago) http://struts.sourceforge.net/struts-atlanta/taglibreport/ Thank you Mohan, I, for one, will definitely take advantage of this. -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with output character encoding using resource bundles
On Mon, Mar 31, 2003 at 04:36:57PM +0200, Gemes Tibor wrote: Kornilios Kourtis ?rta: yes I set the encoding of the page (iso-8859-7) and I even tried with telnet and verified that the server sends question marks How does ApplicationResources.properties look like? It should like this: prompt.login=\ufeff\u038c\u03bd\u03bf\u03bc\u03b1 \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 or like. I don't know any greek ;-). Tib yes it does. Is it possible to be a tomcat problem? (I'm using tomcat 4.1) -- Kornilios Kourtis The worst is yet to come - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Design pattern
Hello everyone, I need to develop a functionnality that is repeated a certain number of times. During each step I'm performing critical operations that i nedd to log and trace. Is there any Design Pattern that can help me to implement this. Thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check
Ronan, Please post the exception stack trace, or perhaps better yet, email your securityfilter-config.xml and the stack trace to me and I'll help track the problem down. It is likely that something is amiss in the securityfilter-config.xml file, so a quick (but careful) check of any areas you may have changed when setting it up for your app might get you to a solution the fastest. -Max - Original Message - From: ronanoc [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:38 AM Subject: Re: j_security_check So I have got the demo to work, so I copied the .xml and java files accross to my own project and I get this javax.servlet.exception Error matching patterns Any idea what that is? I set it up the same as with the Catalina example. As in '/*' in web.xml and '/index.jsp' in security filter. Thanks in advance. Ronan. On Déardaoin, Már 20, 2003, at 00:20 Etc/GMT, Max Cooper wrote: You can also use SecurityFilter, a filter-based clone of container-managed security. It allows you to set a default page to take users to when they log in out of the blue. Container-managed security doesn't allow such login requests. http://securityfilter.sourceforge.net/ -Max - Original Message - From: Scott Barr [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:12 PM Subject: Re: j_security_check Hi Ronan You'll get this when you go directly to the page for the user to login. Instead, setup a resource that is protected by Container Managed Security eg. /userHome.do, which will then take you to your login page. Once login is successful, you will be fowarded on to /userHome.do Once you've got a logged in user via CMS, you can use Filters (if using a servlet 2.3 container) to make sure the users session is setup with all required objects. To log out, simply call session.invalidate() Regards Scott Barr www.exergonic.com.au On Thu, 2003-03-20 at 09:49, ronanoc wrote: I get this message when I am trying to login, and if I am already logged in too. Status 404 /mywebapp/j_security_check type Status report message /mywebapp/j_security_check description The requested resource (/mywebapp/j_security_check) is not available. How can I prevent this happening, and how can I logout, and log in again? Thanks. Ronan O'Ciosoig One Louder Recordings IRL Co. Dublin, Ireland. http://www.onelouder.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] overwhelmed [was] Re: Does a degree matter?
looks good : Fortran 2000 is an upwardly-compatible extension of the current Fortran standard, Fortran 95, adding, among other things, support for exception handling, object-oriented programming, and improved interoperability with the C language. Why not implement a framework like struts for fortran 2000 ? Ok I shut up... lool -- Alexandre Jaquet - Original Message - From: Simon Kelly [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:45 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Please!! No bad language on this site!! ;-) - Original Message - From: Alexandre Jaquet [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:42 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? lol what's about fortran 2000 ;))) http://www.j3-fortran.org/ -- Alexandre Jaquet - Original Message - From: Jeff Kyser [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:38 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Never laugh! I just finished a project integrating a legacy app written in FORTRAN into the back end of a Struts-fronted webapp. Maybe those FORTRAN guys are smarter than we think - we've all beaten our heads against the wall learning 6 different languages and porting all our stuff, and they are still using libraries they wrote 20 years ago. LOL, -jeff On Monday, March 31, 2003, at 08:31 AM, Simon Kelly wrote: Write your own cheques if you know FORTRAN!! - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:22 PM Subject: RE: [OT] overwhelmed [was] Re: Does a degree matter? Yep. Once over 30 in IT your far too old to start already as far as most employers are concerned. I gather that once over 35 you better have moved to some kind of managerial position already if you dont want it to be your last gig... (Disregard above if you know COBOL) ;-) -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 22:14 To: Struts Users Mailing List Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? You had start when the market was pretty good. I've some friend who have finish their degree last year -september-(one 29, one 40 and another one 28) but they still didn't catch any job. I finish my degree this year and I already have receive proposition from three compagnies. I think they are *to old* for most of the compagnies rigth now to employ them as junior developper. -- Alexandre Jaquet - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:57 PM Subject: Re: [OT] overwhelmed [was] Re: Does a degree matter? Yep, Becky is right ... you are not alone. I am two years older than you Rick, and I just got into software development 4 1/2 years ago. I came from a mechanical design background (with a BS in Civil Engineering). I get great support from my fellow developers here, but more often than not I feel very much behind the 8-ball. Susan Bradeen [EMAIL PROTECTED] On 03/31/2003 08:03:22 AM Becky Norum wrote: On Sun, 2003-03-30 at 23:44, Rick Reumann wrote: Does anyone else ever wake up going Man, I feel overwhelmed. Too much too learn, not enough time. I started this computer stuff rather late in life and find it very difficult trying to pick out what to try concentrate my learning in. Bottom line is I have to put food on the table for the family so I have to concentrate in skill sets that are valuable (and not just fun:). I started this computer stuff rather late in life (4 years ago and I'm 33 now) and constantly wonder What should I concentrate on learning next? When you spend too much time learning one area you fall behind in another. That's what I find so amazing about some of these job applications- is they put down tons of skill sets and, sure there might be a few that truly 'know' all of the skill sets listed, but rarely have I come across that many people that can honestly say they are proficient in all of them. Then it's also the Catch-22 of if you diverse too much you end up being ok at a lot of stuff but not really good at any one skill. It seems like in this market it's best to just concentrate on being very good at a few skill sets vs trying to learn everything, but I could be
RE: Design Problem Action Class
Thats the point.. Generally in your abs action class, u will have some preprocessing(Like login check) and may be some post processing..And thast why u want all u r actions to extend the base action class .Fair enough... But if u are using Those helper classes(Like dispatch Action.)It will ultimately forward to one of your application action.And those checks u have mentioned (Do Login checks etc) will be run there.So my point is u dont need to have base classes which will extend all those helper classes as well.This will avoid too many base classes in your Action hierarchies and make the class tree simple and plain. hope this clears my point :-)) -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:24 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class Well, that depends on your implementation. If need to perform any checkings (like checking whether the user has logged in) before any or almost any action you perform, then you'll need this customed layer (i.e. you'll call the ActionUtility.checkLoggedUser() method before calling executeAction in every BaseAction class). Even you can use them for customizing your logging. This is not too much work, and it could be of great use in the future. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:39 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class this sounds good idea...But still I dont see any reason to extend those helpr classes..U can use them out of the box :-)) -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:20 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class What I meant by delegation is using a different ActionUtility class. The base executeAction / performAction method implementation could be implemented as a Template method, where you call your checkForLogin and other methods as you wish. I am not calling other actions, but a neutral independent class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:07 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class But I dont get the point of extending those Helper Actions... Becasue those helper classes will never fulfill a request on thier own..So ultimately whtever is the application logic in your base action(Like login check etc..)will be executed as the call finally goes to some Other applicationAction... And Also I am not sure what u mean by delegation here..But beware...If u mean caling one action which does all of this from all other actions, it is stringly discouraged in struts..Use of Actions as APIs is strongly discouraged.. -Original Message- From: Dario Geier [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Design Problem Action Class I am having the same problem shortly. I am thinking of the following solution: First, you'll need to inherit from all the action type classes you'll need in your application. Action DispatchAction SwitchAction YY Y MyActionMyDispatchActionMySwitchAction From this custom layer, use delegation to call common to all actions functionality. Then, you write this functionality just once, and it is actiontype independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: RE: Design Problem Action Class I had faced simalr problem.. We have our own AbstractAction and other action hierarchy..And i still wabnted to use the action classes from Scaffold package(FindForward action etc..) But what I have done is I am using those action classes as they are,they do not belong to my applications action hierarchy..And that makes sense.. BEcause most of those action classes are utility classes .So they do not belong to your applications action hierarchy.And even if they do not extend from the AbstractAction of u r appliaction, u will not have any problem.BEcause they are necven called directly.They are used some where in the application flow as utility classes. hope this helps, Shirish -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:28 PM To: Struts Users List Subject: Design Problem Action Class Hi geeks, I have class hierarchy like this. CustomerAction Y AppAction Y Action Now that i have seen DisapatchAction, I wish to use it for my further actionclasses. BUT the problem is DispatchAction extends Action. One way i can think of is to change AppAction to start extending DisptachAction. BUT all of my classes don't need the functionality of DisptachAction. Just a few need this functionality. How can I go about it? regards
RE: Does a degree matter?
This guy always has a different but brighter/cleverer view than others. No wonder why he is leading the development of many open source projects. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: March 30, 2003 12:45 AM To: Struts Users Mailing List Subject: Re: Does a degree matter? On Sat, 29 Mar 2003, Arron Bates wrote: Date: Sat, 29 Mar 2003 20:36:21 -0600 From: Arron Bates [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Does a degree matter? Brandon, If you can do the deed (which it sounds like you can), I would hazard offering my opinion in thinking that it wouldn't be the best use of your time. By education I'm a graphic designer, not a computer scientist. First job was web design, programmer ever since. Results... I've only had two places not take me on because it's not a computer degree. Two interviews of hundreds. My personal experience (both for myself and for folks I have hired over the years) mirrors this -- indeed, my personal opinion is that a Comp Sci degree is worth less (to me as an employer) than a degree in some field that is more closely associated with the general needs of potential employers. Why? A couple of reasons: * Many folks who go for Comp Sci degrees obsess over learning the particular technologies being taught in their classes, at the expense of courses to improve your general thinking skills. Any specific technology you learn in your first year is going to be totally obsolete by the time you graduate from the program anyway, so why bother? The important skill to employers (at least from my viewpoint) is that you've learned how to quickly adapt your existing skills to new technologies as they become available. Also, the fundamentals of good architecture and design practices tend to change much more slowly than the favorite language de jour -- so if you decide to go for Comp Sci, focus on fundamentals like O-O, design patterns, and so on. * Many folks who go for Comp Sci degrees are so focused on the technical things, and don't accumulate any domain knowledge along the way that would make you *more* valuable to potential employers than another Comp Sci graduate with similar skills. If you're building e-commerce systems, do you know anything about the fundamental accounting principles involved in tracking purchases? If you're building systems to introduce novices to the world of online information, have you ever studied any human factors engineering? If you're building trading systems for a Wall Street broker, do you have the slightest idea how stock and commodity exchanges work? It may surprise some of you to find out that I don't have a Comp Sci degree at all -- instead, I got a BA in Business with a focus on Accounting. This was ***tremendously*** helpful in setting me apart from everyone else who was learning programming and systems analysis in those days -- I could immediately communicate with the end users responsible for the systems we were building, using their vocabulary, without having to be trained -- in addition to the fact that I was a fair-to-middlin' programmer :-). If you are looking at going to college today (either because it's that time in your life, or because the job market sucks right now), I would suggest thinking about a primary major other than Comp Sci (with a Comp Sci minor to keep your hand in on all the technical stuff). The name of the game is making yourself more valuable, relative to everyone else out there -- and, quite frankly, there are more interesting things in the world than just computers and web apps :-). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Design pattern
Either visitor or filter pattern works well for transactions -Original Message- From: ALAMI Ahmed [mailto:[EMAIL PROTECTED] Sent: Mon 3/31/2003 8:57 AM To: Struts Users Mailing List Cc: Subject: [OT] Design pattern Hello everyone, I need to develop a functionnality that is repeated a certain number of times. During each step I'm performing critical operations that i nedd to log and trace. Is there any Design Pattern that can help me to implement this. Thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: action form Q
I don't understand. I thought the Validation framework would check for Integer in an Integer field, then return the appropriate message. -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:41 PM To: Struts Users Mailing List Subject: Re: action form Q Don't do that. Make all your form fields strings, use the validator plug in, and convert from String to other type in your Action class. One good reason to do this is that if the user were to type ouch in an Integer field, it would be impossible to even tell them that ouch wasn't a valid value because there is nowhere to store the string ouch -- you'd have to say whatever you typed is invalid whereas with strings and validator you have all the flexibility in the world. I hope that helps! - Original Message - From: Riyaz Mansoor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:32 AM Subject: action form Q hi consider an integer field in an action form private int A = -1; public void setA(int a) {A = a;} public int getA() { return A; } what if the user typed text suche as ouch in the html form field. how will struts behave under such circumstances? would it throw some exception? would it not set any value? is there a way to check if such a thing has happened? similarly, if there are variations for Date, Time, Timestamp fields i'd be very interested to know them as well. thanx guys appreciate any help riyaz ps: any one remember what's the reg expression to catch multi-line comments (/* blah */) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does a degree matter?
It happens again, when I reply, I always receive the 2nd copy. This is the 2nd copy. -Original Message- From: apachep2 [mailto:[EMAIL PROTECTED] Sent: March 31, 2003 9:57 AM To: 'Struts Users Mailing List' Subject: RE: Does a degree matter? This guy always has a different but brighter/cleverer view than others. No wonder why he is leading the development of many open source projects. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: March 30, 2003 12:45 AM To: Struts Users Mailing List Subject: Re: Does a degree matter? On Sat, 29 Mar 2003, Arron Bates wrote: Date: Sat, 29 Mar 2003 20:36:21 -0600 From: Arron Bates [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Does a degree matter? Brandon, If you can do the deed (which it sounds like you can), I would hazard offering my opinion in thinking that it wouldn't be the best use of your time. By education I'm a graphic designer, not a computer scientist. First job was web design, programmer ever since. Results... I've only had two places not take me on because it's not a computer degree. Two interviews of hundreds. My personal experience (both for myself and for folks I have hired over the years) mirrors this -- indeed, my personal opinion is that a Comp Sci degree is worth less (to me as an employer) than a degree in some field that is more closely associated with the general needs of potential employers. Why? A couple of reasons: * Many folks who go for Comp Sci degrees obsess over learning the particular technologies being taught in their classes, at the expense of courses to improve your general thinking skills. Any specific technology you learn in your first year is going to be totally obsolete by the time you graduate from the program anyway, so why bother? The important skill to employers (at least from my viewpoint) is that you've learned how to quickly adapt your existing skills to new technologies as they become available. Also, the fundamentals of good architecture and design practices tend to change much more slowly than the favorite language de jour -- so if you decide to go for Comp Sci, focus on fundamentals like O-O, design patterns, and so on. * Many folks who go for Comp Sci degrees are so focused on the technical things, and don't accumulate any domain knowledge along the way that would make you *more* valuable to potential employers than another Comp Sci graduate with similar skills. If you're building e-commerce systems, do you know anything about the fundamental accounting principles involved in tracking purchases? If you're building systems to introduce novices to the world of online information, have you ever studied any human factors engineering? If you're building trading systems for a Wall Street broker, do you have the slightest idea how stock and commodity exchanges work? It may surprise some of you to find out that I don't have a Comp Sci degree at all -- instead, I got a BA in Business with a focus on Accounting. This was ***tremendously*** helpful in setting me apart from everyone else who was learning programming and systems analysis in those days -- I could immediately communicate with the end users responsible for the systems we were building, using their vocabulary, without having to be trained -- in addition to the fact that I was a fair-to-middlin' programmer :-). If you are looking at going to college today (either because it's that time in your life, or because the job market sucks right now), I would suggest thinking about a primary major other than Comp Sci (with a Comp Sci minor to keep your hand in on all the technical stuff). The name of the game is making yourself more valuable, relative to everyone else out there -- and, quite frankly, there are more interesting things in the world than just computers and web apps :-). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:notEmpty
But what isf the collection is directly inside of the page scope and not a value within a bean that is inside of the page scope? The name attribute is to get the value from the bean defined in the scope by the property attribute. What if the bean itself is the collection? Or, to put a spin on it, how would you check for the existence of a bean? -- Sloan - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:26 AM Subject: Re: logic:notEmpty Oops, sorry about that ... I was thinking of the wrong tag! Yes, I use notEmpty, and use both name and property attributes. Susan Bradeen On 03/31/2003 09:19:18 AM Susan Bradeen wrote: I have used this tag, but I usually reference the name (formbean) and property together. At the very least, you *must* include the value attribute to make the logic comparison with your property value. Even if the tag picked up your property, what it is supposed to be comparing it to see if it is notEqual? Hope this helps, Susan Bradeen On 03/31/2003 09:01:50 AM Sloan Seaman wrote: I want to use the logic:notEmpty tag to test if a collection I have is empty or not. The Collection is in the pageContext under the variable name barcodeList. The Docs for notEmpty say that name, property, and scope are not required but if I use the property attribute it complains that I need the name. If I use name, it compains that I need property. I would think I should just be able to do: logic:notEmpty property=barcodeList stuff /logic:notEmpty but this doesn't seem to work. What is the correct way? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com__ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action form Q
You're right -- it checks to see if a field can pass whatever validation criteria you specify (integer, date, email, etc.), but Java simply cannot store a string in an integer, so you will get an exception of some sort if you use an Integer field on your ActionForm and someone enters a non-Integer. In the validator docs somewhere (and certainly in Programming Jakarta Struts) it says to always use string fields in your actionforms, because it's more flexible. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:58 AM Subject: RE: action form Q I don't understand. I thought the Validation framework would check for Integer in an Integer field, then return the appropriate message. -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:41 PM To: Struts Users Mailing List Subject: Re: action form Q Don't do that. Make all your form fields strings, use the validator plug in, and convert from String to other type in your Action class. One good reason to do this is that if the user were to type ouch in an Integer field, it would be impossible to even tell them that ouch wasn't a valid value because there is nowhere to store the string ouch -- you'd have to say whatever you typed is invalid whereas with strings and validator you have all the flexibility in the world. I hope that helps! - Original Message - From: Riyaz Mansoor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:32 AM Subject: action form Q hi consider an integer field in an action form private int A = -1; public void setA(int a) {A = a;} public int getA() { return A; } what if the user typed text suche as ouch in the html form field. how will struts behave under such circumstances? would it throw some exception? would it not set any value? is there a way to check if such a thing has happened? similarly, if there are variations for Date, Time, Timestamp fields i'd be very interested to know them as well. thanx guys appreciate any help riyaz ps: any one remember what's the reg expression to catch multi-line comments (/* blah */) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Right way to extends Action
Hum... To my modest opinion, this is how Struts is designed. The execute method of the Action class raise Exception. For exemple when I implement an action that can raise an IdentificationException, I have to register an ExceptionHandler for this exception in the corresponding action Here is 2 extracts from the struts-config_1_1.dtd concerning this point : !ELEMENT action (icon?, display-name?, description?, set-property*, exception*, forward*) And the comment about execption : !-- The exception element registers an ExceptionHandler for an exception type. The following attributes are defined: bundle Servlet context attribute for the message resources bundle associated with this handler. The default attribute is the value specified by the string constant declared at Globals.MESSAGES_KEY. [org.apache.struts.Globals.MESSAGES_KEY] classNameThe configuration bean for this ExceptionHandler object. If specified, className must be a subclass of the default configuration bean [org.apache.struts.config.ExceptionConfig] handler Fully qualified Java class name for this exception handler. [org.apache.struts.action.ExceptionHandler] key The key to use with this handler's message resource bundle that will retrieve the error message template for this exception. path The module-relative URI to the resource that will complete the request/response if this exception occurs. scopeThe context (request or session) that is used to access the ActionError object [org.apache.struts.action.ActionError] for this exception. type Fully qualified Java class name of the exception type to register with this handler. -- regards - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:41 PM Subject: RE: Right way to extends Action Ho Xavier, so, how do you know which exception are thrown? You'll discover them at runtime :( -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:40 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, Why have we choose to raise Execption on our BaseAction ? Because, as was designed the execute method of the Action class, the exceptions raised in an action class are passed back to the ActionSevlet, who can handle all the exceptions that we have defined in the Struts config file. Xavier - Original Message - From: Dario Geier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:41 PM Subject: RE: Right way to extends Action I would change the signature of the executeAction method not to throw Exception, but a custom ActionException. This way, you would be able to be aware of what exceptions are thrown in your action code. i.e. public abstract ActionForward executeAction( ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws MyActionException; -Original Message- From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: Right way to extends Action Hi, In our application we use a similar concept : - we have a class like this : public abstract class BaseAction extends Action In this class : - we added some usefull field like a logger an a pointer to a singleton that retains application's data protected Log log = LogFactory.getLog(this.getClass()); protected static final Infos infos = Infos.getInstance(); - We change the modifier of the execute Method so as to be sure nobody use it directly: public final ActionForward execute(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception { - In this method we check the user session and log in information - At the end of this method we call return executeAction(_mapping, _form, _req, _res); - This method executeAction is defined as this : public abstract ActionForward executeAction(ActionMapping _mapping, ActionForm _form, HttpServletRequest _req, HttpServletResponse _res) throws Exception; - So when we create a new action, we extend BaseAction and implement the abstract method executeAction This way, we have automatic user login check, and a logger at disposition. regards, Xavier - Original Message - From: niksa_os [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:45 PM Subject: Right way to extends Action I want all my Actions to extend BaseAction. In BaseAction
html targets in forward tags
When specifying an action forward in the struts-config.xml file is it possible to also specify a anchor target within the page path being forwarded to...? I've specified parameters with like: forward name=addA path=/addAorBPage.jsp?param=A / Which works, but I can't get the following to work: actionpath=/action type=org.me.myAction name=addNewAorB scope=request forward name=addA path=/addAorBPage.jsp#addA / forward name=addB path=/addAorBPage.jsp#addB / /action Is it possible to specify targets like this in forward tags...? If not, is there a way to get it to work by using some other mechanism...? Cheers, -- Bob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Tiles with logic:iterate and JavaScript to sort table
Sorry, but I don't know JavaScript very well and I don't understand your remark. My answer was : let the script tags where they are otherwise it won't work. In my example the call to the function initTable(table0); is done after the definition of the table table id=table0. So the navigator know its name, isn't it ? Yes. See previous answer. it is probably the JavaScript which is not called. but I do not know how to make this test. I added the line alert(function found and starting..);,but nothing what is the aim of this instruction ? place the code line like : function initFunction(arg) { alert(function found and starting); . rest of code } the aim of alert() is to display a little popup with text inside. If it displays, the javascript is being executed. if nothing is displaying, the path to the script library isn't good. Try to put an absolute path in your page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does a degree matter?
Hi all, Just my two cents. Craig's viewpoint is good for american-like degrees. But there are many different education systems all over the world. For example, in my country (Brazil), Comp Sci bachelor's degree from public universities don't teach nothing more than old theory. We study Automata theory, Graph theory, Calculus, Algebra, Physics, Statistics and Algorithms as course basis and we have specialized disciplines where we study more specific theory like: DataBases theory, Operating Systems theory, Programming Language theory, Compilers theory, Data transmission, Computer Networks, Computer Networks Management, Artificial Intelligence, Functional programming, Logic programming, Object-Oriented programming, Object-Oriented analysis, Project management, etc. And at my university (University of Brasilia) we have to take some optional (not so much) courses to get our degree. They are: Management, Accounting, Economics, Sports, Political science, Philosophy, English, Operational research, Law science etc. Our professors don't teach programming languages like Java, C, Pascal, Lisp, Prolog, FORTRAN. They delegate this task to students. I think it is a hard course but it's worth it. Best regards, Daniel. --- apachep2 [EMAIL PROTECTED] wrote: Sorry, I am not intended to offend any one subscribed to this list. I just can't be more agreed with Craig's view. BTW, I was actually forwarding this email to my boss but accidentally click the Reply. -Original Message- From: apachep2 [mailto:[EMAIL PROTECTED] Sent: March 31, 2003 9:57 AM To: 'Struts Users Mailing List' Subject: RE: Does a degree matter? This guy always has a different but brighter/cleverer view than others. No wonder why he is leading the development of many open source projects. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: March 30, 2003 12:45 AM To: Struts Users Mailing List Subject: Re: Does a degree matter? On Sat, 29 Mar 2003, Arron Bates wrote: Date: Sat, 29 Mar 2003 20:36:21 -0600 From: Arron Bates [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Does a degree matter? Brandon, If you can do the deed (which it sounds like you can), I would hazard offering my opinion in thinking that it wouldn't be the best use of your time. By education I'm a graphic designer, not a computer scientist. First job was web design, programmer ever since. Results... I've only had two places not take me on because it's not a computer degree. Two interviews of hundreds. My personal experience (both for myself and for folks I have hired over the years) mirrors this -- indeed, my personal opinion is that a Comp Sci degree is worth less (to me as an employer) than a degree in some field that is more closely associated with the general needs of potential employers. Why? A couple of reasons: * Many folks who go for Comp Sci degrees obsess over learning the particular technologies being taught in their classes, at the expense of courses to improve your general thinking skills. Any specific technology you learn in your first year is going to be totally obsolete by the time you graduate from the program anyway, so why bother? The important skill to employers (at least from my viewpoint) is that you've learned how to quickly adapt your existing skills to new technologies as they become available. Also, the fundamentals of good architecture and design practices tend to change much more slowly than the favorite language de jour -- so if you decide to go for Comp Sci, focus on fundamentals like O-O, design patterns, and so on. * Many folks who go for Comp Sci degrees are so focused on the technical things, and don't accumulate any domain knowledge along the way that would make you *more* valuable to potential employers than another Comp Sci graduate with similar skills. If you're building e-commerce systems, do you know anything about the fundamental accounting principles involved in tracking purchases? If you're building systems to introduce novices to the world of online information, have you ever studied any human factors engineering? If you're building trading systems for a Wall Street broker, do you have the slightest idea how stock and commodity exchanges work? It may surprise some of you to find out that I don't have a Comp Sci degree at all -- instead, I got a BA in Business with a focus on Accounting. This was ***tremendously*** helpful in setting me apart from everyone else who was learning programming and systems analysis in those days -- I could immediately communicate with the end users responsible for the systems we were building, using their vocabulary, without having to be trained -- in addition to the fact that I was a fair-to-middlin' programmer
Re: logic:notEmpty
I think there may be a few issues here ... First of all, notEmpty, I believe, checks for whether or not a String value is set for a specific bean property (checks for null or empty String). So I don't think you can use if for a collection as a whole. The notPresent tag may be better suited to this, although that may just check to see if the collection is in existence, not necessarily populated with values. In other words, the collection can be empty, but it is still present. I think. Have you tried using your collection as the name for the bean, and using some field in the collection as the property? This brings it more down to the level of what notEmpty is used for. All my properties are set from my formbean within the action that loads the jsp. So in my case, I have a collection object in my form, with its getters and setters, and the action does the ... myform.setMyCollection(someCollectionFromSomewhere); ... then, if the collection is null, the notPresent tag in the jsp will do whatever you need it to do. You can use the bean:define tags to set your page scoped collection to a variable which will be useable within your jsp, but I am not sure if that is what you are looking for? Susan Bradeen On 03/31/2003 10:02:44 AM Sloan Seaman wrote: But what isf the collection is directly inside of the page scope and not a value within a bean that is inside of the page scope? The name attribute is to get the value from the bean defined in the scope by the property attribute. What if the bean itself is the collection? Or, to put a spin on it, how would you check for the existence of a bean? -- Sloan - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:26 AM Subject: Re: logic:notEmpty Oops, sorry about that ... I was thinking of the wrong tag! Yes, I use notEmpty, and use both name and property attributes. Susan Bradeen On 03/31/2003 09:19:18 AM Susan Bradeen wrote: I have used this tag, but I usually reference the name (formbean) and property together. At the very least, you *must* include the value attribute to make the logic comparison with your property value. Even if the tag picked up your property, what it is supposed to be comparing it to see if it is notEqual? Hope this helps, Susan Bradeen On 03/31/2003 09:01:50 AM Sloan Seaman wrote: I want to use the logic:notEmpty tag to test if a collection I have is empty or not. The Collection is in the pageContext under the variable name barcodeList. The Docs for notEmpty say that name, property, and scope are not required but if I use the property attribute it complains that I need the name. If I use name, it compains that I need property. I would think I should just be able to do: logic:notEmpty property=barcodeList stuff /logic:notEmpty but this doesn't seem to work. What is the correct way? Thanks! -- Sloan This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com__ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html targets in forward tags
Anchor positionning is a browser tip. I think it will work if you use redirect=true, as browser URI wil become /addAorBPage.jsp#addA Nico. When specifying an action forward in the struts-config.xml file is it possible to also specify a anchor target within the page path being forwarded to...? I've specified parameters with like: forward name=addA path=/addAorBPage.jsp?param=A / Which works, but I can't get the following to work: actionpath=/action type=org.me.myAction name=addNewAorB scope=request forward name=addA path=/addAorBPage.jsp#addA / forward name=addB path=/addAorBPage.jsp#addB / /action Is it possible to specify targets like this in forward tags...? If not, is there a way to get it to work by using some other mechanism...? Cheers, -- Bob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]