[OT] JSTL : test the first char of a String
Hello, I'm using JSTL and Struts-EL. I would like to test the first char of a String. The string is a URL, and can be a path to some action on my webapp or any external URL. I'd like to test if the url starts with '/' to select the html:link attriibute to use : page or href. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JSTL : test the first char of a String
I've found this way : c:if test=${link.bytes[0] eq '/'.bytes[0]} Not so pretty, but working ! Nico. nicolas De Loof a écrit : Hello, I'm using JSTL and Struts-EL. I would like to test the first char of a String. The string is a URL, and can be a path to some action on my webapp or any external URL. I'd like to test if the url starts with '/' to select the html:link attriibute to use : page or href. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JSTL : test the first char of a String
c:if test=${fn:startsWith(url, '/')} Thanks -- pady [EMAIL PROTECTED] -Original Message- From: nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:12 AM To: Struts Users Mailing List Subject: [OT] JSTL : test the first char of a String Hello, I'm using JSTL and Struts-EL. I would like to test the first char of a String. The string is a URL, and can be a path to some action on my webapp or any external URL. I'd like to test if the url starts with '/' to select the html:link attriibute to use : page or href. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
pls ignore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test
Test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user-guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:23 AM To: Struts Users Mailing List Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I use xcode on osx and personally i prefer it to those swing based things, (although IDEA I hear is in a class of its own). Xcode isn't as bigger leap at apple would have you believe I had project builder doing the same sorts of things with ant. But its quite nice that all the basics are there (JBoss-tomcat, ant, xdoclet) and you can create you own templates. Does all you need without messing with your stuff too much like eclipse. Its a different kettle of fish to the old java development on MacOS that you mentioned. On 1 Mar 2004, at 16:45, Nguyen, Hien wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:23 AM To: Struts Users Mailing List Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:36 PM Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
It's included at the bottom of every message... An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Tarik El Berrak [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 12:02 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:36 PM Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I have been doing Struts projects on Mac OS X (currently Panther) for nearly 2 years now using Eclipse/Dreamweaver/Ant etc I like it. Most of my associate developers using windows on the same projects seem to wish they had a mac to work with. Java on the Mac has come a long way in 8 years. Just be prepared for different frustrations :-) I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)
that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependencies Properties are defined like so: (http://maven.apache.org/reference/user-guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin
Re: [ANNOUNCE] Struts 1.2.0 Test Build available
I've built Struts 1.2.0 from the sources package uising maven 1.0RC1 without trouble. When I run maven site, the generated m-target/docs has no index.html and faqs, proposals, tiles and userGuide are empty directory. Is this a known build problem (waiting for update for an *official* release) ? Nico. Martin Cooper a écrit : The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - 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: [ANNOUNCE] Struts 1.2.0 Test Build available
At 9:34 AM +0100 2/27/04, nicolas De Loof wrote: I've built Struts 1.2.0 from the sources package uising maven 1.0RC1 without trouble. When I run maven site, the generated m-target/docs has no index.html and faqs, proposals, tiles and userGuide are empty directory. Is this a known build problem (waiting for update for an *official* release) ? The energy for applying Maven to Struts has been focused on the build. I think a few people have looked at making it build the docs, but no one has really focused on it. I've also been pleased to be able to extend the main project.xml for struts-chain and struts-el to quickly bring Maven support to those. Maven is not the official build mechanism for Struts, and there's no guarantee that it will become such in the 1.x line. On the other hand, if folks make Maven do everything the current Ant build does, it might. Of course, the fact that Maven still hasn't seen a full 1.0 release does lend some support with keeping Ant the official way. For the docs, the main thing would be to eliminate any need to maintain dual documentation while the Ant build is still the official build. I think all current efforts have cloned the docs dir, and I've never tried to get maven:site to work against anything but the xdocs directory. If anyone knows the trick, patches are always happily accepted! Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts 1.2.0 Test Build available
Andrew Hill [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ah I see. Its just the jars, tlds, dtds necessary for a struts app, sans docs. Yup, that's it exactly. We've actually been releasing a 'lib' version for a while now, for people who don't want to have to download the entire binary version, since the latter is getting a bit big. The description of that does seem to have fallen off the Acquiring page in the docs, though. ;-( Also, it's worth noting that, due to some great work from Ted, the 1.2.0 binary download is about 25% smaller than the 1.1 equivalent, since several of the sample web apps have been merged into one, thus demonstrating modules as well. -- Martin Cooper -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 13:52 To: Struts Users Mailing List Subject: RE: [ANNOUNCE] Struts 1.2.0 Test Build available Cool bananas! Many thanks to the struts team for all the work they have put into this build. :-) Whats the lib archive for? -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 13:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts 1.2.0 Test Build available The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - 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: [ANNOUNCE] Struts 1.2.0 Test Build available
nicolas De Loof [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've built Struts 1.2.0 from the sources package uising maven 1.0RC1 without trouble. When I run maven site, the generated m-target/docs has no index.html and faqs, proposals, tiles and userGuide are empty directory. Is this a known build problem (waiting for update for an *official* release) ? As Joe has already mentioned, the use of Maven to build various parts of Struts is an ongoing activity. All of the builds you see distributed from Jakarta (nightly, release, and this test build) are still built using Ant. Given that Maven still hasn't reached an official 1.0 release in almost 3 years of development, and given how stable and well-developed the Struts Ant build system is (it's just as capable as Maven of building the entire release, including docs, by issuing one command to a shell), I'm personally in no great rush to switch. ;-) That said, there are some intrepid Maven fans who are working on getting the Maven build for Struts to the same point as the Ant build system, so don't be surprised to see the issues you mention taken to heart and addressed before an official release of Maven! -- Martin Cooper Nico. Martin Cooper a écrit : The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - 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: [ANNOUNCE] Struts 1.2.0 Test Build available
Oswald Campesato [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Martin Cooper [EMAIL PROTECTED] wrote: The Struts 1.2.0 Test Build is now available here: Excellent:) http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. Is there a web page that describes the process by which feedback is collected? Just the usual mechanisms: * Bug reports: http://jakarta.apache.org/struts/using.html#Bugs * Feedback on the mailing lists. The former is preferred if you are sure there is a bug; the latter is where to speculate and ask questions. -- Martin Cooper Thanks, Oswald -- Martin Cooper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts 1.2.0 Test Build available
Given that Maven still hasn't reached an official 1.0 release in almost 3 years of development. hey, now... Struts 1.1 took a darn long time! I bet they're in the same boat. Plenty of people who don't really track version numbers are using it happily, so the urge to actually cut a release is not too strong. That said, there are some intrepid Maven fans who are working on getting the Maven build for Struts to the same point as the Ant build system My enthusiasm for Maven is all about lowering the barrier to entry. I think long-time Ant/Struts builders forget how tedious it is to set up the build.properties file. And that's just to compile; if you use an IDE you have another headache getting a Struts project set up. Anyway, no need to proselytize... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)
Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Given that Maven still hasn't reached an official 1.0 release in almost 3 years of development. hey, now... Struts 1.1 took a darn long time! I bet they're in the same boat. Plenty of people who don't really track version numbers are using it happily, so the urge to actually cut a release is not too strong. I'm not claiming we're angels, but we're doing a lot better than Maven is. ;-) From Struts 1.0.2 Final to Struts 1.1 Final took 1 year, 4 months. During that time, people still had a Final release to work with. Maven has been in development for almost *3* years, with *no* Final release to work with... That said, there are some intrepid Maven fans who are working on getting the Maven build for Struts to the same point as the Ant build system My enthusiasm for Maven is all about lowering the barrier to entry. I used to share that enthusiasm. It has faded over time, however, as it became apparent to me that, once you get past the easy part, writing preGoal and postGoal scripts isn't much different from writing Ant scripts. Oh, and Maven changing the way it does things didn't help either. ;-) I think long-time Ant/Struts builders forget how tedious it is to set up the build.properties file. And that's just to compile; if you use an IDE you have another headache getting a Struts project set up. That is certainly true. One of the things Maven does for you, to ease the build process, is decide where the dependencies are going to come from. If we did that in the Ant build files, it would make it almost as simple as Mave, but then, because they're Ant build files, people would complain that they were not sufficiently flexible. That makes it hard to win. ;-) (When it comes to IDEs, though, most of them know about Ant, but don't yet know about Maven at all, so there's not so much of a case for Maven there, IMHO.) -- Martin Cooper Anyway, no need to proselytize... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)
At 11:19 AM -0800 2/27/04, Martin Cooper wrote: (When it comes to IDEs, though, most of them know about Ant, but don't yet know about Maven at all, so there's not so much of a case for Maven there, IMHO.) Since you added the OT to the subject line, I feel ok about dragging this on... the beauty of Maven and IDEs is that Maven generates the project for you, for JBuilder, Eclipse, or IDEA. Let's see your Ant do that! :-) Just kidding. Ant is great, and actually, I think the fact that extending Maven is basically like writing Ant is a feature, not a bug. Oh yeah, also I can't go back from having versioned JAR in my lib directories. I suspect that's a matter of taste too, but I'll take the overhead of pruning old JARs when new versions are deployed over the mystery of knowing which versions your apps depend on any day... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Iterate of List - need to test if list is null
I have an object named Wizard in the request. Wizard has a property defined as pubic Class Wizard { private List progressBar = null; public Wizard() {} public List getProgressBar() { return progressBar; } } in JSP i do this logic:iterate name=wizard property=progressBar /logic:iterate how can i test if the progressBar is null before i start the iterate. right now i get an error, cant find collection. i tried to used logic:notEmpty but i am not using struts 1.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Iterate of List - need to test if list is null
I have an object named Wizard in the request. Wizard has a property defined as pubic Class Wizard { private List progressBar = null; public Wizard() {} public List getProgressBar() { return progressBar; } } in JSP i do this logic:iterate name=wizard property=progressBar /logic:iterate how can i test if the progressBar is null before i start the iterate. Use JSTL: c: if test=${!empty wizard.progressBar} logic iterate name=wizard property=pregressBar/logic:iterate /c:test -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Iterate of List - need to test if list is null
Thanks Tim, Hopefully the heads of state won't balk at the JSTL code. thanks again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts 1.2.0 Test Build available
Martin Cooper [EMAIL PROTECTED] wrote: The Struts 1.2.0 Test Build is now available here: Excellent:) http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. Is there a web page that describes the process by which feedback is collected? Thanks, Oswald -- Martin Cooper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail
RE: [ANNOUNCE] Struts 1.2.0 Test Build available
Ah I see. Its just the jars, tlds, dtds necessary for a struts app, sans docs. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 13:52 To: Struts Users Mailing List Subject: RE: [ANNOUNCE] Struts 1.2.0 Test Build available Cool bananas! Many thanks to the struts team for all the work they have put into this build. :-) Whats the lib archive for? -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 13:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts 1.2.0 Test Build available The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - 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: [ANNOUNCE] Struts 1.2.0 Test Build available
Cool bananas! Many thanks to the struts team for all the work they have put into this build. :-) Whats the lib archive for? -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 13:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts 1.2.0 Test Build available The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - 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]
[ANNOUNCE] Struts 1.2.0 Test Build available
The Struts 1.2.0 Test Build is now available here: http://www.apache.org/~martinc/struts/v1.2.0/ This is the first Struts build being made available following the same test-and-release process that has been used successfully by the Tomcat team for some time. It is *not* an official Apache release. Once feedback has been collected on the stability and general quality of this build, a determination will be made as to whether it should be promoted to Alpha status. -- Martin Cooper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit test cases for struts
Hi, Try this - http://www.strutstestcase.sourceforge.net/ This is a testing framework extending JUnit. Regards, Janarthan S. Jitender Kumar C [EMAIL PROTECTED] wrote: Can anybody help me how I can proceed with writing JUnit Test cases for Struts Applications. Can I follow the same procedure as if we write for the simple classes or Should I implement any special classes of any 3rd party package. Dont' We need framework for running our action class execute method in test classes? Please, help me how I shall proceed with! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.
JUnit test cases for struts
Can anybody help me how I can proceed with writing JUnit Test cases for Struts Applications. Can I follow the same procedure as if we write for the simple classes or Should I implement any special classes of any 3rd party package. Dont' We need framework for running our action class execute method in test classes? Please, help me how I shall proceed with! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JUnit test cases for struts
http://strutstestcase.sourceforge.net/ -Original Message- From: Jitender Kumar C [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 12:19 PM To: Struts Users Mailing List Subject: JUnit test cases for struts Can anybody help me how I can proceed with writing JUnit Test cases for Struts Applications. Can I follow the same procedure as if we write for the simple classes or Should I implement any special classes of any 3rd party package. Dont' We need framework for running our action class execute method in test classes? Please, help me how I shall proceed with! - 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]
STC - How Can I test multiple Actions in same method
Hi, StrutsTestCase documentation says we can test multiple Actions in same method, by calling setRequestPathInfo() and actionPerform() multiple times within the same method. I am also calling clearRequestparameters() after every perform method. But I am unable to execute the second Action. Below is my code : addRequestParameter(j_username, rkulkarni); addRequestParameter(j_password, webconnect); addRequestParameter(mode, q1Ra04kE3cDo); setRequestPathInfo(/login); actionPerform(); // I am able to execute till here this.clearRequestParameters(); setRequestPathInfo(/authenticateUser); // unable to execute actionPerform(); this.clearRequestParameters(); setRequestPathInfo(/logout); actionPerform(); this.verifyForward(logoutsuccess); } TIA, Ravi kulkarni.
test
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
not true. I've seen web-apps that use strictly html (not a line of JavaScript) and look very dynamic and responsive (one app reports its users are more happy with the html-version than with the smalltalk fat client solution (with the same functionality)). Unfortunately these apps are company internal intranet-webapps, that cannot be shown to the outside. It is basically a way of thinking. Remember what we usually hate about stuff like M$ Office? - The UI is overkill. Way too much unnecessary stuff. Give the users a FAST but very simple and clean (forget about animated gif's,...) UI, make it intuitively (NO learning curve) and they will love it. hth Alexander PS: These apps are easier to be tested... (to bring us back on the original trail) -Original Message- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: Freitag, 23. Januar 2004 00:01 To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts if the front end to your application is strictly browser based then JavaScript will more than likely play a role in the application. Same as if you were to use a Swing front end you would more than likely have to make use of eventlisteners. When I hear someone say you shouldn't use JavaScript (or something similar) in a browser based application, I usually find out that they really cannot distinguish the separate components of an application and how they interact with each other and the user. I especially like the I somehow dislike statements.. You dislike something but can't figure out why? Sounds like upper management material to me. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:42 PM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts Maybe I am not smart enough for my applications (order entry, inventory, etc.) I just don't see how to give any real functionality in the application space without JavaScript. Some issues where I don't see a work around for which are intrisic to all the applications I am working on. 1) The user is entering items. User needs dynamic feedback as to to how much is entered so correctness of data entry can be determined. 2) User can't remember a code from a 'large' list and needs to look it up and return to where he was with the correct value filled in. Perhaps it can be done with some fancy footwork with actions but... 3) Menus, yes there are plenty of static menus but all the real ones are javascript, i.e. coolmenus cannot be tested with the existing test tools. Menu's are not required to be tested but it would be nice. Edgar -Original Message- From: Ashikuzzaman [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 1:25 PM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I somehow dislike JavaScript from the very beginning. I try my best to avoid it in big projects and so far successful. :-{ Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - 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: Unit Test in struts
Could you share with us how you worked around some of my issues, i.e. The user is entering items. User needs dynamic feedback as to to how much is entered so correctness of data entry can be determined. Thanks Edgar -Original Message- From: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 3:37 AM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts not true. I've seen web-apps that use strictly html (not a line of JavaScript) and look very dynamic and responsive (one app reports its users are more happy with the html-version than with the smalltalk fat client solution (with the same functionality)). Unfortunately these apps are company internal intranet-webapps, that cannot be shown to the outside. It is basically a way of thinking. Remember what we usually hate about stuff like M$ Office? - The UI is overkill. Way too much unnecessary stuff. Give the users a FAST but very simple and clean (forget about animated gif's,...) UI, make it intuitively (NO learning curve) and they will love it. hth Alexander PS: These apps are easier to be tested... (to bring us back on the original trail) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
On our intranet application, we make a round trip to the server everytime the user enters a piece of data. This sounds like it would be dreadfully slow, but in practise it isn't. Internally, we have bandwidth to spare and we keep our pages fairly streamlined (need to switch to CSS, so that we can shrink them even more, but they're not bad even now). So our users get their dynamic feedback and we threw out JavaScript ... a win-win situation if I ever heardof one. :-) Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 7:26 AM To: 'Jesse Alexander (KAID 11)'; 'Struts Users Mailing List' Subject: RE: Unit Test in struts Could you share with us how you worked around some of my issues, i.e. The user is entering items. User needs dynamic feedback as to to how much is entered so correctness of data entry can be determined. Thanks Edgar -Original Message- From: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 3:37 AM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts not true. I've seen web-apps that use strictly html (not a line of JavaScript) and look very dynamic and responsive (one app reports its users are more happy with the html-version than with the smalltalk fat client solution (with the same functionality)). Unfortunately these apps are company internal intranet-webapps, that cannot be shown to the outside. It is basically a way of thinking. Remember what we usually hate about stuff like M$ Office? - The UI is overkill. Way too much unnecessary stuff. Give the users a FAST but very simple and clean (forget about animated gif's,...) UI, make it intuitively (NO learning curve) and they will love it. hth Alexander PS: These apps are easier to be tested... (to bring us back on the original trail) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - 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: Unit Test in struts
I have spent a fair amount of time with WebTest and HttpUnit. The major issues with both of these are JavaScript related. For example if you use JavaScript to populate select lists or html objects they are not available in WebTest or HttpUnit (HttpUnit is a little better since you have finer grained control). How does jWebUnit compare? Thanks. Edgar -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:26 PM To: Struts Users Mailing List Subject: RE: Unit Test in struts you should try jWebUnit. i like it a lot. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
I use a fair amount of JavaScript in my apps, and what I've found is that the best thing to do is this: Write your app so it can be tested (and used) with JavaScript turned off. Works for me! Matt -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:49 AM To: Struts Users Mailing List Subject: RE: Unit Test in struts I have spent a fair amount of time with WebTest and HttpUnit. The major issues with both of these are JavaScript related. For example if you use JavaScript to populate select lists or html objects they are not available in WebTest or HttpUnit (HttpUnit is a little better since you have finer grained control). How does jWebUnit compare? Thanks. Edgar -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:26 PM To: Struts Users Mailing List Subject: RE: Unit Test in struts you should try jWebUnit. i like it a lot. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004 - 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: Unit Test in struts
I wish I had the luxury. Edgar -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:42 AM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I use a fair amount of JavaScript in my apps, and what I've found is that the best thing to do is this: Write your app so it can be tested (and used) with JavaScript turned off. Works for me! Matt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
I somehow dislike JavaScript from the very beginning. I try my best to avoid it in big projects and so far successful. :-{ Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 11:56 PM To: 'Matt Raible'; 'Struts Users Mailing List' Subject: RE: Unit Test in struts I wish I had the luxury. Edgar -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:42 AM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I use a fair amount of JavaScript in my apps, and what I've found is that the best thing to do is this: Write your app so it can be tested (and used) with JavaScript turned off. Works for me! Matt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - 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: Unit Test in struts
Maybe I am not smart enough for my applications (order entry, inventory, etc.) I just don't see how to give any real functionality in the application space without JavaScript. Some issues where I don't see a work around for which are intrisic to all the applications I am working on. 1) The user is entering items. User needs dynamic feedback as to to how much is entered so correctness of data entry can be determined. 2) User can't remember a code from a 'large' list and needs to look it up and return to where he was with the correct value filled in. Perhaps it can be done with some fancy footwork with actions but... 3) Menus, yes there are plenty of static menus but all the real ones are javascript, i.e. coolmenus cannot be tested with the existing test tools. Menu's are not required to be tested but it would be nice. Edgar -Original Message- From: Ashikuzzaman [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 1:25 PM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I somehow dislike JavaScript from the very beginning. I try my best to avoid it in big projects and so far successful. :-{ Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
if the front end to your application is strictly browser based then JavaScript will more than likely play a role in the application. Same as if you were to use a Swing front end you would more than likely have to make use of eventlisteners. When I hear someone say you shouldn't use JavaScript (or something similar) in a browser based application, I usually find out that they really cannot distinguish the separate components of an application and how they interact with each other and the user. I especially like the I somehow dislike statements.. You dislike something but can't figure out why? Sounds like upper management material to me. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:42 PM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts Maybe I am not smart enough for my applications (order entry, inventory, etc.) I just don't see how to give any real functionality in the application space without JavaScript. Some issues where I don't see a work around for which are intrisic to all the applications I am working on. 1) The user is entering items. User needs dynamic feedback as to to how much is entered so correctness of data entry can be determined. 2) User can't remember a code from a 'large' list and needs to look it up and return to where he was with the correct value filled in. Perhaps it can be done with some fancy footwork with actions but... 3) Menus, yes there are plenty of static menus but all the real ones are javascript, i.e. coolmenus cannot be tested with the existing test tools. Menu's are not required to be tested but it would be nice. Edgar -Original Message- From: Ashikuzzaman [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 1:25 PM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I somehow dislike JavaScript from the very beginning. I try my best to avoid it in big projects and so far successful. :-{ Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004 - 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]
Unit Test in struts
Hi there! I've heard about a tool (like JUnit) but especific to be used with struts, where I can test my actions, forms and jsp pages, problem is ... I cant rememeber the name, does anyone knows about it? thnx Vinicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unit Test in struts
Google: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Unit+Test+In+Struts I believe you want: http://strutstestcase.sourceforge.net/ but I could be wrong. robert -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: Unit Test in struts Hi there! I've heard about a tool (like JUnit) but especific to be used with struts, where I can test my actions, forms and jsp pages, problem is ... I cant rememeber the name, does anyone knows about it? thnx Vinicius - 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: Unit Test in struts
You could be thinking of StrutsTestCase but I am not sure if it will test your JSP pages? http://strutstestcase.sourceforge.net/ To test web pages you could look at Canoo WebTest http://webtest.canoo.com/webtest/manual/WebTestHome.html HTH Shane -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, 22 January 2004 8:17 a.m. To: [EMAIL PROTECTED] Subject: Unit Test in struts Hi there! I've heard about a tool (like JUnit) but especific to be used with struts, where I can test my actions, forms and jsp pages, problem is ... I cant rememeber the name, does anyone knows about it? thnx Vinicius - 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: Unit Test in struts
Well, we use Junit for testing our business logic (you do have your business logic split out into seperate objects right?), HttpUnit for functional testing and JUnitPerf for performance/load testing. We use all of these right now and are very happy with them. (ok, the DOM stuff in HttpUnit sucks, but we wrote our own tag content utilities and forgot about converting HTML to a DOM model.) I'm actually just in the process of trying out StrutsTestCase (http://strutstestcase.sourceforge.net) for testing our actions. I got the examples to work, but I haven't gotten any further than that yet. Is this the tool that you were asking about? Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 1:17 PM To: [EMAIL PROTECTED] Subject: Unit Test in struts Hi there! I've heard about a tool (like JUnit) but especific to be used with struts, where I can test my actions, forms and jsp pages, problem is ... I cant rememeber the name, does anyone knows about it? thnx Vinicius - 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: Unit Test in struts
you should try jWebUnit. i like it a lot. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 12:52 PM To: Struts Users Mailing List Subject: RE: Unit Test in struts Well, we use Junit for testing our business logic (you do have your business logic split out into seperate objects right?), HttpUnit for functional testing and JUnitPerf for performance/load testing. We use all of these right now and are very happy with them. (ok, the DOM stuff in HttpUnit sucks, but we wrote our own tag content utilities and forgot about converting HTML to a DOM model.) I'm actually just in the process of trying out StrutsTestCase (http://strutstestcase.sourceforge.net) for testing our actions. I got the examples to work, but I haven't gotten any further than that yet. Is this the tool that you were asking about? Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 1:17 PM To: [EMAIL PROTECTED] Subject: Unit Test in struts Hi there! I've heard about a tool (like JUnit) but especific to be used with struts, where I can test my actions, forms and jsp pages, problem is ... I cant rememeber the name, does anyone knows about it? thnx Vinicius - 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: Unit Test in struts
Richard, What do you use jWebUnit to test? Simon -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 3:26 PM To: Struts Users Mailing List Subject: RE: Unit Test in struts you should try jWebUnit. i like it a lot. snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Stress Test Tool
Did anyone know a good tool for stress testing a struts app? I already tried dieseltest_1_0_21, jakarta-jmeter-1.9.1, jspider-0.5.0-dev, Microsoft Web Application Stress Tool but none of these tools fits my needs. Why is search for a stress test tool? 1. I wrote a simple registration form, which enters data in a database and LDAP and than confirms the registration process. 2. I wrote this registration forms in various ways e.g. using a simple ActionForm, DynaBeans, MapBackedForm (+ DB), etc. 3. And also I changed the model class to use iBatis, Hibernet or Pollmann. 4. Know I want to validate how they behave in a 'real live' environment. Any suggestions are appreciated? Oliver
Re: [OT] Stress Test Tool
Try the grinder. http://grinder.sf.net. On 木, 2004-01-01 at 19:31, Oliver Thiel wrote: Did anyone know a good tool for stress testing a struts app? I already tried dieseltest_1_0_21, jakarta-jmeter-1.9.1, jspider-0.5.0-dev, Microsoft Web Application Stress Tool but none of these tools fits my needs. Why is search for a stress test tool? 1.I wrote a simple registration form, which enters data in a database and LDAP and than confirms the registration process. 2.I wrote this registration forms in various ways e.g. using a simple ActionForm, DynaBeans, MapBackedForm (+ DB), etc. 3.And also I changed the model class to use iBatis, Hibernet or Pollmann. 4.Know I want to validate how they behave in a 'real live' environment. Any suggestions are appreciated? Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How test for attribute?
Hi, I am trying to test for the presence of a request attribute called PCAT. This works: if (request.getAttribute (PCAT) != null) This doesn't work: logic:present parameter=PCAT /logic:present What Struts logic tag would work? Thanks, Will - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts test cases
I am using it with Eclipse... I had to do some things in setUp() to make it work: /* * @see TestCase#setUp() */ public void setUp() throws Exception { super.setUp(); // STC2.0 requires the file context to be set, at least from // Eclipse. STC2.1.0 is supposed to fix this. setContextDirectory(new File(ILT/)); // Set the module to ilt; load ilt's config file this.setConfigFile(ilt, /WEB-INF/ilt/struts-config-ilt.xml); setRequestPathInfo(ilt, /Welcome); // login actionPerform(); } Tim Lucia -Original Message- From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 12:05 PM To: Struts Users Mailing List Subject: Struts test cases Hi, Has anyone used WSAD 5.0 with StrutsTestCase 2.0 ? I've only succeded to make it work after several operation which don't inspire me much confidence, or maybe is just me taking the hard way. Is there anyone there who used this and can give me some hints? Thanx, Ovidiu PS: For anyone interested here are the steps I took to make it work the way it does [1]. in setUp() add setContextDirectory(new File(D:\\workspace\\strutsJunit\\jsp)); setConfigFile(/WEB-INF/struts-config.xml); [2.]Replace the servletunit.ServletContextSimulator getRessource() method content with try { return this.getClass().getResource(path); } catch (Exception e) { return null; } [3.]execute ant to build a new strutstest-2.0.0.jar (the new one has 42K) [4.]replace in the /WEB-INF/lib/ strutstest-2.0.0.jar (38K) with the new one [5.]In your /WEB-INF/classes/ create a directory called /WEB-INF/ and copy struts-config.xml and web.xml there Run your tests - 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: Test tiles attribute presence
I think you would import the Tiles attribute into page scope, and then use the usual logic tags. -Ted. Franck wrote: Hi, In a tiles template I would like to test if a tiles attribute should be inserted or not : Example : td width=220 valign=top tiles:insert attribute=menu2 ignore=true/ /td I would like to code something like tiles:notEmpty attribute=menu2 td width=220 valign=top tiles:insert attribute=menu2 ignore=true/ /td /tiles:notEmpty Something to remplace the non-existing tiles:notEmpty ? Thanks -- Franck Lefebure - 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 tiles attribute presence
Hi, In a tiles template I would like to test if a tiles attribute should be inserted or not : Example : td width=220 valign=top tiles:insert attribute=menu2 ignore=true/ /td I would like to code something like tiles:notEmpty attribute=menu2 td width=220 valign=top tiles:insert attribute=menu2 ignore=true/ /td /tiles:notEmpty Something to remplace the non-existing tiles:notEmpty ? Thanks -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts test cases
Hi, Has anyone used WSAD 5.0 with StrutsTestCase 2.0 ? I've only succeded to make it work after several operation which don't inspire me much confidence, or maybe is just me taking the hard way. Is there anyone there who used this and can give me some hints? Thanx, Ovidiu PS: For anyone interested here are the steps I took to make it work the way it does [1]. in setUp() add setContextDirectory(new File(D:\\workspace\\strutsJunit\\jsp)); setConfigFile(/WEB-INF/struts-config.xml); [2.]Replace the servletunit.ServletContextSimulator getRessource() method content with try { return this.getClass().getResource(path); } catch (Exception e) { return null; } [3.]execute ant to build a new strutstest-2.0.0.jar (the new one has 42K) [4.]replace in the /WEB-INF/lib/ strutstest-2.0.0.jar (38K) with the new one [5.]In your /WEB-INF/classes/ create a directory called /WEB-INF/ and copy struts-config.xml and web.xml there Run your tests - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[TEST] Ping
Pls excuse this msg. Just testing something related to posting to the list. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Using c:if to test if collection is empty
c:if test=${! empty products} ... Quoting Ajay Patil [EMAIL PROTECTED]: Hi, I am trying to use the JSTL tag to test if a collection is empty. In terms of java code, I would like to write.. if (products != null products.size() 1) { .. } I have written the following in the JSP. c:if test={! empty products} ... /c:if The above isnt working. The test always fails even if the products collection has size = 1. It will be of great help to me, if someone can point out the correct way of writing the tag. Thanks, Ajay -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Using c:if to test if collection is empty
Hi, I am trying to use the JSTL tag to test if a collection is empty. In terms of java code, I would like to write.. if (products != null products.size() 1) { .. } I have written the following in the JSP. c:if test={! empty products} ... /c:if The above isnt working. The test always fails even if the products collection has size = 1. It will be of great help to me, if someone can point out the correct way of writing the tag. Thanks, Ajay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
Hi, Is there any way to get the URLs automatically? I mean, how can we obtain the URL navigating through the application? If we need to do a string test, we will nedd dozens of URLs, with a lot of parameters, and even we use frames, so the number of URLs grows... Thanks a lot... Jose R. Díaz -Mensaje original- De: Jerry Jalenak [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de noviembre de 2003 16:56 Para: 'Struts Users Mailing List' Asunto: RE: [OT] Stress Test David, Nothing. Nada. Zip. ZIlch. The logs show basically no response; from the client perspective the web app simply stops responding. I suspect I've either got a memory leak, or a database connectivity issue. Hopefully I can stress test this thing enough today to identify where in the code it fails. Once I know where it fails I should be able to fix it. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:52 AM To: Struts Users Mailing List Subject: RE: [OT] Stress Test So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
I use Jmeter for this. Works very nicely. Assuming your application is easily scriptable, you can record a series of actions (via the built in proxy) and replay them in a very short time. It is much easier to use than QA load and about as easy to use as M$ webcat. It is, however about as flexible as QALoad and about much more flexible than M$ webcat. My $0.02 worse is better -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:56 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Stress Test David, Nothing. Nada. Zip. ZIlch. The logs show basically no response; from the client perspective the web app simply stops responding. I suspect I've either got a memory leak, or a database connectivity issue. Hopefully I can stress test this thing enough today to identify where in the code it fails. Once I know where it fails I should be able to fix it. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:52 AM To: Struts Users Mailing List Subject: RE: [OT] Stress Test So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Stress Test
Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
I stress-tested our app with a combination of HttpUnit and JUnitPerf. My test was designed to see what the maximum throughput was, rather than testing longevity, but the basic principles should be the same. I had multiple simulated users, logging in. each in independent sessions, and then running unique data through the application. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
I use JMeter for this sort of thing. It's JSession aware which makes life a bit easier. Paul -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 24 November 2003 15:05 To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Stress Test
OpenSTA works for me. Jerry Jalenak wrote: Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
Simon, Paul, and Vic - Thanks for the suggestions. One initial glance it looks like JMeter will do what I want, so I'm going to head down that path 8-) Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Stress Test
Simon Do you prefer JunitPerf to JProbe or Clover? Thanks, Martin - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:11 AM Subject: RE: [OT] Stress Test I stress-tested our app with a combination of HttpUnit and JUnitPerf. My test was designed to see what the maximum throughput was, rather than testing longevity, but the basic principles should be the same. I had multiple simulated users, logging in. each in independent sessions, and then running unique data through the application. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
I must admit that I have not tried JProbe or Clover, so I can't help there. I liked JUnitPerf for the task that I had. I originally wanted to use JMeter, but was unable to figure out quickly enough how to have unique test data for each simulated user, which was crucial for the test that I wanted to run. Also, the tool had to work from within Ant, which both JUnitPerf and JMeter will do. Simon -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:32 PM To: Struts Users Mailing List Subject: Re: [OT] Stress Test Simon Do you prefer JunitPerf to JProbe or Clover? Thanks, Martin - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:11 AM Subject: RE: [OT] Stress Test I stress-tested our app with a combination of HttpUnit and JUnitPerf. My test was designed to see what the maximum throughput was, rather than testing longevity, but the basic principles should be the same. I had multiple simulated users, logging in. each in independent sessions, and then running unique data through the application. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Wisdom is not the prerogative of the academics. - Peter Chappell -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
Go for it. JMeter is a nice tool and the guys on the mailing list are as helpful as you could wish. I'm looking to try JMeter for some functional testing in the near future. Simon -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:26 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Stress Test Simon, Paul, and Vic - Thanks for the suggestions. One initial glance it looks like JMeter will do what I want, so I'm going to head down that path 8-) Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Stress Test
David, Nothing. Nada. Zip. ZIlch. The logs show basically no response; from the client perspective the web app simply stops responding. I suspect I've either got a memory leak, or a database connectivity issue. Hopefully I can stress test this thing enough today to identify where in the code it fails. Once I know where it fails I should be able to fix it. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 9:52 AM To: Struts Users Mailing List Subject: RE: [OT] Stress Test So after 6 hours, what do your log files (web server and java application server) show? Do they show struts actions being performed? Does it show out of memory errors? Anything like that? Regards, David -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 10:05 AM To: '[EMAIL PROTECTED]' Subject: [OT] Stress Test Hi All, I've got a problem with my current web app where it stops responding after about 6 hours. I need to set up a test environment and simulate multiple logon's so I can trap my way through the code and figure out where it is failing. I think there is a tool available that can be used to do this - HTTPerf (I think), but I'm not sure if this will do what I want. Does anyone have any experience with this? Thanks. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what is the right way to test whether execute() is called after validate()?
I'm sorry if this is too basic, I'm still really green. I'm validating a form. This form is used for adding and editing widgets. I use the same actionHandler, where I test a request parameter and set up the form accordingly. It builds my form object and either resets it for an add, or retrieves a widget from the DB and sticks it in my object. What I found was, when my validation failed on add or edit, it was still going thru the execute() method of my actionHandler and was therefore reset()ing on add or re-building my form object on edit. So, I put in something like this instead: if ((request.getParameter(Submit) == null) || (!request.getParameter(Submit).equals(Submit))) { if (request.getParameter(addEdit).equals(edit)) { form = buildCompanyForm(request.getParameter(id), request); } else { form = new CompanyForm(); form.reset(mapping, request); } } And it works, but testing whether Submit has been pressed seems kinda nasty. I'd like to learn a better way. Thanks in advance, Janice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
- Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 2:21 AM Subject: Re: Unit Test Actions Steven Woody wrote: I skimmed through the code, but dont get a concrete ideal. Does ProcessAction.java is a part of 'Scaffold'? Would you please point me to a full documentation about the project? Thanks! There's some coverage in the book, but it's really not documented outside of the source code. Sorry, what book? Ok, I'm abou to use WebTest. And, if not so boring I still want to ask, how do you compare WebTest with Fitness? Fitness is a general-purpose testing framework, with a special emphasis on acceptance testing. WebTest is focused on testing web sites. Period. A WebTest could be used as an client-level acceptance test, since it tests what the client's care about: the end result. But, a WebTest is not a replacement for a programmer's unit test. We need to catch most problems before they ever trickle down to the presentation. Unlike FitNess and JUnit, WebTest is more like an end-user application than an engineering framework. The elements you use are already defined. You don't run around creating Java subclasses. You just write the XML script and then keep it updated. But since it's just a script, it's easy to update. You explained it very clear, thank you! -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Steven Woody wrote: I skimmed through the code, but dont get a concrete ideal. Does ProcessAction.java is a part of 'Scaffold'? Would you please point me to a full documentation about the project? Thanks! There's some coverage in the book, but it's really not documented outside of the source code. Ok, I'm abou to use WebTest. And, if not so boring I still want to ask, how do you compare WebTest with Fitness? Fitness is a general-purpose testing framework, with a special emphasis on acceptance testing. WebTest is focused on testing web sites. Period. A WebTest could be used as an client-level acceptance test, since it tests what the client's care about: the end result. But, a WebTest is not a replacement for a programmer's unit test. We need to catch most problems before they ever trickle down to the presentation. Unlike FitNess and JUnit, WebTest is more like an end-user application than an engineering framework. The elements you use are already defined. You don't run around creating Java subclasses. You just write the XML script and then keep it updated. But since it's just a script, it's easy to update. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Steven Woody wrote: Ted, 1) How do you implement the Action Adapter? Derived from Action and make it composite a substential Action Adaptee object which know nothing about web stuff? If this is the case, I want to know what the Action Adaptee's execute() return? Actually, I want to know if or not the Action Adaptee get knowledge of forwarding. Thanks. There's this, for example. http://cvs.apache.org/viewcvs/jakarta-struts/contrib/scaffold/src/java/org/apache/struts/scaffold/ProcessAction.java?rev=HEADcontent-type=text/vnd.viewcvs-markup Though as adapters go, the ProcessAction is rather extreme. :) Basically, you bundle everything into a transfer object and hand that down to the business layer. Then the business layer hands another transfer object back. The (relatively new) Commons Chain Context is an ideal transfer object for this sort of thing. http://jakarta.apache.org/commons/sandbox/chain/ 2) I think I like the WebTest. Before use it, I still want to get some opinion from you about how do you compare WebTest and HttpTest. Thanks in advance. HttpUnit is a good thing if you have code based on the http package to test. I have very little of that of my own now-a-days, so HttpUnit isn't something I feel a need to use. WebTest exercises the actual pages. You can start using it from page one of your first storyboard. (Matter of a fact, started a new one today, and first thing I did was setup the WebTest.) Since it's run by an XML script, it's very easy to keep the WebTest up-to-date. And, it's something anyone can do, not just the Java engineers. HTH, Ted. -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
- Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 31, 2003 3:58 AM Subject: Re: Unit Test Actions Steven Woody wrote: Ted, 1) How do you implement the Action Adapter? Derived from Action and make it composite a substential Action Adaptee object which know nothing about web stuff? If this is the case, I want to know what the Action Adaptee's execute() return? Actually, I want to know if or not the Action Adaptee get knowledge of forwarding. Thanks. There's this, for example. http://cvs.apache.org/viewcvs/jakarta-struts/contrib/scaffold/src/java/org/apache/struts/scaffold/ProcessAction.java?rev=HEADcontent-type=text/vnd.viewcvs-markup Though as adapters go, the ProcessAction is rather extreme. :) Basically, you bundle everything into a transfer object and hand that down to the business layer. Then the business layer hands another transfer object back. I skimmed through the code, but dont get a concrete ideal. Does ProcessAction.java is a part of 'Scaffold'? Would you please point me to a full documentation about the project? Thanks! The (relatively new) Commons Chain Context is an ideal transfer object for this sort of thing. http://jakarta.apache.org/commons/sandbox/chain/ 2) I think I like the WebTest. Before use it, I still want to get some opinion from you about how do you compare WebTest and HttpTest. Thanks in advance. HttpUnit is a good thing if you have code based on the http package to test. I have very little of that of my own now-a-days, so HttpUnit isn't something I feel a need to use. WebTest exercises the actual pages. You can start using it from page one of your first storyboard. (Matter of a fact, started a new one today, and first thing I did was setup the WebTest.) Since it's run by an XML script, it's very easy to keep the WebTest up-to-date. And, it's something anyone can do, not just the Java engineers. HTH, Ted. Ok, I'm abou to use WebTest. And, if not so boring I still want to ask, how do you compare WebTest with Fitness? -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
StrutsTestCase includes a set of mock classes (that we *really* should integrate into the core) that work without Cactus and another set that work with Cactus. The fork takes places at the highest level, so you can start with one and then switch to the other, if need be. With StrutsTestCase, you can write some very fine-grained tests against the Struts configuration. I'm not aware of any other tool that works in the same way. Though, in my own work now, I tend to write standard JUnit tests against the business layer, and then use Canoo WebTest http://webtest.canoo.com/ against the web layer. But, that's because my actions have devolved to adapters, and so there less and less to test at this level. Though, I do think we should be using StrutsTestCase to prove that the standard Actions work as expected. The nice thing about WebTest is that it runs against the actual pages, and it is quite agile. It's driven by a XML document that any savvy person can maintain, including page designers. You have to have the server running, but it is a very light tool and the tests run quickly. No server-side configuration is required, and it's not Java or JSP specific. You can write Webtests against a HTML storyboard (or wireframe), so that you are test-driven from square one. Good stuff! HTH, Ted. Steven Woody wrote: How does this compare to Cactus ? To my understand, it can test Actions w/o a container while Cactus can test Actions in-container. Right? - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:12 PM Subject: Re: Unit Test Actions Steven Woody wrote: Can I unit test Action subclasses with JUnit without running of a Servlet container? http://strutstestcase.sourceforge.net/ -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Ted, 1) How do you implement the Action Adapter? Derived from Action and make it composite a substential Action Adaptee object which know nothing about web stuff? If this is the case, I want to know what the Action Adaptee's execute() return? Actually, I want to know if or not the Action Adaptee get knowledge of forwarding. Thanks. 2) I think I like the WebTest. Before use it, I still want to get some opinion from you about how do you compare WebTest and HttpTest. Thanks in advance. - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 6:59 PM Subject: Re: Unit Test Actions StrutsTestCase includes a set of mock classes (that we *really* should integrate into the core) that work without Cactus and another set that work with Cactus. The fork takes places at the highest level, so you can start with one and then switch to the other, if need be. With StrutsTestCase, you can write some very fine-grained tests against the Struts configuration. I'm not aware of any other tool that works in the same way. Though, in my own work now, I tend to write standard JUnit tests against the business layer, and then use Canoo WebTest http://webtest.canoo.com/ against the web layer. But, that's because my actions have devolved to adapters, and so there less and less to test at this level. Though, I do think we should be using StrutsTestCase to prove that the standard Actions work as expected. The nice thing about WebTest is that it runs against the actual pages, and it is quite agile. It's driven by a XML document that any savvy person can maintain, including page designers. You have to have the server running, but it is a very light tool and the tests run quickly. No server-side configuration is required, and it's not Java or JSP specific. You can write Webtests against a HTML storyboard (or wireframe), so that you are test-driven from square one. Good stuff! HTH, Ted. Steven Woody wrote: How does this compare to Cactus ? To my understand, it can test Actions w/o a container while Cactus can test Actions in-container. Right? - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:12 PM Subject: Re: Unit Test Actions Steven Woody wrote: Can I unit test Action subclasses with JUnit without running of a Servlet container? http://strutstestcase.sourceforge.net/ -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Yes, you can and that is what is true definition of unit testing. My two cents: Look for In Container testing while testing Servlets, EJBs, and Struts (Actions). It may be little difficult to generate all objects generated automatically by containers (Servlet/EJB) and frameworks(Struts).. Steven Woody wrote: Hi, list Can I unit test Action subclasses with JUnit without running of a Servlet container? -- Steven Woody [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unit Test Action
Hi, list Can I unit test Action subclasses with JUnit without running of a Servlet container? -- Steven Woody [EMAIL PROTECTED]
Re: Unit Test Actions
- Original Message - From: Manish Singla [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 3:46 PM Subject: Re: Unit Test Actions Yes, you can and that is what is true definition of unit testing. My two cents: Look for In Container testing while testing Servlets, EJBs, and Struts (Actions). It But the In Container testing IMHO means it need to run a container. So, to test a Action, I have to equipment a In Container testing suit such as Cactus which run a Tomcat, right? may be little difficult to generate all objects generated automatically by containers (Servlet/EJB) and frameworks(Struts).. ... So, what do i do ? Steven Woody wrote: Hi, list Can I unit test Action subclasses with JUnit without running of a Servlet container? -- Steven Woody [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Steven Woody wrote: Can I unit test Action subclasses with JUnit without running of a Servlet container? http://strutstestcase.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unit Test Actions
Thanks. How does this compare to Cactus ? To my understand, it can test Actions w/o a container while Cactus can test Actions in-container. Right? - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:12 PM Subject: Re: Unit Test Actions Steven Woody wrote: Can I unit test Action subclasses with JUnit without running of a Servlet container? http://strutstestcase.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unit Test Actions
Hi, list Can I unit test Action subclasses with JUnit without running of a Servlet container? -- Steven Woody [EMAIL PROTECTED]
EVALUATION of TEST FRAMEWORKS
I have to choose a testing framework for my webapp( written using Struts. I am currently reviewing documentation on CACTUS - especially StrutsTestCase and on the other hand HTTPUnit. Is that what people use to test medium size web-applications. Can someone with experience point out some advantages and disadvantages of using one or the other. Is there any other framework that you people use? Thanks a lot, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EVALUATION of TEST FRAMEWORKS
There are two tools from mercury AstraLoadTest AstraQuickTest You can give it a test. Best Regards, Benz Lim -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 3:08 PM To: Struts Users Mailing List Subject: EVALUATION of TEST FRAMEWORKS I have to choose a testing framework for my webapp( written using Struts. I am currently reviewing documentation on CACTUS - especially StrutsTestCase and on the other hand HTTPUnit. Is that what people use to test medium size web-applications. Can someone with experience point out some advantages and disadvantages of using one or the other. Is there any other framework that you people use? Thanks a lot, Todor - 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: [Struts Workflow] Test application - why two actions for loop? [solved]
Thanks Mathias! That makes everything clear. I think you should do that documentation update, it's so crucial to workflow security and at least I didn't get that point without asking :)) Dankeschön nochmals! Axel On 2003-10-21 at 09:21:08 +0200, Matthias Bauer wrote: Axel, your suggestion unforunately does not work as you would expect. The action definition you are suggesting defines nextState=2 and newState=2. This means, that after the action has been executed, the wf1 is in state 2. Thus, any action that does not change the state of wf1 can be executed after this action, because the nextState definition is satisfied, if the state does not change. Maybe I should update the documentation with a rule like this: Never set a newState definition to the same value as one of the nextState definitions, as this basically leaves the nextState definition effectless. Hope that answers your question. --- Matthias Axel Gross wrote: Well. If you take a look at the struts-config.xml you'll see that there are two actions defined: wf1St2Loop and wf1St2LoopEnd The second is just a forward changing workflow values. I just can't figure out a reason, why there are two instead of one simpler action. for your convenience, original relevant part of struts-config.xml: !-- SNIPPET -- action path=/wf1St2Transition type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=1 / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2_loop / set-property property=nextState value=2 / forward name=success path=/wf1St2LoopEnd.do / /action action path=/wf1St2LoopEnd forward=/WEB-INF/web/inHome.jsp set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2_loop / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / /action action path=/wf1St3Transition type=com.livinglogic.struts.workflow.AddSessionAttributeCleanupAction parameter=pathWf1 set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=newState value=3 / forward name=success path=/wf1St3TransitionPart2.do / /action !-- SNIPPET END -- What I suggest is killing the '2_loop' state: !-- SNIPPET -- action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2 / set-property property=nextState value=2 / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action !-- SNIPPET END -- On 2003-10-20 at 17:07:31 +0200, [EMAIL PROTECTED] wrote: can you elaborate a little? Too less info :-(( -Original Message- From: Axel Gross [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: [Struts Workflow] Test application - why two actions for loop? Hello! I had a close look to the test application of the Struts Workflow Extension (v 1.0.3). I still couldn't grasp though, why for loop in workflow wf1 there is a need for 2 actions. Maybe you could help me finding out: Wouldn't it be enough to have prevState=2 nextState=2 nextState=3 forward success - inHome.jsp thanks in advance, Axel Gross - 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] -- http://www.iaeste.at/~kamikaze/signature.html
Re: EVALUATION of TEST FRAMEWORKS
On Wed, 22 Oct 2003 09:07:46 +0200, Todor Sergueev Petkov wrote: Is there any other framework that you people use? Here's some instructions on how to setup XTest for your Java project. http://xtest.netbeans.org/XTest4Java.html XTest is an opensource automated testing framework used for testing Java products through JUnit, HttpUnit (and hopefully soon Cactus) type tests, and publishing the results into html pages. It integrates testing from multiple platforms, products, product versions, and test types, to provide upto date comprehensive statistical information about the status of your java code. I've been using this at 'De norske Bokklubbene' where, along with different junit test types (unit, httpUnit, cactus), and platforms, tests are also grouped (by using the department attribute) into 'Weekly Build', 'Nightly Build', and 'CVS-user' builds corresponding to each cvs commit per user (using cvsroot/loginfo). This makes the production environment very resistant to regression because regressions can quickly be traced to the exact cvs commit and user through the published results of XTest. The document is still beta, so feedback would be appreciated. Mick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EVALUATION of TEST FRAMEWORKS
I would have thought it depends on what type of testing you are doing??? IOW is it [using XP terminology] Programmer Testing (was called Unit Testing) or Acceptance Testing?? One that I have had a quick look at and was recommended to me is Canoo WebTest http://webtest.canoo.com/webtest/manual/WebTestHome.html It calls web pages and verifies the results, giving comprehensive reports on success and failure. Shane -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 October 2003 8:08 p.m. To: Struts Users Mailing List Subject: EVALUATION of TEST FRAMEWORKS I have to choose a testing framework for my webapp( written using Struts. I am currently reviewing documentation on CACTUS - especially StrutsTestCase and on the other hand HTTPUnit. Is that what people use to test medium size web-applications. Can someone with experience point out some advantages and disadvantages of using one or the other. Is there any other framework that you people use? Thanks a lot, Todor - 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: [Struts Workflow] Test application - why two actions for loop?
Axel, your suggestion unforunately does not work as you would expect. The action definition you are suggesting defines nextState=2 and newState=2. This means, that after the action has been executed, the wf1 is in state 2. Thus, any action that does not change the state of wf1 can be executed after this action, because the nextState definition is satisfied, if the state does not change. Maybe I should update the documentation with a rule like this: Never set a newState definition to the same value as one of the nextState definitions, as this basically leaves the nextState definition effectless. Hope that answers your question. --- Matthias Axel Gross wrote: Well. If you take a look at the struts-config.xml you'll see that there are two actions defined: wf1St2Loop and wf1St2LoopEnd The second is just a forward changing workflow values. I just can't figure out a reason, why there are two instead of one simpler action. for your convenience, original relevant part of struts-config.xml: !-- SNIPPET -- action path=/wf1St2Transition type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=1 / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2_loop / set-property property=nextState value=2 / forward name=success path=/wf1St2LoopEnd.do / /action action path=/wf1St2LoopEnd forward=/WEB-INF/web/inHome.jsp set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2_loop / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / /action action path=/wf1St3Transition type=com.livinglogic.struts.workflow.AddSessionAttributeCleanupAction parameter=pathWf1 set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=newState value=3 / forward name=success path=/wf1St3TransitionPart2.do / /action !-- SNIPPET END -- What I suggest is killing the '2_loop' state: !-- SNIPPET -- action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2 / set-property property=nextState value=2 / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action !-- SNIPPET END -- On 2003-10-20 at 17:07:31 +0200, [EMAIL PROTECTED] wrote: can you elaborate a little? Too less info :-(( -Original Message- From: Axel Gross [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: [Struts Workflow] Test application - why two actions for loop? Hello! I had a close look to the test application of the Struts Workflow Extension (v 1.0.3). I still couldn't grasp though, why for loop in workflow wf1 there is a need for 2 actions. Maybe you could help me finding out: Wouldn't it be enough to have prevState=2 nextState=2 nextState=3 forward success - inHome.jsp thanks in advance, Axel Gross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Workflow] Test application - why two actions for loop?
Hello! I had a close look to the test application of the Struts Workflow Extension (v 1.0.3). I still couldn't grasp though, why for loop in workflow wf1 there is a need for 2 actions. Maybe you could help me finding out: Wouldn't it be enough to have prevState=2 nextState=2 nextState=3 forward success - inHome.jsp thanks in advance, Axel Gross -- http://www.iaeste.at/~kamikaze/signature.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Struts Workflow] Test application - why two actions for loop?
can you elaborate a little? Too less info :-(( -Original Message- From: Axel Gross [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: [Struts Workflow] Test application - why two actions for loop? Hello! I had a close look to the test application of the Struts Workflow Extension (v 1.0.3). I still couldn't grasp though, why for loop in workflow wf1 there is a need for 2 actions. Maybe you could help me finding out: Wouldn't it be enough to have prevState=2 nextState=2 nextState=3 forward success - inHome.jsp thanks in advance, Axel Gross -- http://www.iaeste.at/~kamikaze/signature.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts Workflow] Test application - why two actions for loop?
Well. If you take a look at the struts-config.xml you'll see that there are two actions defined: wf1St2Loop and wf1St2LoopEnd The second is just a forward changing workflow values. I just can't figure out a reason, why there are two instead of one simpler action. for your convenience, original relevant part of struts-config.xml: !-- SNIPPET -- action path=/wf1St2Transition type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=1 / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2_loop / set-property property=nextState value=2 / forward name=success path=/wf1St2LoopEnd.do / /action action path=/wf1St2LoopEnd forward=/WEB-INF/web/inHome.jsp set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2_loop / set-property property=newState value=2 / set-property property=nextState value=2_loop / set-property property=nextState value=3 / /action action path=/wf1St3Transition type=com.livinglogic.struts.workflow.AddSessionAttributeCleanupAction parameter=pathWf1 set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=newState value=3 / forward name=success path=/wf1St3TransitionPart2.do / /action !-- SNIPPET END -- What I suggest is killing the '2_loop' state: !-- SNIPPET -- action path=/wf1St2Loop type=com.livinglogic.struts.workflow.test.Wf1St2Action set-property property=authClass value=com.livinglogic.struts.workflow.test.TestAuthentication / set-property property=primaryWorkflow value=wf1 / set-property property=prevState value=2 / set-property property=newState value=2 / set-property property=nextState value=2 / set-property property=nextState value=3 / forward name=success path=/WEB-INF/web/inHome.jsp / /action !-- SNIPPET END -- On 2003-10-20 at 17:07:31 +0200, [EMAIL PROTECTED] wrote: can you elaborate a little? Too less info :-(( -Original Message- From: Axel Gross [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: [Struts Workflow] Test application - why two actions for loop? Hello! I had a close look to the test application of the Struts Workflow Extension (v 1.0.3). I still couldn't grasp though, why for loop in workflow wf1 there is a need for 2 actions. Maybe you could help me finding out: Wouldn't it be enough to have prevState=2 nextState=2 nextState=3 forward success - inHome.jsp thanks in advance, Axel Gross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test mail
thanks -raj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ignore me: test
Well, I had a disclaimer in the subject, but since you are here, I've been trying to send messages since 1100 CST and not one has hit the list. Things usually don't take this long, 10 min tops. I'm sending this test mail to see if it has anything to do with my mail client settings. --m - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Test
Sorry I have not been able to send! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Test
I didn't get it.. can you try it again? -Original Message- From: Stephan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:26 PM To: [EMAIL PROTECTED] Subject: [OT] Test Sorry I have not been able to send! - 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
Sorry testing, I have not been able to connect Stephan _ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: login test in a jsp page - any suggestions
isn't it should be better to put his verification at actions? maybe a common super action could validade it, but I think that the jsp should be the last place to put it. Ideally, the jsp's are not even exposed to clients, making the access the view only through actions. David Thielen wrote: Hi; I want to put a test in every jsp page to see if the user is logged in. And if not, to forward them to login.jsp. Is there any way to do this other than putting java code in my jsp? I'm hoping there is some struts system like html:check app=MyAction/. (Yes, I can have everything be an action that does this test and then goes to the jsp page - but in that case what if they type the path for the jsp page directly?) thanks - dave -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]