RE: Do Struts increase developer productivity?
If you have a good lead person on your team, that makes all the difference. Someone has to know what they are doing, and then everyone speeds up. That is especially true if you are using the pluses of the Xtremists. There are lots of good people out there to take these positions. I understand James Mitchell is looking for work and I would hire him at the drop of a hat, if I had a position, which I don't. My sense is that there are a lot of good people that can take Struts out the door, today, anywhere. Struts is not the problem. Struts is the solution. There are other simpler frameworks, like Maverick. You can even build your own framework. Struts is a pretty good framework (I take "pretty good" to be very good) that you can also tweak. I personally wish that the Struts people would just take the bull by the horns and make a big shift in the framework, using all the things that have been learned since its inception. I probably am not as smart as they are in this respect. There is a pretty huge change, however, in 1.1 which is really welcomed. At 01:54 AM 3/29/03 -0600, you wrote: I think you can do the "kid in a candy store" thing with Struts all too easily. As with any project, make sure you set your goals in a design doc, just because struts can do it, doesn't mean you should do it. I had a project hit a wall because my boss kept asking if I could do this and that, "yeah, struts can allow me to do that..." "Okay, why don't we add that then..." -Jacob | -Original Message- | From: Navjot Singh [mailto:[EMAIL PROTECTED] | Sent: Friday, March 28, 2003 9:51 PM | To: Struts Users List | Subject: Re: Do Struts increase developer productivity? | | here are my 2 cents to this discussion ;-) | | Initially, the development with struts can be slow. I won't say Struts is | complex, it is easy but to create a simple form submission you got to have | quite a number of files in set up. But slowly the things get sunk into | your | mind and then it's real fast process. | However, the speed can be increased with tools like Easystruts and IDEs | giving extensive support to Struts. | | - navjot singh | | - Original Message - | From: "Igor Shabalov" <[EMAIL PROTECTED]> | To: "Struts Users Mailing List" <[EMAIL PROTECTED]> | Sent: Saturday, March 29, 2003 4:26 AM | Subject: Re: Do Struts increase developer productivity? | | | > | > I 100% agree, Struts is good staff for use by the end of the day, but it | > can slow development process. So, can we do something to reduce that | > backslash? My answer is yes, by introducing tools that helps | developers | > to fight with Struts complexity. Can Struts be better from functional | > prospective? Of course yes, however, it can increase complexity even | more, | > so we see more demand for good tools. | > | > Once again, I do not to offend anybody. | > | > Thank you for answer, | > Igor. | > | > On Fri, 28 Mar 2003 17:30:20 -0500, Mark Zeltser | > <[EMAIL PROTECTED]> wrote: | > | > > Plus all QA work each of us does by testing struts in different | > > environments. | > > | > > Igor, | > > | > > In our experience, struts will decrease initial productivity due to | the | > > learning | > > curve. However, this will be time well spent, assuming you will be | > > getting | > > maintainable application, plus struts is widely used, so there is a | good | > > chance you | > > will be able to find talent if needed. | > > | > > Re. individual components. Start with well defined directory structure | > > for your | > > source, images, etc. and ant based build script. Keep adding | > > functionality as you | > > feel that there is a need for it. (E.g.: need to authenticate users. | > > Before | > > implementing your own authentication search the archives, you will | find | > > that a lot | > > of problems were already discussed and solved) | > > | > > Mark. | > > | > > David Graham wrote: | > > | > >> I don't have real numbers but thousands of hours of work from many | > >> highly | > >> paid software engineers has gone into Struts. Say an average | developer | > >> gets | > >> $50/hour * 2000 hours (probably low) = $100,000. | > >> | > >> Does your company or your clients want to pay that much to develop | their | > >> own | > >> framework? | > >> | > >> David | > >> | > >> >From: Igor Shabalov <[EMAIL PROTECTED]> | > >> >Reply-To: "Struts Users Mailing List" | > >> >To: [EMAIL PROTECTED] | > >> >Subject: Do Struts increase developer productivity? | > >> >Date: Fri, 28 Mar 2003 14:00:00 -0800 | > >> > | > >> > | > >> > Hello, all! | > >> > Do anybody have any data how using Struts can increase (or | > >> decrease) | > >> >developer productivity. I mean, for example, â??using Strutsâ?? can | > >> save up | > >> >to xx% of development cost. Or save up to xx% of development effort | (in | > >> >terms of number of lines of code) etc. | > >> > And, if Struts really help, what portion of struts technolody | > >> helps more | > >
Re: [Tiles-Definitions] can't find bean in request.
Joel Wickard wrote: Cedric Dumoulin wrote: Hi, The definition from the tiles file are stored in the factory. You should use the following to insert a definition: the above method of trying to insert the predefined defs results in the following exception when I try to view the page. So you have an error in your config or in your definition declaration. Please, check the examples in the tiles-documentation.war. You can also check one of the following articles: * http://blogs.browsermedia.com/patrick/index.do?date=20030210#120914 * http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index1.html * http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html * http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html * and many other ... Cedric java.lang.NullPointerException at org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527) at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:486) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:444) at org.apache.jsp.employeeLanding_jsp._jspx_meth_tiles_insert_0(employeeLanding_jsp.java:75) at org.apache.jsp.employeeLanding_jsp._jspService(employeeLanding_jsp.java:54) Check the tag syntax :-) Cedric Joel Wickard wrote: Here's the first few lines of the root cause of the exception I'm getting: root cause javax.servlet.ServletException: Error - Tag Insert : No value defined for bean 'admin' with property 'null' in scope 'request'. at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:494) at org.apache.jsp.employeeLanding_jsp._jspService(employeeLanding_jsp.java:59) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Here's my web.xml entries: /WEB-INF/struts-tiles /WEB-INF/struts-tiles.tld Here's my struts-config entries: Here's my tiles-defs.xml entries: Here's the page I'm trying to use the template in: <[EMAIL PROTECTED] contentType="text/html"%> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> ( what I'm trying to do is just have a page that uses all the defaults specified in tiles-defs, that's why I have no put tags ) Here's the template itself: <[EMAIL PROTECTED] contentType="text/html"%> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
function launchTimeClock(){
window.open( "./timeclock/timeClock.jsp", "puchClock", "resizeable=no, height=170, width=230");
}
Here's the pages that should be inserted: logoDefault.jsp: I am a logo menuBar.jsp: My Menu Bar If I don't use definition, if I just use a template and then manually use tiles:put, it works fine. Any help would be great, I can supply any other requested information. - 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: REPEAT: Tiles "put" attribute "beanScope" not found in DTD -is this right?
Hi Richard, The scope attribute in an insert is used to specify the jsp scope from which a definition should be retrieved. Definition can be stored in a jsp context by the user or with the help of the tag. Definitions declared in the tiles config file are NOT stored in a jsp scope, but in the tiles definition factory. There is no way to store them in a jsp scope from the config file. So the scope attribute is not available in the config file. Cedric Richard Mixon wrote: Sorry, to repost, but this seems like a bug. No? Hi. We are trying to use the "beanScope" attribute. The Tiles documentation that comes with Struts 1.1rc1 says that both the definition and put tags support "beanScope". When I use it we get the following error when Tomcat 4.1.18 starts up: ... 19:26:14,593 ERROR Digester:1434 - Parse Error at line 29 column -1: Attribute " scope" is not declared for element "definition". org.xml.sax.SAXParseException: Attribute "scope" is not declared for element "de finition". at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411) ... I' also looked at both the tiles-config.dtd and tile-config_1.1.dtd - neither indictates that beanScope is supported. However the struts-tiles.tld file does reference the "beanScope". Is it intentional that defining Tiles in the XML config file is down-level from defining Tiles in the actual JSP page? Thanks - Richard - 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]
Bitmechanic JDBC Connection Pool or Struts Connection Pool
I search the [EMAIL PROTECTED] but I didn't find anything on how to setup Bitmechanic JDBC Connection Pool. http://www.bitmechanic.com/projects/jdbcpool/ Does someone can explain me how to setup Bitmechanic in struts-config.xml, web.xml and how to get connection in Action? I use MySQL: jdbc:mysql://localhost/MyDB user name:aa password: bb Or, does Struts have connection pool? If yes, how to setup with my MyDB. Thanks!
Re: [OT] Contract Work: Going Rate?
On a side note related to contracting/consulting, do ya'll generally attempt to get the "numbers" on the table when you deal with 3rd party recruiting companies? Are you usually aware of what the recruiting company is charging the firm you are working for? Do you feel (like I do) that you have a right to know? I've been on 5 contracts over the past 3+ years: Pay Rate / Bill Rate / Duration $55 hr / $77 hr / 13 months $155 hr / $220 hr / 6 weeks $83 hr / $100 hr / 13 months $55 hr / $90 hr / 9 months $155 hr / $165 hr / 1 week Only once did a recruiting company initially refuse to divulge to me what the client was going to be charged. That project ended up embroiled in some nasty infighting with the project manager fighting with the HR rep who was fighting with the recruiting firm that was doing everything it could to hide the ridiculous difference between pay rate/bill rate. Nothing exposes the darker side of human nature better than a bare knuckled brawl over large chunks of cash. ;) After that experience one thing I do (if at all possible) is get the recruiter face to face, chat them up some, ask very pointedly what they are planning on charging the client for me, then sit back and watch the show. Very rarely do they just come right out and say a number, but if they break into a cold sweat and act like they are hiding the secret location of Sadaam's private bunker, be forewarned, composing elegant Java code is most likely one of the easier challenges you have in front of you... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Tablib
Excellent piece of work - congratulations to all concerned. db -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: 29 March 2003 06:02 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]
Error regarding ValidatorForm
I have a weird problem. I am using the validator plug-in of struts for doing validations in my form. When I start my Tomcat, an error comes. This error does not come if I delete my work folder in Tomcat and restart Tomacat. From then on it works fine. But as soon as I restart my Tomcat, if the work folder is not emptied this problem comes and my application does not load. Please help. This is the error: Mar 29, 2003 5:19:11 PM org.apache.struts.util.RequestUtils createActionForm SEVERE: Error creating form bean of class com.xerox.xdx.configTool.beans.ConfigMainForm java.lang.NoClassDefFoundError: org.apache.struts.validator.ValidatorForm at com.xerox.xdx.configTool.beans.ConfigMainForm.initializePageArrayList (ConfigMainForm.java:71) at com.xerox.xdx.configTool.beans.ConfigMainForm.(ConfigMainForm.j ava:64) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils. java:206) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav a:749) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:589) at org.apache.jsp.config_0005fmain$jsp._jspService(config_0005fmain$jsp. java:124) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 81) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1125) at java.lang.Thread.run(Thread.java:536) javax.servlet.jsp.JspException: Exception creating bean of class com.xerox.xdx.c onfigTool.beans.ConfigMainForm: {1} at org.apache.struts.taglib.h
Re: [Logic Tag] Can This work
On Sat, 2003-03-29 at 02:46, Puneet Agarwal wrote: > Unfortunately, this did not work, mostly because this will substitute the > value at a later stage than required. I can't really help, if you don't specify your requirements. > > We need some other solution to this > > Any more clues !!! > > James Mitchell Suggested: > > Did you try this? > > > > > > > Original Problem > > Can this work > > > > I want to give the "type" at run time to make a re-usable TILE for our > application. > > Complete code is shown below. > > > <%@ taglib uri="/tags/struts-bean" prefix="bean" %> > <%@ taglib uri="/tags/struts-html" prefix="html" %> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %> > <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> > > > > > > > type="com.tiger.inf.forms.FormTableRO"> > > > > > > > > > > > - > 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: Bitmechanic JDBC Connection Pool or Struts Connection Pool
http://jakarta.apache.org/struts/faqs/database.html -D - Original Message - From: "niksa_os" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 2:28 AM Subject: Bitmechanic JDBC Connection Pool or Struts Connection Pool I search the [EMAIL PROTECTED] but I didn't find anything on how to setup Bitmechanic JDBC Connection Pool. http://www.bitmechanic.com/projects/jdbcpool/ Does someone can explain me how to setup Bitmechanic in struts-config.xml, web.xml and how to get connection in Action? I use MySQL: jdbc:mysql://localhost/MyDB user name:aa password: bb Or, does Struts have connection pool? If yes, how to setup with my MyDB. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: REPEAT: Tiles "put" attribute "beanScope" not found in DTD - is this right?
Cedric, Thanks for the explanation -makes all the sense in the world. - Richard -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 1:24 AM To: Struts Users Mailing List Subject: Re: REPEAT: Tiles "put" attribute "beanScope" not found in DTD - is this right? Hi Richard, The scope attribute in an insert is used to specify the jsp scope from which a definition should be retrieved. Definition can be stored in a jsp context by the user or with the help of the tag. Definitions declared in the tiles config file are NOT stored in a jsp scope, but in the tiles definition factory. There is no way to store them in a jsp scope from the config file. So the scope attribute is not available in the config file. Cedric Richard Mixon wrote: >Sorry, to repost, but this seems like a bug. No? > > >Hi. We are trying to use the "beanScope" attribute. The Tiles >documentation that comes with Struts 1.1rc1 says that both the >definition and put tags support "beanScope". When I use it we get the >following error when Tomcat 4.1.18 starts up: > >... >19:26:14,593 ERROR Digester:1434 - Parse Error at line 29 column -1: >Attribute " >scope" is not declared for element "definition". >org.xml.sax.SAXParseException: Attribute "scope" is not declared for >element "de >finition". >at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) >at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411) >... > >I' also looked at both the tiles-config.dtd and tile-config_1.1.dtd - >neither indictates that beanScope is supported. However the >struts-tiles.tld file does reference the "beanScope". > >Is it intentional that defining Tiles in the XML config file is >down-level from defining Tiles in the actual JSP page? > >Thanks - Richard > > > > >- >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: Do Struts increase developer productivity?
James Michell is out of work? Me too. How many good ppl are in the same situation these days? Sorry for breaking out of the rythm. -D - Original Message - From: "Micael" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 12:05 AM Subject: RE: Do Struts increase developer productivity? If you have a good lead person on your team, that makes all the difference. Someone has to know what they are doing, and then everyone speeds up. That is especially true if you are using the pluses of the Xtremists. There are lots of good people out there to take these positions. I understand James Mitchell is looking for work and I would hire him at the drop of a hat, if I had a position, which I don't. My sense is that there are a lot of good people that can take Struts out the door, today, anywhere. Struts is not the problem. Struts is the solution. There are other simpler frameworks, like Maverick. You can even build your own framework. Struts is a pretty good framework (I take "pretty good" to be very good) that you can also tweak. I personally wish that the Struts people would just take the bull by the horns and make a big shift in the framework, using all the things that have been learned since its inception. I probably am not as smart as they are in this respect. There is a pretty huge change, however, in 1.1 which is really welcomed. At 01:54 AM 3/29/03 -0600, you wrote: >I think you can do the "kid in a candy store" thing with Struts all too >easily. As with any project, make sure you set your goals in a design doc, >just because struts can do it, doesn't mean you should do it. > >I had a project hit a wall because my boss kept asking if I could do this >and that, "yeah, struts can allow me to do that..." "Okay, why don't we add >that then..." > >-Jacob > >| -Original Message- >| From: Navjot Singh [mailto:[EMAIL PROTECTED] >| Sent: Friday, March 28, 2003 9:51 PM >| To: Struts Users List >| Subject: Re: Do Struts increase developer productivity? >| >| here are my 2 cents to this discussion ;-) >| >| Initially, the development with struts can be slow. I won't say Struts is >| complex, it is easy but to create a simple form submission you got to have >| quite a number of files in set up. But slowly the things get sunk into >| your >| mind and then it's real fast process. >| However, the speed can be increased with tools like Easystruts and IDEs >| giving extensive support to Struts. >| >| - navjot singh >| >| - Original Message - >| From: "Igor Shabalov" <[EMAIL PROTECTED]> >| To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >| Sent: Saturday, March 29, 2003 4:26 AM >| Subject: Re: Do Struts increase developer productivity? >| >| >| > >| > I 100% agree, Struts is good staff for use by the end of the day, but it >| > can slow development process. So, can we do something to reduce that >| > "backslash"? My answer is yes, by introducing tools that helps >| developers >| > to "fight" with Struts complexity. Can Struts be better from functional >| > prospective? Of course yes, however, it can increase complexity even >| more, >| > so we see more demand for good tools. >| > >| > Once again, I do not to offend anybody. >| > >| > Thank you for answer, >| > Igor. >| > >| > On Fri, 28 Mar 2003 17:30:20 -0500, Mark Zeltser >| > <[EMAIL PROTECTED]> wrote: >| > >| > > Plus all QA work each of us does by testing struts in different >| > > environments. >| > > >| > > Igor, >| > > >| > > In our experience, struts will decrease initial productivity due to >| the >| > > learning >| > > curve. However, this will be time well spent, assuming you will be >| > > getting >| > > maintainable application, plus struts is widely used, so there is a >| good >| > > chance you >| > > will be able to find talent if needed. >| > > >| > > Re. individual components. Start with well defined directory structure >| > > for your >| > > source, images, etc. and ant based build script. Keep adding >| > > functionality as you >| > > feel that there is a need for it. (E.g.: need to authenticate users. >| > > Before >| > > implementing your own authentication search the archives, you will >| find >| > > that a lot >| > > of problems were already discussed and solved) >| > > >| > > Mark. >| > > >| > > David Graham wrote: >| > > >| > >> I don't have real numbers but thousands of hours of work from many >| > >> highly >| > >> paid software engineers has gone into Struts. Say an average >| developer >| > >> gets >| > >> $50/hour * 2000 hours (probably low) = $100,000. >| > >> >| > >> Does your company or your clients want to pay that much to develop >| their >| > >> own >| > >> framework? >| > >> >| > >> David >| > >> >| > >> >From: Igor Shabalov <[EMAIL PROTECTED]> >| > >> >Reply-To: "Struts Users Mailing List" | [EMAIL PROTECTED]> >| > >> >To: [EMAIL PROTECTED] >| > >> >Subject: Do Struts increase developer productivity? >| > >> >Date: Fri, 28 Mar 2003 14:00:00
Re: [Tiles-Definitions] can't find bean in request.
Cedric Dumoulin wrote: So you have an error in your config or in your definition declaration. Please, check the examples in the tiles-documentation.war. You can also check one of the following articles: * http://blogs.browsermedia.com/patrick/index.do?date=20030210#120914 * http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index1.html * http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html * http://www-106.ibm.com/developerworks/java/library/j-strutstiles.html * and many other ... Cedric Well I didn't end up altering the definitions file, I found out from somone else that if I used then it works perfectly, thanks for all your help though - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding problem
Hello all, I am using struts in our project. application server is JBOSS with Tomcat as servlet container. If i set contenet type ans UTF-8 (<%@ page contentType="text/html;charset=UTF-8"%>) in jsp i am getting the following error. org.apache.jasper.JasperException: null(-1,-1) Cannot read file: ze file if i use other charset like EUC-JP or Shift-jis its working fine. Can i get some solution how to solve this problem. waiting for the reply Thanx with regds santhosh hegde A
struts - RequestProcessor
I was found this for RequestProcessor protected boolean processPreprocess( HttpServletRequest request, HttpServletResponse response){ boolean continueProcessing = true; HttpSession userSession = request.getSession(false); // Check to see if there's a session for the user that wasn't just created if ( userSession == null || userSession.isNew() ){ continueProcessing = false; response.sendRedirect( "/login.jsp" ); } // Tell the RequestProcessing to continue processing the request or not return continueProcessing; } And explanation is: "The manner in which Example 9-3 specifies the path in the sendRedirect() method is not the best approach. This redirect would only work if the example was running as the default web application and there was a login.jsp page in the root directory. It was done this way to keep the example simple. A better approach would be to retrieve the ActionForward for the login page and use the path from it in the sendRedirect() method. That way, if the actual page changed for the forward, this method doesn't have to be modified." How can I get ActionForward to make something like this: -actionMapping.getInputForward() -actionMapping.findForward("homeAction") ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form Field Unset Condition
I asked a similar question last week and am still having trouble with this simple idea. I have a form: With validation: This Action code: DynaValidatorForm dynaForm = (DynaValidatorForm) form; if ( CONDITION ) { // Do Work If "id" is set } Two questions: 1. Am I correct is using String as the form-property type? 2. What should be used as CONDITION so that CONDITION is true if the parameter "id" has been set? (I assume that my validation should make sure "id" is an integer if it is set.) Thank you very much for your assistance, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
initialize application-scope variables
Hello, I am writing a PlugIn (subclass of org.apache.struts.action.PlugIn ) to initialize a bunch of application-scope variables. Several of my JSP snippets also initialize application-scope variables (using either , , , and/or <% application.setAttribute(...); %>) and I would like to reuse these. Is it possible to call JSPs from the init() method of a PlugIn? One could of course just translate the JSP snippets to java for the PlugIn, but the JSP is already written and some of the initializations are more easily written in JSP than java anyway. Any tips appreciated. Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: initialize application-scope variables
I dont think there is a way. You can refactor it by moving the JSP init code to a java bean and have both JSP and PlugIn to call the java bean is it okie? -D - Original Message - From: "Brian Buckley" <[EMAIL PROTECTED]> To: "Struts Users" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 10:12 AM Subject: initialize application-scope variables > Hello, > > I am writing a PlugIn (subclass of org.apache.struts.action.PlugIn ) to > initialize a bunch of application-scope variables. > > Several of my JSP snippets also initialize application-scope variables > (using either , ...scope="application" />, , and/or <% > application.setAttribute(...); %>) and I would like to reuse these. > > Is it possible to call JSPs from the init() method of a PlugIn? > > One could of course just translate the JSP snippets to java for the PlugIn, > but the JSP is already written and some of the initializations are more > easily written in JSP than java anyway. > > Any tips appreciated. > > Brian > > > > - > 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: Form Field Unset Condition
> Two questions: > > 1. Am I correct is using String as the form-property type? Yes. This is a best practice approach to have form properties be boolean or String > > 2. What should be used as CONDITION so that CONDITION is true if the > parameter "id" has been set? (I assume that my validation should > make sure > "id" is an integer if it is set.) DynaValidatorForm dynaForm = (DynaValidatorForm)form; String id = (String)dynaForm.get("id"); if (id != null) { /* * Do some work here because * property "id" has been * set to some integer value. */ } HTH, robert > -Original Message- > From: Adam Sherman [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 11:45 AM > To: [EMAIL PROTECTED] > Subject: Form Field Unset Condition > > > I asked a similar question last week and am still having trouble > with this > simple idea. > > I have a form: > >type="org.apache.struts.validator.DynaValidatorForm"> > type="java.lang.String" /> > > > With validation: > > > > > > This Action code: > > DynaValidatorForm dynaForm = (DynaValidatorForm) form; > if ( CONDITION ) { > // Do Work If "id" is set > } > > Two questions: > > 1. Am I correct is using String as the form-property type? > > 2. What should be used as CONDITION so that CONDITION is true if the > parameter "id" has been set? (I assume that my validation should > make sure > "id" is an integer if it is set.) > > Thank you very much for your assistance, > > A. > > -- > Adam Sherman > Tritus CG Inc. > http://www.tritus.ca/ > +1 (613) 797-6819 > > - > 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]
Collections validation
The Struts Users Guide has a simple demonstration of validating collections under the heading " Conditionally required fields". I have been looking for this for a few weeks now and I have been skipping this section looking at the heading. Can a collection related heading be added to the existing heading? Thanks Harish __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do Struts increase developer productivity?
On Sat, 2003-03-29 at 10:02, Dan Tran wrote: > James Michell is out of work? Me too. How many good ppl are in the same > situation these days? Well, I'm not actually out of work yet, but my current contract is almost over and I've been looking for months. As much as I love to evangelize Struts, there just aren't very many jobs out there. > > Sorry for breaking out of the rythm. > > -D > - Original Message - > From: "Micael" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 12:05 AM > Subject: RE: Do Struts increase developer productivity? > > > If you have a good lead person on your team, that makes all the > difference. Someone has to know what they are doing, and then everyone > speeds up. That is especially true if you are using the pluses of the > Xtremists. > > There are lots of good people out there to take these positions. I > understand James Mitchell is looking for work and I would hire him at the > drop of a hat, if I had a position, which I don't. My sense is that there > are a lot of good people that can take Struts out the door, today, anywhere. > > Struts is not the problem. Struts is the solution. There are other > simpler frameworks, like Maverick. You can even build your own > framework. Struts is a pretty good framework (I take "pretty good" to be > very good) that you can also tweak. I personally wish that the Struts > people would just take the bull by the horns and make a big shift in the > framework, using all the things that have been learned since its > inception. I probably am not as smart as they are in this respect. There > is a pretty huge change, however, in 1.1 which is really welcomed. > > At 01:54 AM 3/29/03 -0600, you wrote: > >I think you can do the "kid in a candy store" thing with Struts all too > >easily. As with any project, make sure you set your goals in a design doc, > >just because struts can do it, doesn't mean you should do it. > > > >I had a project hit a wall because my boss kept asking if I could do this > >and that, "yeah, struts can allow me to do that..." "Okay, why don't we add > >that then..." > > > >-Jacob > > > >| -Original Message- > >| From: Navjot Singh [mailto:[EMAIL PROTECTED] > >| Sent: Friday, March 28, 2003 9:51 PM > >| To: Struts Users List > >| Subject: Re: Do Struts increase developer productivity? > >| > >| here are my 2 cents to this discussion ;-) > >| > >| Initially, the development with struts can be slow. I won't say Struts is > >| complex, it is easy but to create a simple form submission you got to > have > >| quite a number of files in set up. But slowly the things get sunk into > >| your > >| mind and then it's real fast process. > >| However, the speed can be increased with tools like Easystruts and IDEs > >| giving extensive support to Struts. > >| > >| - navjot singh > >| > >| - Original Message - > >| From: "Igor Shabalov" <[EMAIL PROTECTED]> > >| To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >| Sent: Saturday, March 29, 2003 4:26 AM > >| Subject: Re: Do Struts increase developer productivity? > >| > >| > >| > > >| > I 100% agree, Struts is good staff for use by the end of the day, but > it > >| > can slow development process. So, can we do something to reduce that > >| > "backslash"? My answer is yes, by introducing tools that helps > >| developers > >| > to "fight" with Struts complexity. Can Struts be better from functional > >| > prospective? Of course yes, however, it can increase complexity even > >| more, > >| > so we see more demand for good tools. > >| > > >| > Once again, I do not to offend anybody. > >| > > >| > Thank you for answer, > >| > Igor. > >| > > >| > On Fri, 28 Mar 2003 17:30:20 -0500, Mark Zeltser > >| > <[EMAIL PROTECTED]> wrote: > >| > > >| > > Plus all QA work each of us does by testing struts in different > >| > > environments. > >| > > > >| > > Igor, > >| > > > >| > > In our experience, struts will decrease initial productivity due to > >| the > >| > > learning > >| > > curve. However, this will be time well spent, assuming you will be > >| > > getting > >| > > maintainable application, plus struts is widely used, so there is a > >| good > >| > > chance you > >| > > will be able to find talent if needed. > >| > > > >| > > Re. individual components. Start with well defined directory > structure > >| > > for your > >| > > source, images, etc. and ant based build script. Keep adding > >| > > functionality as you > >| > > feel that there is a need for it. (E.g.: need to authenticate users. > >| > > Before > >| > > implementing your own authentication search the archives, you will > >| find > >| > > that a lot > >| > > of problems were already discussed and solved) > >| > > > >| > > Mark. > >| > > > >| > > David Graham wrote: > >| > > > >| > >> I don't have real numbers but thousands of hours of work from many > >| > >> highly > >| > >> paid software engineers has gone into Struts. Say an av
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]
RE: Do Struts increase developer productivity?
There is a reality that new technology generally gets a "honeymoon" grace period during which it is generally agreed that the technology has promise but only the gurus truly understand it and everyone else simply throws buzzwords around about it and oversells/overuses it ("it can solve all our problems!"). Eventually, the technology is revealed for what it is ("it can't solve all our problems?") and then the search is on for better understanding and the next new technologies. I think the Struts "honeymoon" is waning as the powers that be finally understand that Struts doesn't generally fix bad code, bad requirements, or unrealistic schedules and it definitely doesn't turn bad programmers into good ones. It is simply a good web architecture/framework product with a good name and some good resources behind it. Would I use Struts again? Probably, but I'll keep my eyes open for something better. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:50 PM To: Struts Users Mailing List Subject: Re: Do Struts increase developer productivity? On Sat, 2003-03-29 at 10:02, Dan Tran wrote: > James Michell is out of work? Me too. How many good ppl are in the same > situation these days? Well, I'm not actually out of work yet, but my current contract is almost over and I've been looking for months. As much as I love to evangelize Struts, there just aren't very many jobs out there. > > Sorry for breaking out of the rythm. > > -D > - Original Message - > From: "Micael" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 12:05 AM > Subject: RE: Do Struts increase developer productivity? > > > If you have a good lead person on your team, that makes all the > difference. Someone has to know what they are doing, and then everyone > speeds up. That is especially true if you are using the pluses of the > Xtremists. > > There are lots of good people out there to take these positions. I > understand James Mitchell is looking for work and I would hire him at the > drop of a hat, if I had a position, which I don't. My sense is that there > are a lot of good people that can take Struts out the door, today, anywhere. > > Struts is not the problem. Struts is the solution. There are other > simpler frameworks, like Maverick. You can even build your own > framework. Struts is a pretty good framework (I take "pretty good" to be > very good) that you can also tweak. I personally wish that the Struts > people would just take the bull by the horns and make a big shift in the > framework, using all the things that have been learned since its > inception. I probably am not as smart as they are in this respect. There > is a pretty huge change, however, in 1.1 which is really welcomed. > > At 01:54 AM 3/29/03 -0600, you wrote: > >I think you can do the "kid in a candy store" thing with Struts all too > >easily. As with any project, make sure you set your goals in a design doc, > >just because struts can do it, doesn't mean you should do it. > > > >I had a project hit a wall because my boss kept asking if I could do this > >and that, "yeah, struts can allow me to do that..." "Okay, why don't we add > >that then..." > > > >-Jacob > > > >| -Original Message- > >| From: Navjot Singh [mailto:[EMAIL PROTECTED] > >| Sent: Friday, March 28, 2003 9:51 PM > >| To: Struts Users List > >| Subject: Re: Do Struts increase developer productivity? > >| > >| here are my 2 cents to this discussion ;-) > >| > >| Initially, the development with struts can be slow. I won't say Struts is > >| complex, it is easy but to create a simple form submission you got to > have > >| quite a number of files in set up. But slowly the things get sunk into > >| your > >| mind and then it's real fast process. > >| However, the speed can be increased with tools like Easystruts and IDEs > >| giving extensive support to Struts. > >| > >| - navjot singh > >| > >| - Original Message - > >| From: "Igor Shabalov" <[EMAIL PROTECTED]> > >| To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >| Sent: Saturday, March 29, 2003 4:26 AM > >| Subject: Re: Do Struts increase developer productivity? > >| > >| > >| > > >| > I 100% agree, Struts is good staff for use by the end of the day, but > it > >| > can slow development process. So, can we do something to reduce that > >| > "backslash"? My answer is yes, by introducing tools that helps > >| developers > >| > to "fight" with Struts complexity. Can Struts be better from functional > >| > prospective? Of course yes, however, it can increase complexity even > >| more, > >| > so we see more demand for good tools. > >| > > >| > Once again, I do not to offend anybody. > >| > > >| > Thank you for answer, > >| > Igor. > >| > > >| > On Fri, 28 Mar 2003 17:30:20 -0500, Mark Zeltser > >| > <[EMAIL PROTECTED]> wrote: > >| > > >| > > Plus all QA work each of us does by testing struts in
[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]
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]
[OT] Re: Does a degree matter?
Unfortunately, to many who are hiring, the degree is an important screen before further consideration. and in a tough market, where there are many applicants for each job, they can afford to be choosy. I've known many a bright guy who did not have a degree, and their salary always seemed lower that others who might be less competent / productive, but who had degrees. I'm sure there are exceptions, including some spectacular ones, but that's certainly the general trend I've seen. and with defense contracting, where I worked most of my career, many times, labor categories on government procurements were tied to degrees and years of experience, and it was very difficult to even place a non-degreed person on a high dollar position. That being said, is it worth it? Depends - how close would you be to a degree (any prerequisites out of the way yet?). How much can you stand working all day and going to school at night, being away from family? probably only you can make that decision. its a tough one. -jeff On Saturday, March 29, 2003, at 02:09 PM, Brandon Goodin wrote: 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]
RE: Form Field Unset Condition
On 03/29/03 13:17:39 -0500 Robert Taylor wrote: 2. What should be used as CONDITION so that CONDITION is true if the parameter "id" has been set? (I assume that my validation should make sure "id" is an integer if it is set.) DynaValidatorForm dynaForm = (DynaValidatorForm)form; String id = (String)dynaForm.get("id"); if (id != null) { } I think that something else is going on because that condition isn't met if I call the Action with no parameters. It seems to be "". (Which doesn't sound right either.) Thanks, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
RE: Does a degree matter?
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]
application.getRealPath("/") from ActionForm???
When deploying my Struts application I ran in to a small problem. I had hard coded the path to an xml file used to load values into my form. I need to get a relative path. I tried the following, but got a null pointer. ActionServlet as = this.getServlet(); ServletContext application = as.getServletConfig().getServletContext(); String basePath = application.getRealPath("/"); Thanks for your time, Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Setting externally JNDI properties
Hi, At present my application is 'talking' with Jboss via specific properties set a compile time. I would like to move those properties in a jndi.properties file (which I would put under WEB-INF/classes). How could I retrieve jndi.properties without specifying the exact location (which could vary from user by user), i.e. dynamically? I tried with the following: getServlet().getServletContext().getResource("jndi.properties"); but the return is null. I also tried getServlet().getServletContext().getResource("/jndi.properties") but the return was the same. I also tried to put jndi.properties in the jar file containing the application's classes but nothing. Any idea? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Does a degree matter?
Brandon, What I've been hearing more and more from my friends at larger corporate institutions is that a degree does matter, especially in these difficult times. It is reflected in your pay as well as potential for advancement, let alone employment. It seems to be less important at smaller businesses and academic institutions. This is the perfect time to go back to school if it is economically feasible for you and your family. Another thought is that many employers, especially Universities, will pay for you to take classes. My system admin is working on his B.A. - our boss actively encourages us to pursue higher education. I finished my M.S. while employed here, and my boss gave me some work time to work through my courses. Getting a CS degree at this point in the game may seem redundant to you, but there is a lot you can gain from pursuing a degree. Many non-traditional students excel when they return to school because of their interest in the field as well as the wealth of knowledge they bring with them. Even if you hated high school and traditional classroom environments as many of us did, the experience can be completely different as an adult student. I would look into local universities and colleges and at least check out your options. Best of luck, Becky Norum (BS Biochemistry, MS Information Systems) > >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]
Re: example of PlugIn for java.sql.Date Converter registration
Hi all, as a follow-up to my question, wanted to thank Dan Tran for his help and also Rick Reumann for his. I was trying to add a PlugIn in the struts-config.xml file to augment the functionality of the BeanUtils.copyProperties function to handle java.util.Date going from a form to a model bean. If this was obvious to others, please excuse the post, but it sure wasn't obvious to me. I ended up reviewing the sources for the validator and tiles plugins to get this to work. Here's a snippet from my struts-config.xml file; in addition to loading the custom converters, I wanted to be able to supply a value to be used by the SimpleDateFormat, hence my "dateFormat" property below. And here's (below) the init() method I ended up with as a part of implementing the PlugIn interface. The basics came from Dan, and finding the proper PlugIn to retrieve my "dateFormat" property was gleaned from the sources. Well, it works, but as to whether there is a cleaner/shorter way to do this, I don't know, but would be glad to hear it. regards, -jeff public final class ConverterPlugIn implements org.apache.struts.action.PlugIn { /** * init - implements the PlugIn interface */ public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { PlugInConfig[] plugs = config.findPlugInConfigs(); boolean found = false; int i = 0; while (i < plugs.length && !found) { if (this.getClass().getName().equals(plugs[i].getClassName())) found = true; else i++; } if (found) { Object fmt = plugs[i].getProperties().get("dateFormat"); if (fmt != null) setDateFormat(fmt.toString()); } ConvertUtils.register(new DateConverter(),Date.class); ConvertUtils.register(new StringConverter(), String.class); } public static void setDateFormat(String fmt) { fmt_ = fmt; } I had a default format, in case there wasn't one in the config file, and in the DateConverter, I retrieved the date format... On Thursday, March 27, 2003, at 08:40 PM, Jeff Kyser wrote: Hi, I want to use BeanUtils.copyProperties to copy FROM my model TO my form, and I have java.sql.Dates in my model. From numerous related posts, I glean that the best place for a a custom Converter to be registered is in a PlugIn in your struts-config.xml file. 1. Does anyone have an example of this they could offer up? i think I've broken google... 2. Do you really have to do this to get a java.sql.Date from a model bean onto a form as a String using BeanUtils? or is there a better way? thanks, -jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] OJB or Hibernate??
I'm curious which is the framework of choice? What the strengths are of each, etc.? Thanks, Bill __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] OJB or Hibernate??
I've been using JDO ( Triactive JDO ) and so far I think it has worked quite well. I haven't actually used Hibernate but it does look quite similar to JDO and appears to be little easier to configure since it doesn't have to be vendor neutral - ie no vendor specific extensions. Of course JDO is based on the ODMG 3.0 spec so OJB is similar to JDO though I think ODMG is a bit more mature. OJB has a JDO implementation that uses the ODMG persistence broker though I don't think it is quite complete yet - you may want to have a look at it. The OJB is quite active so there is a bit of work going on over there. HTH, Oz -Original Message- From: Bill Johnson [mailto:[EMAIL PROTECTED] Sent: Sunday, 30 March 2003 11:28 AM To: [EMAIL PROTECTED] Subject: [OT] OJB or Hibernate?? I'm curious which is the framework of choice? What the strengths are of each, etc.? Thanks, Bill __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.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: application.getRealPath("/") from ActionForm???
If you deploy your app as a WAR file, then it is the correct result since there is no real directory to return But you can use this code InputStream is = servlet.getServletContext().getResourceAsStream(pathName); where pathName is the context path to your file in the WAR archive. (ie /WEB-INF/yourFileName.txt) Good luck. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 1:07 PM Subject: application.getRealPath("/") from ActionForm??? > When deploying my Struts application I ran in to a small problem. > I had hard coded the path to an xml file used to load values into my form. > I need to get a relative path. I tried the following, but got a null > pointer. > > ActionServlet as = this.getServlet(); > ServletContext application = as.getServletConfig().getServletContext(); > String basePath = application.getRealPath("/"); > > Thanks for your time, > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > > > - > 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?
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. Not having the comp sci degree hasn't been a thorn in my side. People just worry that you can get the job done. I've worked along side people with masters, and some rock, other's aren't fit to fetch me my coffee... :P ...most employers recognise that (and as a result, get better people to fetch me my coffee). If you're thinking about spending time to put yourself out there... I reckon the best thing I ever did was while away some hours eventually becomming a participant in an open source project. Followed with a tiny site with some tutorials, helping a few people out along the way. It's been a good thing. I'd just tend to say, pick a project that scratches and itch, write something for it, and put it out there. The big plus is that in an interview, if the topic comes up that touches on the topic that your thing works against, you can spiel about it with great enthusiasm which is hard to ignore. But, if there's something at uni that you want to scratch an itch, I'd probably go ahead with it. I'd love to go to uni to do 3D graphics, but it's hard for me to be pragmatic when the end result is still just looking for work. Then you add to the mix that getting a job is more than just your quals. It's interview technique (spielability skills), are you confident, communicate, etc etc. Which is another entirely depressing rant all together. Anyways, it's all just my opinion. All the best mate. Arron. > 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]
Re: Setting externally JNDI properties
The following snippets may help //place your jndi under your WEB-INF/classes ClassLoader classLoader = getClass().getClassLoader(); InputStream in = classLoader.getResourceAsStream("jndi.properties"); if ( in == null ) throw new MissingResourceException("JNDI property file jndi.properties' not found in classpath.", null, null); Properties jndiProperties = new Properties(); try { jnidProperties.load(in); }catch ( IOException e ) { throw new MissingResourceException("Problem loading 'jndi.properties'", null, null); } Or //place your jndi file under WEB-INF InputStream is = servlet.getServletContext().getResourceAsStream("/WEB-INF/jndi.properties"); if ( in == null ) throw new MissingResourceException("jndi property file jndi.properties' not found in classpath.", null, null); Properties jndiProperties = new Properties(); try { jndiProperties.load(in); }catch ( IOException e ) { throw new MissingResourceException("Problem loading 'jndi.properties'", null, null); } Good luck. -D - Original Message - From: "Marco Tedone" <[EMAIL PROTECTED]> To: "Struts-user-list " <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 2:12 PM Subject: Setting externally JNDI properties > Hi, > > At present my application is 'talking' with Jboss via specific properties > set a compile time. I would like to move those properties in a > jndi.properties file (which I would put under WEB-INF/classes). How could I > retrieve jndi.properties without specifying the exact location (which could > vary from user by user), i.e. dynamically? I tried with the following: > > getServlet().getServletContext().getResource("jndi.properties"); but the > return is null. > > I also tried > > getServlet().getServletContext().getResource("/jndi.properties") but the > return was the same. > > I also tried to put jndi.properties in the jar file containing the > application's classes but nothing. > > Any idea? > > Thanks, > > Marco > > - > 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]
application.getRealPath("/") from ActionForm???
When deploying my Struts application I ran in to a small problem. I had hard coded the path to an xml file used to load values into my form. I need to get a relative path. I tried the following, but got a null pointer. ActionServlet as = this.getServlet(); ServletContext application = as.getServletConfig().getServletContext(); String basePath = application.getRealPath("/"); Thanks for your time, Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does a degree matter?
On 03/29/03 20:36:21 -0600 Arron Bates wrote: If you're thinking about spending time to put yourself out there... I reckon the best thing I ever did was while away some hours eventually becomming a participant in an open source project. Followed with a tiny site with some tutorials, helping a few people out along the way. It's been a good thing. I would like to enthusiastically second Arron here, as an employer I always look for real concrete proof of what candidates are, uh, spieling about. After some rather bad experiences, I do not trust resumes or even interviews. I want to see small projects. Being able to search some mailing lists and find real day-to-day comments by the individual is fantastic and gives me lots of confidence. My two cents, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does a degree matter?
Hi Brandon. I thought I'd watch the responses to this thread before weighing in with an opinion. I was interested to note that none of the responses appear to have come from hiring managers. So I thought you might benefit from an opinion on that side of the debate. In my career I have hired over 100 different developers on a wide number of projects. And in my experience, the paper qualifications only matter in the first 3-5 years after school. Once you have those first few projects under your belt, it is your experience that matters, far more than your formal training. (In other words, it takes from 3-5 years of experience to catch up to the pack.) Although it is hard to generalize about companies and employers (since they are all run by people, and people vary widely) I can say that in general terms, the more liberal hiring policies tend to be in the smaller and more "progressively" managed organizations. Larger, more institutional employers have a much more formalized, and rigid hiring practice. The first screening of resumes in such places tends to be done by professional HR people, who are generally only qualified to screen for check-list items. (The job says A, B and C are required. Here's a fabulous resume with A, B, D, E, F and J thru N. But he's missing C. Reject.) So here are a couple of really important decisions for you to consider: 1) Do you prefer the mayhem of start-ups and small companies to the security of large institutional employers? 2) Do you already have, or can you be reasonably confident in getting those first few years of experience? If you said "yes" to both of those, you may be able to successfully avoid the school thing. If you said "No" to either one, school might be a safer bet. For what it's worth, in the last company I ran, the guy I promoted to Chief Architect did not have a degree of any kind. He was primarily self-taught. But he got the job because he was dedicated, articulate, responsible and clearly understood the technology and the needs of the company. In my book, those are far more valuable than 4 years of sleeping through lectures. Jefficus - Original Message - From: "Brandon Goodin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 1:09 PM 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]
Populating a Form
I feel this might be a RTFM, but have not found an answer. How to I populate a form with values I want edited without those values reappearing when validation fails? I have a chunk of JSP that I want to use for both the blank form and the "edit" form that would be pre-populated with existing values. Using the tags "value" attribute seems to have the effect of the empty values reappearing after validation fails. Maybe I'm approaching this completely wrong? Thanks, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: application.getRealPath("/") from ActionForm???
Actually I am calling a funtion that loads values into the form in the object. This load method needs to find a relative path. I cannot seem to get a reference to the controller servlet or any other way to get the path to my WEB-INF. public final class ManagerForm extends ActionForm { public ManagerForm() throws Exception { this.load(); } ... ... } -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:25 PM To: Struts Users Mailing List Subject: Re: application.getRealPath("/") from ActionForm??? If you deploy your app as a WAR file, then it is the correct result since there is no real directory to return But you can use this code InputStream is = servlet.getServletContext().getResourceAsStream(pathName); where pathName is the context path to your file in the WAR archive. (ie /WEB-INF/yourFileName.txt) Good luck. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 1:07 PM Subject: application.getRealPath("/") from ActionForm??? > When deploying my Struts application I ran in to a small problem. > I had hard coded the path to an xml file used to load values into my form. > I need to get a relative path. I tried the following, but got a null > pointer. > > ActionServlet as = this.getServlet(); > ServletContext application = as.getServletConfig().getServletContext(); > String basePath = application.getRealPath("/"); > > Thanks for your time, > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > > > - > 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: application.getRealPath("/") from ActionForm???
ActionServlet as = this.getServlet(); This is returning null. What is the proper way to get a reference to the controller servlet from and Action from? Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From: Jason Long [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:49 PM To: Struts Users Mailing List Subject: RE: application.getRealPath("/") from ActionForm??? Actually I am calling a funtion that loads values into the form in the object. This load method needs to find a relative path. I cannot seem to get a reference to the controller servlet or any other way to get the path to my WEB-INF. public final class ManagerForm extends ActionForm { public ManagerForm() throws Exception { this.load(); } ... ... } -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:25 PM To: Struts Users Mailing List Subject: Re: application.getRealPath("/") from ActionForm??? If you deploy your app as a WAR file, then it is the correct result since there is no real directory to return But you can use this code InputStream is = servlet.getServletContext().getResourceAsStream(pathName); where pathName is the context path to your file in the WAR archive. (ie /WEB-INF/yourFileName.txt) Good luck. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 1:07 PM Subject: application.getRealPath("/") from ActionForm??? > When deploying my Struts application I ran in to a small problem. > I had hard coded the path to an xml file used to load values into my form. > I need to get a relative path. I tried the following, but got a null > pointer. > > ActionServlet as = this.getServlet(); > ServletContext application = as.getServletConfig().getServletContext(); > String basePath = application.getRealPath("/"); > > Thanks for your time, > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Mailing List Loop
I seem to be posting 2 copies of my messages to the list, one of them normal and the other wierd like the attached message. WTF? Notice the multiple received headers. Is anybody else having similar problems? Thanks, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819--- Begin Message --- On 03/29/03 20:36:21 -0600 Arron Bates wrote: If you're thinking about spending time to put yourself out there... I reckon the best thing I ever did was while away some hours eventually becomming a participant in an open source project. Followed with a tiny site with some tutorials, helping a few people out along the way. It's been a good thing. I would like to enthusiastically second Arron here, as an employer I always look for real concrete proof of what candidates are, uh, spieling about. After some rather bad experiences, I do not trust resumes or even interviews. I want to see small projects. Being able to search some mailing lists and find real day-to-day comments by the individual is fantastic and gives me lots of confidence. My two cents, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- End Message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to logic:iterate throu serveral collections at once ?
Suppose i have ids[] array and labels[] array I need to render link label[i] is it possible to do with logic:iterate ?
RE: Does a degree matter?
Brandon, I am in the same boat. Full time job as a software contractor, 5 years combined java and other technologies, two young kids (www.simpsonboys.com), a house that needs more work than I am able to do, and on and on and on. I am currently taking one night class at Eastern Michigan University per semester. I am considering doubling up and taking an online course as well. My focus is in English / technical writing, because I believe my writing needs more practice. I veered away from a computer science degree because I wanted to broaden what I offered the project team. Financially, there are some tax advantages for undergraduate course work, state tax incentives (at least in Michigan) and student loan advantages if you still have any outstanding. Consider those advantages when looking at the whole picture. Another thing to consider; you get to be around other adults with common interests. If you take night classes, you will have an opportunity to socialize with other (computer programmers?) if computer science is your area of emphasis. It has been my experience, this list being the exception that it is, not to expect too much when considering the social benefits of being among programmers. Good luck, spring classes start in a few weeks. Online classes are being offered by real universities all over the country at in state tuition rates (www.EMich.edu included). Good luck, Benjamin Simpson [EMAIL PROTECTED] -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:36 PM To: Struts Users Mailing List 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. Not having the comp sci degree hasn't been a thorn in my side. People just worry that you can get the job done. I've worked along side people with masters, and some rock, other's aren't fit to fetch me my coffee... :P ...most employers recognise that (and as a result, get better people to fetch me my coffee). If you're thinking about spending time to put yourself out there... I reckon the best thing I ever did was while away some hours eventually becomming a participant in an open source project. Followed with a tiny site with some tutorials, helping a few people out along the way. It's been a good thing. I'd just tend to say, pick a project that scratches and itch, write something for it, and put it out there. The big plus is that in an interview, if the topic comes up that touches on the topic that your thing works against, you can spiel about it with great enthusiasm which is hard to ignore. But, if there's something at uni that you want to scratch an itch, I'd probably go ahead with it. I'd love to go to uni to do 3D graphics, but it's hard for me to be pragmatic when the end result is still just looking for work. Then you add to the mix that getting a job is more than just your quals. It's interview technique (spielability skills), are you confident, communicate, etc etc. Which is another entirely depressing rant all together. Anyways, it's all just my opinion. All the best mate. Arron. > 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: application.getRealPath("/") from ActionForm???
My guess about the null control serverlet, is because struts may not init the form's control servlet after the form constructor completes. If you can take a look at my answer to "Setting external JNDI properties", you can put your file in classpath and load it. BTW, you might have a performance problem loading the file for every constructor of your action object. You might want to load your file at startup and access it thru a singleton. Good luck. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 7:53 PM Subject: RE: application.getRealPath("/") from ActionForm??? > ActionServlet as = this.getServlet(); > > This is returning null. What is the proper way to get a reference to the > controller servlet from and Action from? > > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > -Original Message- > From: Jason Long [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 9:49 PM > To: Struts Users Mailing List > Subject: RE: application.getRealPath("/") from ActionForm??? > > > Actually I am calling a funtion that loads values into the form in the > object. This load method needs to find a relative path. I cannot seem to > get a reference to the controller servlet or any other way to get the path > to my WEB-INF. > > public final class ManagerForm extends ActionForm { > public ManagerForm() throws Exception { > this.load(); > } > ... > > ... > } > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 8:25 PM > To: Struts Users Mailing List > Subject: Re: application.getRealPath("/") from ActionForm??? > > > If you deploy your app as a WAR file, then it is the correct result since > there is no real directory to return > > But you can use this code > > InputStream is = > servlet.getServletContext().getResourceAsStream(pathName); > > where pathName is the context path to your file in the WAR archive. (ie > /WEB-INF/yourFileName.txt) > > Good luck. > > -Dan > - Original Message - > From: "Jason Long" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 1:07 PM > Subject: application.getRealPath("/") from ActionForm??? > > > > When deploying my Struts application I ran in to a small problem. > > I had hard coded the path to an xml file used to load values into my form. > > I need to get a relative path. I tried the following, but got a null > > pointer. > > > > ActionServlet as = this.getServlet(); > > ServletContext application = as.getServletConfig().getServletContext(); > > String basePath = application.getRealPath("/"); > > > > Thanks for your time, > > Jason Long - CEO and Chief Software Engineer > > Supernova Software - supernovasoftware.com > > BS Physics, MS Chemical Engineering > > > > > > > > - > > 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: how to logic:iterate throu serveral collections at once ?
The answer is yes. Please check struts doc However, by place your id and label into LabelValueBean. It will make your code easier write thru logic:iterate -Dan - Original Message - From: "Slava_L" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:02 PM Subject: how to logic:iterate throu serveral collections at once ? Suppose i have ids[] array and labels[] array I need to render link label[i] is it possible to do with logic:iterate ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: example of PlugIn for java.sql.Date Converter registration
Jeff, your code suggests a better way to make date format configurable. Thanks -Dan - Original Message - From: "Jeff Kyser" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 4:45 PM Subject: Re: example of PlugIn for java.sql.Date Converter registration > Hi all, > > as a follow-up to my question, wanted to thank Dan Tran for his help > and also Rick Reumann for his. > > I was trying to add a PlugIn in the struts-config.xml file to augment > the functionality of the BeanUtils.copyProperties function to handle > java.util.Date going from a form to a model bean. > > If this was obvious to others, please excuse the post, but it sure > wasn't obvious to me. I ended up reviewing the sources for the > validator and tiles plugins to get this to work. > > Here's a snippet from my struts-config.xml file; in addition to loading > the custom converters, I wanted to be able to supply a value to be > used by the SimpleDateFormat, hence my "dateFormat" property below. > > > > > > > And here's (below) the init() method I ended up with as a part of > implementing > the PlugIn interface. The basics came from Dan, and finding the > proper PlugIn to retrieve my "dateFormat" property was gleaned > from the sources. > > Well, it works, but as to whether there is a cleaner/shorter way to > do this, I don't know, but would be glad to hear it. > > regards, > > -jeff > > public final class ConverterPlugIn implements > org.apache.struts.action.PlugIn { > /** > * init - implements the PlugIn interface > */ > public void init(ActionServlet servlet, ModuleConfig config) > throws ServletException { > > PlugInConfig[] plugs = config.findPlugInConfigs(); > boolean found = false; > int i = 0; > while (i < plugs.length && !found) { > if > (this.getClass().getName().equals(plugs[i].getClassName())) > found = true; > else > i++; > } > if (found) { > Object fmt = plugs[i].getProperties().get("dateFormat"); > if (fmt != null) > setDateFormat(fmt.toString()); > } > > ConvertUtils.register(new DateConverter(),Date.class); > ConvertUtils.register(new StringConverter(), String.class); > } > > public static void setDateFormat(String fmt) { > fmt_ = fmt; > } > > I had a default format, in case there wasn't one in the config file, > and in the DateConverter, I retrieved the date format... > > On Thursday, March 27, 2003, at 08:40 PM, Jeff Kyser wrote: > > > Hi, > > > > I want to use BeanUtils.copyProperties to copy FROM my model TO my > > form, > > and I have java.sql.Dates in my model. > > > > From numerous related posts, I glean that the best place for a > > a custom Converter to be registered is in a PlugIn in your > > struts-config.xml file. > > > > 1. Does anyone have an example of this they could offer up? i think > > I've > > broken google... > > > > 2. Do you really have to do this to get a java.sql.Date from a model > > bean onto > > a form as a String using BeanUtils? or is there a better way? > > > > thanks, > > > > -jeff > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Test
I keep seeing double messages sending to me when I make a post to this group 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]
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]
[OT] Test
Please ignore -D _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to logic:iterate throu serveral collections at once ?
Struts doc says that only one object can be iterated inside on logic:iterate - Original Message - From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, March 30, 2003 12:39 PM Subject: Re: how to logic:iterate throu serveral collections at once ? > The answer is yes. Please check struts doc > > However, by place your id and label into LabelValueBean. It will make your > code easier write > thru logic:iterate > > -Dan > - Original Message - > From: "Slava_L" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 9:02 PM > Subject: how to logic:iterate throu serveral collections at once ? > > > Suppose i have ids[] array and labels[] array > > I need to render link label[i] > is it possible to do with logic:iterate ? > > > - > 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: application.getRealPath("/") from ActionForm???
This file is and xml file that contain that data that the form needs to be filled with. It is in my WEB-INF/data folder. The problem is that I cannot find a way to tell my form where to load this data from. I need need to access to the ServletContext so I can get the real path of the web application. Some has to know how to do this easily. Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:29 PM To: Struts Users Mailing List Subject: Re: application.getRealPath("/") from ActionForm??? My guess about the null control serverlet, is because struts may not init the form's control servlet after the form constructor completes. If you can take a look at my answer to "Setting external JNDI properties", you can put your file in classpath and load it. BTW, you might have a performance problem loading the file for every constructor of your action object. You might want to load your file at startup and access it thru a singleton. Good luck. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 7:53 PM Subject: RE: application.getRealPath("/") from ActionForm??? > ActionServlet as = this.getServlet(); > > This is returning null. What is the proper way to get a reference to the > controller servlet from and Action from? > > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > -Original Message- > From: Jason Long [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 9:49 PM > To: Struts Users Mailing List > Subject: RE: application.getRealPath("/") from ActionForm??? > > > Actually I am calling a funtion that loads values into the form in the > object. This load method needs to find a relative path. I cannot seem to > get a reference to the controller servlet or any other way to get the path > to my WEB-INF. > > public final class ManagerForm extends ActionForm { > public ManagerForm() throws Exception { > this.load(); > } > ... > > ... > } > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 8:25 PM > To: Struts Users Mailing List > Subject: Re: application.getRealPath("/") from ActionForm??? > > > If you deploy your app as a WAR file, then it is the correct result since > there is no real directory to return > > But you can use this code > > InputStream is = > servlet.getServletContext().getResourceAsStream(pathName); > > where pathName is the context path to your file in the WAR archive. (ie > /WEB-INF/yourFileName.txt) > > Good luck. > > -Dan > - Original Message - > From: "Jason Long" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 1:07 PM > Subject: application.getRealPath("/") from ActionForm??? > > > > When deploying my Struts application I ran in to a small problem. > > I had hard coded the path to an xml file used to load values into my form. > > I need to get a relative path. I tried the following, but got a null > > pointer. > > > > ActionServlet as = this.getServlet(); > > ServletContext application = as.getServletConfig().getServletContext(); > > String basePath = application.getRealPath("/"); > > > > Thanks for your time, > > Jason Long - CEO and Chief Software Engineer > > Supernova Software - supernovasoftware.com > > BS Physics, MS Chemical Engineering > > > > > > > > - > > 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: application.getRealPath("/") from ActionForm???
Is your XML file static? If it does, you cam place the xml file in your class path and use my other posted solution to have access to its InputStream. If you dont like to place it in classpath, you can create a Singleton wrapper around your XML and load it up during application startup, via Struts plugin or a servlet. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:31 PM Subject: RE: application.getRealPath("/") from ActionForm??? > This file is and xml file that contain that data that the form needs to be > filled with. It is in my WEB-INF/data folder. The problem is that I cannot > find a way to tell my form where to load this data from. I need need to > access to the ServletContext so I can get the real path of the web > application. Some has to know how to do this easily. > > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 10:29 PM > To: Struts Users Mailing List > Subject: Re: application.getRealPath("/") from ActionForm??? > > > My guess about the null control serverlet, is because struts may not init > the form's control servlet after the form constructor completes. > > If you can take a look at my answer to "Setting external JNDI properties", > you can put your file in classpath and load it. > > > BTW, you might have a performance problem loading the file for every > constructor of your action object. You might want to load your file at > startup and access it thru a singleton. > > Good luck. > > -Dan > > - Original Message - > From: "Jason Long" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 7:53 PM > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > ActionServlet as = this.getServlet(); > > > > This is returning null. What is the proper way to get a reference to the > > controller servlet from and Action from? > > > > Jason Long - CEO and Chief Software Engineer > > Supernova Software - supernovasoftware.com > > BS Physics, MS Chemical Engineering > > > > -Original Message- > > From: Jason Long [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 29, 2003 9:49 PM > > To: Struts Users Mailing List > > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > > > Actually I am calling a funtion that loads values into the form in the > > object. This load method needs to find a relative path. I cannot seem to > > get a reference to the controller servlet or any other way to get the path > > to my WEB-INF. > > > > public final class ManagerForm extends ActionForm { > > public ManagerForm() throws Exception { > > this.load(); > > } > > ... > > > > ... > > } > > > > -Original Message- > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 29, 2003 8:25 PM > > To: Struts Users Mailing List > > Subject: Re: application.getRealPath("/") from ActionForm??? > > > > > > If you deploy your app as a WAR file, then it is the correct result since > > there is no real directory to return > > > > But you can use this code > > > > InputStream is = > > servlet.getServletContext().getResourceAsStream(pathName); > > > > where pathName is the context path to your file in the WAR archive. (ie > > /WEB-INF/yourFileName.txt) > > > > Good luck. > > > > -Dan > > - Original Message - > > From: "Jason Long" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 1:07 PM > > Subject: application.getRealPath("/") from ActionForm??? > > > > > > > When deploying my Struts application I ran in to a small problem. > > > I had hard coded the path to an xml file used to load values into my > form. > > > I need to get a relative path. I tried the following, but got a null > > > pointer. > > > > > > ActionServlet as = this.getServlet(); > > > ServletContext application = as.getServletConfig().getServletContext(); > > > String basePath = application.getRealPath("/"); > > > > > > Thanks for your time, > > > Jason Long - CEO and Chief Software Engineer > > > Supernova Software - supernovasoftware.com > > > BS Physics, MS Chemical Engineering > > > > > > > > > > > > - > > > 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: how to logic:iterate throu serveral collections at once ?
logic:iterate exposes an collection's index, with can be use to access other collection, right? -D - Original Message - From: "Slava_L" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 10:15 PM Subject: Re: how to logic:iterate throu serveral collections at once ? > Struts doc says that only one object can be iterated inside on logic:iterate > - Original Message - > From: "Dan Tran" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Sunday, March 30, 2003 12:39 PM > Subject: Re: how to logic:iterate throu serveral collections at once ? > > > > The answer is yes. Please check struts doc > > > > However, by place your id and label into LabelValueBean. It will make your > > code easier write > > thru logic:iterate > > > > -Dan > > - Original Message - > > From: "Slava_L" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 9:02 PM > > Subject: how to logic:iterate throu serveral collections at once ? > > > > > > Suppose i have ids[] array and labels[] array > > > > I need to render link label[i] > > is it possible to do with logic:iterate ? > > > > > > - > > 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?
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]
It's late and I'm feeling stupid
I have some data in an XML file. I read it in from JSP using (the JSTL X tags) I then transfered it to a variable like so: I can now dump it out happily using It turns out that this particular value (an integer) is useful in a subsequent JSP page (if my user elects to go there by clicking the appropriate link). So I want to pass it as a parameter when I link to that next page. Aha! the allows me to add parameter information. But it appears that such info must be in a bean. So I created a bean: But for all my efforts, I can't figure out how to get the "somevarname" value into "foo" I tried: but that isn't working. (Subsequent attempts to come up blank.) I just know when I wake up tomorrow, the answer is going to be obvious and I'm going to feel stupid for asking. But one of the advantages of working late without much sleep is that we don't care how we're going to feel about it in the morning. Any suggestions? Jefficus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: application.getRealPath("/") from ActionForm???
It is not static. I need it to load when ActionForm is loaded. Is there no way to load form values from an external source? Jason Long - CEO and Chief Software Engineer Supernova Software - supernovasoftware.com BS Physics, MS Chemical Engineering -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 11:42 PM To: Struts Users Mailing List Subject: Re: application.getRealPath("/") from ActionForm??? Is your XML file static? If it does, you cam place the xml file in your class path and use my other posted solution to have access to its InputStream. If you dont like to place it in classpath, you can create a Singleton wrapper around your XML and load it up during application startup, via Struts plugin or a servlet. -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:31 PM Subject: RE: application.getRealPath("/") from ActionForm??? > This file is and xml file that contain that data that the form needs to be > filled with. It is in my WEB-INF/data folder. The problem is that I cannot > find a way to tell my form where to load this data from. I need need to > access to the ServletContext so I can get the real path of the web > application. Some has to know how to do this easily. > > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 10:29 PM > To: Struts Users Mailing List > Subject: Re: application.getRealPath("/") from ActionForm??? > > > My guess about the null control serverlet, is because struts may not init > the form's control servlet after the form constructor completes. > > If you can take a look at my answer to "Setting external JNDI properties", > you can put your file in classpath and load it. > > > BTW, you might have a performance problem loading the file for every > constructor of your action object. You might want to load your file at > startup and access it thru a singleton. > > Good luck. > > -Dan > > - Original Message - > From: "Jason Long" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 7:53 PM > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > ActionServlet as = this.getServlet(); > > > > This is returning null. What is the proper way to get a reference to the > > controller servlet from and Action from? > > > > Jason Long - CEO and Chief Software Engineer > > Supernova Software - supernovasoftware.com > > BS Physics, MS Chemical Engineering > > > > -Original Message- > > From: Jason Long [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 29, 2003 9:49 PM > > To: Struts Users Mailing List > > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > > > Actually I am calling a funtion that loads values into the form in the > > object. This load method needs to find a relative path. I cannot seem to > > get a reference to the controller servlet or any other way to get the path > > to my WEB-INF. > > > > public final class ManagerForm extends ActionForm { > > public ManagerForm() throws Exception { > > this.load(); > > } > > ... > > > > ... > > } > > > > -Original Message- > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 29, 2003 8:25 PM > > To: Struts Users Mailing List > > Subject: Re: application.getRealPath("/") from ActionForm??? > > > > > > If you deploy your app as a WAR file, then it is the correct result since > > there is no real directory to return > > > > But you can use this code > > > > InputStream is = > > servlet.getServletContext().getResourceAsStream(pathName); > > > > where pathName is the context path to your file in the WAR archive. (ie > > /WEB-INF/yourFileName.txt) > > > > Good luck. > > > > -Dan > > - Original Message - > > From: "Jason Long" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 1:07 PM > > Subject: application.getRealPath("/") from ActionForm??? > > > > > > > When deploying my Struts application I ran in to a small problem. > > > I had hard coded the path to an xml file used to load values into my > form. > > > I need to get a relative path. I tried the following, but got a null > > > pointer. > > > > > > ActionServlet as = this.getServlet(); > > > ServletContext application = as.getServletConfig().getServletContext(); > > > String basePath = application.getRealPath("/"); > > > > > > Thanks for your time, > > > Jason Long - CEO and Chief Software Engineer > > > Supernova Software - supernovasoftware.com > > > BS Physics, MS Chemical Engineering > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >
Re: It's late and I'm feeling stupid
It is late too and my mind also slowing down as well ;-) So here is my vague ans. Use Struts-el tag lib, it works well with JSTL -Dan - Original Message - From: "Jeff Smith" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:47 PM Subject: It's late and I'm feeling stupid > I have some data in an XML file. > > I read it in from JSP using (the JSTL X tags) > > I then transfered it to a variable like so: > > > > > I can now dump it out happily using > > It turns out that this particular value (an integer) is useful in a > subsequent JSP page (if my user elects to go there by clicking the > appropriate link). So I want to pass it as a parameter when I link to that > next page. > > Aha! the allows me to add parameter information. But it appears > that such info must be in a bean. > > So I created a bean: > > > But for all my efforts, I can't figure out how to get the "somevarname" > value into "foo" > > I tried: > value="${somevarname}"/> > but that isn't working. (Subsequent attempts to > come up blank.) > > I just know when I wake up tomorrow, the answer is going to be obvious and > I'm going to feel stupid for asking. But one of the advantages of working > late without much sleep is that we don't care how we're going to feel about > it in the morning. > > Any suggestions? > > Jefficus > > > - > 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: how to logic:iterate throu serveral collections at once ?
Hi I am using an options tag to display a label value collection. I have an additional propert associated with each of the values on this option which I have stored as another boolean[]. Now in my UI, I want to have each of these options to appear in two different colors depending on the corresponding value in my boolean[]. How can I implement this. -Shilpi -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 11:15 AM To: Struts Users Mailing List Subject: Re: how to logic:iterate throu serveral collections at once ? logic:iterate exposes an collection's index, with can be use to access other collection, right? -D - Original Message - From: "Slava_L" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 10:15 PM Subject: Re: how to logic:iterate throu serveral collections at once ? > Struts doc says that only one object can be iterated inside on logic:iterate > - Original Message - > From: "Dan Tran" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Sunday, March 30, 2003 12:39 PM > Subject: Re: how to logic:iterate throu serveral collections at once ? > > > > The answer is yes. Please check struts doc > > > > However, by place your id and label into LabelValueBean. It will make your > > code easier write > > thru logic:iterate > > > > -Dan > > - Original Message - > > From: "Slava_L" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 9:02 PM > > Subject: how to logic:iterate throu serveral collections at once ? > > > > > > Suppose i have ids[] array and labels[] array > > > > I need to render link label[i] > > is it possible to do with logic:iterate ? > > > > > > - > > 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: how to logic:iterate throu serveral collections at once ?
A clean solution is to put your label, value, and boolean flag in a Bean then you can access all those properties as you iterating thru. Regarding the coloring, instead of using html:options tag, your can use logic:iterate and writing out the html code and color yourself -Dan - Original Message - From: "Jain, Shilpi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:51 PM Subject: RE: how to logic:iterate throu serveral collections at once ? > Hi > I am using an options tag to display a label value collection. I have an > additional propert associated with each of the values on this option which I > have stored as another boolean[]. Now in my UI, I want to have each of these > options to appear in two different colors depending on the corresponding > value in my boolean[]. How can I implement this. > > > -Shilpi > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 30, 2003 11:15 AM > To: Struts Users Mailing List > Subject: Re: how to logic:iterate throu serveral collections at once ? > > logic:iterate exposes an collection's index, with can be use to access other > collection, right? > > -D > - Original Message - > From: "Slava_L" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 10:15 PM > Subject: Re: how to logic:iterate throu serveral collections at once ? > > > > Struts doc says that only one object can be iterated inside on > logic:iterate > > - Original Message - > > From: "Dan Tran" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Sunday, March 30, 2003 12:39 PM > > Subject: Re: how to logic:iterate throu serveral collections at once ? > > > > > > > The answer is yes. Please check struts doc > > > > > > However, by place your id and label into LabelValueBean. It will make > your > > > code easier write > > > thru logic:iterate > > > > > > -Dan > > > - Original Message - > > > From: "Slava_L" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Saturday, March 29, 2003 9:02 PM > > > Subject: how to logic:iterate throu serveral collections at once ? > > > > > > > > > Suppose i have ids[] array and labels[] array > > > > > > I need to render link label[i] > > > is it possible to do with logic:iterate ? > > > > > > > > > - > > > 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: application.getRealPath("/") from ActionForm???
Have you given a thought on my Singleton solution? -Dan - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 9:48 PM Subject: RE: application.getRealPath("/") from ActionForm??? > It is not static. I need it to load when ActionForm is loaded. Is there no > way to load form values from an external source? > > Jason Long - CEO and Chief Software Engineer > Supernova Software - supernovasoftware.com > BS Physics, MS Chemical Engineering > > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 11:42 PM > To: Struts Users Mailing List > Subject: Re: application.getRealPath("/") from ActionForm??? > > > Is your XML file static? If it does, you cam place the xml file in your > class path and use my other posted solution to have access to its > InputStream. > > If you dont like to place it in classpath, you can create a Singleton > wrapper around your XML and load it up during application startup, via > Struts plugin or a servlet. > > -Dan > > - Original Message - > From: "Jason Long" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 9:31 PM > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > This file is and xml file that contain that data that the form needs to be > > filled with. It is in my WEB-INF/data folder. The problem is that I > cannot > > find a way to tell my form where to load this data from. I need need to > > access to the ServletContext so I can get the real path of the web > > application. Some has to know how to do this easily. > > > > Jason Long - CEO and Chief Software Engineer > > Supernova Software - supernovasoftware.com > > BS Physics, MS Chemical Engineering > > > > -Original Message- > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 29, 2003 10:29 PM > > To: Struts Users Mailing List > > Subject: Re: application.getRealPath("/") from ActionForm??? > > > > > > My guess about the null control serverlet, is because struts may not init > > the form's control servlet after the form constructor completes. > > > > If you can take a look at my answer to "Setting external JNDI > properties", > > you can put your file in classpath and load it. > > > > > > BTW, you might have a performance problem loading the file for every > > constructor of your action object. You might want to load your file at > > startup and access it thru a singleton. > > > > Good luck. > > > > -Dan > > > > - Original Message - > > From: "Jason Long" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 7:53 PM > > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > > > > ActionServlet as = this.getServlet(); > > > > > > This is returning null. What is the proper way to get a reference to > the > > > controller servlet from and Action from? > > > > > > Jason Long - CEO and Chief Software Engineer > > > Supernova Software - supernovasoftware.com > > > BS Physics, MS Chemical Engineering > > > > > > -Original Message- > > > From: Jason Long [mailto:[EMAIL PROTECTED] > > > Sent: Saturday, March 29, 2003 9:49 PM > > > To: Struts Users Mailing List > > > Subject: RE: application.getRealPath("/") from ActionForm??? > > > > > > > > > Actually I am calling a funtion that loads values into the form in the > > > object. This load method needs to find a relative path. I cannot seem > to > > > get a reference to the controller servlet or any other way to get the > path > > > to my WEB-INF. > > > > > > public final class ManagerForm extends ActionForm { > > > public ManagerForm() throws Exception { > > > this.load(); > > > } > > > ... > > > > > > ... > > > } > > > > > > -Original Message- > > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > > Sent: Saturday, March 29, 2003 8:25 PM > > > To: Struts Users Mailing List > > > Subject: Re: application.getRealPath("/") from ActionForm??? > > > > > > > > > If you deploy your app as a WAR file, then it is the correct result > since > > > there is no real directory to return > > > > > > But you can use this code > > > > > > InputStream is = > > > servlet.getServletContext().getResourceAsStream(pathName); > > > > > > where pathName is the context path to your file in the WAR archive. (ie > > > /WEB-INF/yourFileName.txt) > > > > > > Good luck. > > > > > > -Dan > > > - Original Message - > > > From: "Jason Long" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Saturday, March 29, 2003 1:07 PM > > > Subject: application.getRealPath("/") from ActionForm??? > > > > > > > > > > When deploying my Struts application I ran in to a small problem. > > > > I had hard coded the path to an xml file used to load values into my > > form. > > > > I need to get a relative path. I tried t
RE: how to logic:iterate throu serveral collections at once ?
I covered a similar thing in the Basebeans talk I gave today, you can get the slides at www.strutskickstart.com James > -Original Message- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 30, 2003 1:02 AM > To: Struts Users Mailing List > Subject: Re: how to logic:iterate throu serveral collections at once ? > > > A clean solution is to put your label, value, and boolean > flag in a Bean then you can access all those properties as > you iterating thru. > > Regarding the coloring, instead of using html:options tag, > your can use logic:iterate and writing out the html code and > color yourself > > -Dan > > - Original Message - > From: "Jain, Shilpi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, March 29, 2003 9:51 PM > Subject: RE: how to logic:iterate throu serveral collections at once ? > > > > Hi > > I am using an options tag to display a label value > collection. I have > > an additional propert associated with each of the values on this > > option which > I > > have stored as another boolean[]. Now in my UI, I want to > have each of > these > > options to appear in two different colors depending on the > > corresponding value in my boolean[]. How can I implement this. > > > > > > -Shilpi > > > > -Original Message- > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: Sunday, March 30, 2003 11:15 AM > > To: Struts Users Mailing List > > Subject: Re: how to logic:iterate throu serveral > collections at once ? > > > > logic:iterate exposes an collection's index, with can be > use to access > other > > collection, right? > > > > -D > > - Original Message - > > From: "Slava_L" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Saturday, March 29, 2003 10:15 PM > > Subject: Re: how to logic:iterate throu serveral > collections at once ? > > > > > > > Struts doc says that only one object can be iterated inside on > > logic:iterate > > > - Original Message - > > > From: "Dan Tran" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Sunday, March 30, 2003 12:39 PM > > > Subject: Re: how to logic:iterate throu serveral > collections at once > > > ? > > > > > > > > > > The answer is yes. Please check struts doc > > > > > > > > However, by place your id and label into > LabelValueBean. It will > > > > make > > your > > > > code easier write > > > > thru logic:iterate > > > > > > > > -Dan > > > > - Original Message - > > > > From: "Slava_L" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Saturday, March 29, 2003 9:02 PM > > > > Subject: how to logic:iterate throu serveral > collections at once ? > > > > > > > > > > > > Suppose i have ids[] array and labels[] array > > > > > > > > I need to render link href="someaction.do?id=ids[i]"> label[i] > > > > is it possible to do with logic:iterate ? > > > > > > > > > > > > > -- > > > > --- > > > > 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]
Test,please ignore
-D _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Populating a Form
In the reset method of the ActionForm. Ilya -Original Message- From: Adam Sherman To: [EMAIL PROTECTED] Sent: 3/29/03 8:48 PM Subject: Populating a Form I feel this might be a RTFM, but have not found an answer. How to I populate a form with values I want edited without those values reappearing when validation fails? I have a chunk of JSP that I want to use for both the blank form and the "edit" form that would be pre-populated with existing values. Using the tags "value" attribute seems to have the effect of the empty values reappearing after validation fails. Maybe I'm approaching this completely wrong? Thanks, A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Does a degree matter?
Wow, this has been some incredible insight. I can't thank you enough for your advice. It has been extremly helpful in helping me to focus my direction. As always you guys/girls have shown true heart in assisting a fellow geek. Thanks again! Brandon Goodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does a degree matter?
Craig R. McClanahan wrote: 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 As someone who has hired and been hired many times over the years, I have to agree with the main point above in terms of market value for a CS degree per se -- not a big differentiator. The most important question to ask, in my mind, is are you *interested* in computer science and will the programs that you are considering add value to you personally. If you really have an interest in CS, it can be an excellent field of study for developing the cognitive skills and discipline that really can make a difference in solving hard technical problems and learning new technologies quickly. So can math, engineering, business or virtually any academic discipline with an exacting technical component. In my experience, people who have mastered a technical discipline of some sort tend to be better at technical learning. Given the pace of technology change, technical learning ability is the most important quality in a technologist of any kind today, IMHO. This is what I look for when I hire people. So...bottom line is that I would recommend pursuing a CS degree if a) you have a genuine interest in CS and b) you find a program that focuses on the foundations/fundamentals to avoid the pitfalls that Craig mentions above. -Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]