Testing your Struts Application

2003-03-15 Thread Aaron O';Hara
Can anybody point out some good automated testing strategies for Struts-based applications? Ideally, I'd like to run automated tests that simulate an end user: 1) filling out a form and testing for success and expected failure 2) clicking on a url that brings up a result set I know I could unit t

RE: validate business data

2003-03-14 Thread Aaron O';Hara
Dan, In order to preserve a layered approach, there are 2 issues: 1) the display of errors 2) evaluating if an error has occurred In my Struts applications, I have a Business Logic Layer (BLL) that will always perform 2). In the Action class, I call the validation function to check for HTML for

RE: when should classes contain other objects?

2003-03-13 Thread Aaron O';Hara
Heather, It's hard to say if there is a right or wrong approach, but I'll let you know what I do and why. When deciding on an implementation, keep in mind the following factors and what priority they have: readability, maintainability, development time, operational speed, memory efficiency. For

RE: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-11 Thread Aaron O';Hara
the interfaces for home, remote and local. - Robert Aaron O'Hara wrote: >I know this question has probably been asked before, and that biased >publications have had their opinions on it, but I wanted to get some >feedback regarding some "real user experience" regarding the us

[OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread Aaron O';Hara
I know this question has probably been asked before, and that biased publications have had their opinions on it, but I wanted to get some feedback regarding some "real user experience" regarding the use of EJB in a web application used along with Struts. I am creating a web application and I have

RE: Examples anyone?

2001-09-07 Thread Aaron O';Hara
workman" being printed only once and getting a null pointer when you refered to the "task" iteration id. Bill Aaron O'Hara wrote: >The following is my code in the tags: > >The tasks for me: ><%=general.getTasks().size() %> > > workman! > > >

RE: Examples anyone?

2001-09-07 Thread Aaron O';Hara
of task objects in your iteration)? If so, try putting <%= task %> inside your iteration. Does it print out something like : com.razorfront.corporate.task.Task@2b835a , x number of times? Bill Keith Bacon wrote: >Maybe you need to use the struts tag > >not > >K

RE: Examples anyone?

2001-09-07 Thread Aaron O';Hara
;t necessary and I think is > interfering with your iteration id because it has the same id): > > class="com.razorfront.corporate.global.General"/> > > > > > > this is assuming: > 1) the method in General that returns the Arraylist is getTasks()

RE: Examples anyone?

2001-09-06 Thread Aaron O';Hara
that returns the Arraylist is getTasks(). 2) there is a method in Task called getSubject() Hope that helps, Bill Aaron O'Hara wrote: >All, > >Would somebody be able to point me to an example of iteration with the >following environmental "restrictions"? I've look

Examples anyone?

2001-09-06 Thread Aaron O';Hara
All, Would somebody be able to point me to an example of iteration with the following environmental "restrictions"? I've looked at sample code, but nothing seems to meet 100% what I'm trying to do and I'm still tearing my head out trying get get it to work. I have an application scope bean with

iterating woes

2001-09-02 Thread Aaron O';Hara
All, I'm pulling my hair out try to figure out iterating. The code below does not iterate through an ArrayList like I'd like it to. ... ... In the application scope bean referenced as "general", I have a populated ArrayList of "service" objects. The "general" bean has a privat

select list

2001-08-30 Thread Aaron O';Hara
All, I'm familiar with Java, but new to the struts framework and have what is probably an elementary question. I'm creating a database-driven application and on my JSP page I want to populate, amoung many things, a select list. In options in the select list will be composed of a value which is,