Re: Unit testing a struts application

2002-09-26 Thread Jim Young

Cactus works great with Struts. Just go to there web page 
http://jakarta.apache.org/cactus/index.html and check out the documentation 
 examples. Join their user list, check the archives and if you still have 
questions ask the Cactus user group. You will also need to know all about 
JUnit - http://junit.org/index.htm

Jim

From: Daniel H. F. e Silva [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Unit testing a struts application
Date: Thu, 26 Sep 2002 06:14:13 -0700 (PDT)

Hi all,
  I am searching for possible improvements on my development process. One 
of greatest things i've
found is XP. I liked it very much.
  One of XP rules is about unit testing. So follows my question : How can i 
unit test a struts app?
I heard about Cactus (another Jakarta project). Does someone here have 
experience using it?
All kind of use cases would be a plus.

Best regards,
  Daniel.


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




Jim Young
Northern Objects Inc.
905 781-7019


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Distinct case in validate() with a form used in several page

2002-09-26 Thread Jim Young

Couldn't you create your actionFormBean and then create sub-classes for each 
different type of validation? Might give you a cleaner solution.

Jim


From: Vincent Berruchon [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Distinct case in validate() with a form used in  several page
Date: Thu, 26 Sep 2002 16:35:06 +0200

  I'd like to use an actionFormBean with a few JSP form page.
But I'll have to treat different cases in the validate of my 
actionFormBean...
So in validate(), I was thinking about looking at the name of the input JSP 
with ActionMapping.getInput()
( or perhaps the name of the current action to choose the right case, /w 
getType() ).

Is it an acceptable way to do that?
I coulds also use an property of the formBean perhaps...

Thanks


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




Jim Young
Northern Objects Inc.
905 781-7019


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Struts and high performance sites

2002-09-24 Thread Jim Young

We have a couple Struts applications in production. Using Struts as the 
front end, all transaction go through a Delegator level (session control) to 
stateless session EJBs, then passed to transaction processors and finally to 
different legacy backend systems. Before we could go into production we 
needed to stress test from the Delegator back to the legacy systems against 
the old C++ application. Using JUnit and JUnitPerf we simulated 286 
concurrent users, 45 transactions a second for 15 minutes.

The averages where; Delegator 48 milliseconds, EJBs 1 millisecond and 
transaction processor 54 milliseconds. This blew away the old C++ 
application. EJBs are definitely not a performance problem.

Back to the original question, all though we have a lot less concurrent 
users then you will have, performance using Struts has not been an issue at 
all. The Struts front-end is a lot faster then the old “home grown” one and 
was easier  faster to develop. We are now in the process of developing our 
3rd and 4th Struts applications. These will even be faster to develop 
because we are basically just creating new JSPs (different brands) and 
reusing 80%-90% of the existing data forms  actions.

Jim


From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Struts and high performance sites
Date: Tue, 24 Sep 2002 08:10:21 -0400

That's a ridiculous statement.  Of course EJBs scale - that's precisely 
what
the technology was designed for.

Mark

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 6:07 AM

V. Cekvenich,

 The slow part is DAO in J2EE (and ADO in .NET). Avoid any EJB, they do
 not scale.

I though EJBs were designed to allow scalling?


Regards,
Daniel


-Original Message-
From: news [mailto:[EMAIL PROTECTED]]On Behalf Of V. Cekvenich
Sent: Tuesday, September 24, 2002 5:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts and high performance sites


Not a high volume of users, and 7 transactions per second? Should fit on
a single medium box (if not a laptop) if you do it right.

You have to worry about creating objects if you write your own framework
(you can put beans in session or requests, and request is better
mostly), and then you have 2 projects, your app and a framework, and you
won't do better than the Struts team and what about framework bugs?
Also, with Struts, my clients are able to write several modules(pages)
per day per developers, how's that for  productivity or beating the
schedule?
Some of the  Struts sites are 50 times more concurrent users I have
worked on, no problem.

The slow part is DAO in J2EE (and ADO in .NET). Avoid any EJB, they do
not scale.

Some good choices is RowSet(I do metadata w/ reflection to auto gen SQL
updates - RowSet also avoids BO/DTO/VO mapping and GC), Resin, pgSQL,
Eclipse or CodeGuide IDE, Linux/KDE and J:Rockit VM or IBM VM (Sun VM
and Sun Inc. have issues). Sample good practices code on
http://basicPortal.sf.net, FREE!

(If you have a large app or large # users, let a mentor help. many are
on this list, it is cost effective, but not because of Struts only)

V.
Struts Mentor
917 345 1445 [EMAIL PROTECTED]
(Mentor's helps you do it faster/cheaper)


David Zimmerman wrote:
  Hi,
  we are building a webshop for a site with a high volume of users, 
approx.
800 concurrent users and 25k transactions per hour. We are going to use 
J2EE
as the ground platform. I am now considering some design choices where 
using
Struts is one of them. However I have some questions regarding the
performance of Struts. I know this issue has been up many times before but 
I
have never been able to find any satisfying answers, so...
 
  What, if any, overhead does the Struts controller generate? This 
question
must of course be seen in the context of writing your own controller or
using any other framework. However, what is Struts overhead?
 
  What overhead does the use of form beans generate (in the sense of 
objects
created, memory use, the use of reflection, speed)
 
  Custom tags (Struts' or other). Would they be applicable in a case like
this? Wouldn't there be a massive creation of objects for every request?
 
  Please help me out here! I really want your knowledge on this!
 
  Regards
  David Zimmerman
 
 
  
  Tired of all the SPAM in your inbox? Switch to LYCOS MAIL PLUS
  http://www.mail.lycos.com/brandPage.shtml?pageId=plus




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




Jim Young
Northern Objects Inc.
905 781-7019

Re: Question for using struts as our standard MVC framework

2002-09-12 Thread Jim Young
 and
   next year
   struts team is coming up with new version based in JSTL and will trash
all
   releases.
   I need some inputs from people here to make solid arguments for
   changing to
   struts.
   Thanks...
  
  
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, September 11, 2002 10:34 AM
   To: Struts Users Mailing List; Dariusz Wojtas
   Subject: RE: JDO example - rozpakowywac Commanderem
  
  
   Was there a question in there I missed?
  
   James Mitchell
   Software Engineer\Struts Evangelist
   Struts-Atlanta, the Open Minded Developer Network
   http://www.open-tools.org/struts-atlanta
  
  
  
  
-Original Message-
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 3:19 AM
To: Struts Users Mailing List
Subject: JDO example - rozpakowywac Commanderem
   
   
Wednesday, September 11, 2002, 6:55:25 AM, you wrote:
JM Sorry for the delay.  I've decided to post this on our website.
   
JM Please feel free to download and try it out.
   
JM
   http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources
   
JM If for some reason the site goes down, just send me an email
and I'll get it
JM to you.
   
   
   
   
JM James Mitchell
JM Software Engineer\Struts Evangelist
JM Struts-Atlanta, the Open Minded Developer Network
JM http://www.open-tools.org/struts-atlanta
   
   
   
   
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 10, 2002 3:06 PM
 To: Struts Users Mailing List
 Subject: [Announce] [New Extension]
ApplicationResources.properties from
 Database


 For anyone interested, I have finished implementing
   DBMessageResources
 which allows you to keep the key-value pairs (from your
 ApplicationResources.properties) in a single database table.

 You can load your property files into a table (generic schema
is provided)
 and with this extension, by only modifying message-resources in
the
 struts-config.xml your application will run WITHOUT ANY code
changes. (See
 the readme.txt file included)

 This extension uses OJB (http://jakarta.apache.org/ojb) O/R
   mapping for
 database configuration and connection pool management.

 I have included a modified version of the (1.1b2) struts-example 
to
 demonstrate.

 I have tested this with Struts 1.1b2, and I'm sure it will
work with 1.1b1
 (If anyone requires a 1.0.x compatible, I can look at that also)

 I will get this project available as soon as I work through some
 cvs issues
 on sf.net:

 If anyone is REALLY itching to get their hands on it sooner,
   send me a
 email.

 For those who were waiting, thanks for your patience.


 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://www.open-tools.org/struts-atlanta


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


   
   
JM --
JM To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   JM For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
  
   --
   Best regards,
Dariusz Wojtas mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





Jim Young
Northern Objects Inc.
905 781-7019


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: General Struts Question

2002-09-11 Thread Jim Young

No I doubt he is the Coach/GM of the Leafs or he would have traded Struts 
for Smalltalk 80.

But, since he is not the coach I am sure he checked out the resources page

http://jakarta.apache.org/struts/resources/index.html

Jim

From: Darren Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: General Struts Question
Date: Wed, 11 Sep 2002 14:35:08 -0400

Wait to October ... and get Chuck Cavaness' Programming Jakarta Struts
Good stuff.

BTW ... do you coach the Toronto Maple Leafs.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: September 11, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: General Struts Question


Does any know of any good books on struts that are available at the
moment... or websites for an introduction to the struts world


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




Jim Young
Northern Objects Inc.
905 781-7019


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]