Re: A couple of questions

2004-09-08 Thread Lionel
Marco Tedone wrote: >> Interesting, I also build commercial apps, and try to use wizards >> whenever > possible to keep things >simple for my users > > We prefer to keep things easy for us also for maintainability as we > look at the project long life term. Doing and maintain wizards with stru

Re: A couple of questions

2004-09-07 Thread Michael McGrady
Marco Tedone wrote: - Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 3:09 PM Subject: Re: A couple of questions Hello, Marco, First, Struts merely adds

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Jim Barrows > Sent: Tuesday, September 07, 2004 1:44 PM > To: Struts Users Mailing List > Subject: RE: A couple of questions > > > > > > -Original Message- > > From: Marco Tedone [mailto:[EMAIL PROTECTED]

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 1:22 PM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > What do you mean? This is often our case. I mean, we often > have com

Re: A couple of questions

2004-09-07 Thread Marco Tedone
What do you mean? This is often our case. I mean, we often have composite value objects: one that contains another, which contains another. Are there any issues with such design? Example: public class OrderVO implements Serializable { /** Order lines */ private LinesVO[] orderLines; //Eclipse w

Re: A couple of questions

2004-09-07 Thread Marco Tedone
> i personally avoid javascript like the plague. :) i think if you keep > your website design clean and simple, it makes avoiding javascript > easier. i also believe that no matter how much functionality or > business you need to accomplish, you can do so with good web page/site > design, rather

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 12:04 PM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > Thank you for your emails. I feel I've got a better > under

Re: A couple of questions

2004-09-07 Thread Woodchuck
hihi all! --- Marco Tedone <[EMAIL PROTECTED]> wrote: > We are talking here about the user submitting a form from a JSP page: > the > fact that I've got request and action form both populated, doesn't > suggest > me any added value in maintainability, it's simply a duplication of > data. We > cho

Re: A couple of questions

2004-09-07 Thread Marco Tedone
rs Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 7:15 PM Subject: RE: A couple of questions > -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:51 AM > To: Struts Users Mailing List >

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 11:05 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > We are talking here about the user submitting a form from a > JSP pag

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:51 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > > >Not really... your way you have to add the code to the >

Re: A couple of questions

2004-09-07 Thread Marco Tedone
We are talking here about the user submitting a form from a JSP page: the fact that I've got request and action form both populated, doesn't suggest me any added value in maintainability, it's simply a duplication of data. We chose Struts as web framework not because of Action Forms (not yet at lea

Re: A couple of questions

2004-09-07 Thread Marco Tedone
>Not really... your way you have to add the code to the action to do the validation and extraction as well as the JSP, model and SQL. Model and SQL is not necessarily (and often) true: if I used course grained strategy, it may be that I've already got the field in my model, and if I use CMP EJB,

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:37 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > > I use it for my login actions when I'm not using container

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel > Sent: Tuesday, September 07, 2004 10:30 AM > To: [EMAIL PROTECTED] > Subject: Re: A couple of questions > > > Jim Barrows wrote: > >> How do you manage this ? > >

Re: A couple of questions

2004-09-07 Thread Marco Tedone
I use it for my login actions when I'm not using container managed security. My typical worse case action is: TheForm theForm = (TheForm) form; ActionErrors errors = form.validate(); if( errors.isEmpty()) { errors = weirdValidations( form); if( errors.isEmpty()) { TheVo vo = new TheVo(); BeanUtil

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:26 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > >Interesting, I also build commercial apps, and try to use > wizar

Re: A couple of questions

2004-09-07 Thread Lionel
Jim Barrows wrote: >> How do you manage this ? > > I use a defense-in-depth strategy, starting at the UI, and going to > the Business layer. as I do. > I use coarse-grained form objects, but limit the > fields on the page to what the user can actually change. Depending > on complexity, I'll eith

Re: A couple of questions

2004-09-07 Thread Marco Tedone
>Interesting, I also build commercial apps, and try to use wizards whenever possible to keep things >simple for my users We prefer to keep things easy for us also for maintainability as we look at the project long life term. >And therefore a whole hell of a lot easier to modify and change a

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:06 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > > - Original Message - > From: "Jim Barrows"

Re: A couple of questions

2004-09-07 Thread Marco Tedone
>If you put it into session scope, then you only have threading issues if you allow a single user to invoke more then one thread in a session. The way to avoid that is >to use the request scope. That's where we came from. On the other side, if you put the action form in the request form, after

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:01 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > - Original Message - > From: "Matthew Van Horn" &l

Re: A couple of questions

2004-09-07 Thread Marco Tedone
- Original Message - From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 5:18 PM Subject: RE: A couple of questions Because so much of what you're doing in processing th

Re: A couple of questions

2004-09-07 Thread Marco Tedone
- Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 3:09 PM Subject: Re: A couple of questions > Hello, Marco, > > First, Struts merely adds to yo

Re: A couple of questions

2004-09-07 Thread Marco Tedone
- Original Message - From: "Matthew Van Horn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 3:22 PM Subject: Re: A couple of questions > Not necessarily - you can use one ActionForm to col

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel > Sent: Tuesday, September 07, 2004 9:32 AM > To: [EMAIL PROTECTED] > Subject: Re: A couple of questions > > > Jim Barrows wrote: > > > In much of my code I do: > > Bea

Re: A couple of questions

2004-09-07 Thread Lionel
Jim Barrows wrote: > In much of my code I do: > BeanUtils.copyProperties( dataVo, dataForm); > and I'm done. Your way would require a lot more code. This seems great, but I can't do that because of user rights. Some users don't have rights to update certain fields, so I have to call each setter

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 7:40 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > > > There are many. First, when you use an ActionForm you can

RE: A couple of questions

2004-09-07 Thread Jim Barrows
> -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 6:53 AM > To: Struts-users > Subject: A couple of questions > > > Hi, in my company we are writing a new J2EE application using > Struts. So far > w

Re: A couple of questions

2004-09-07 Thread Marco Tedone
> There are many. First, when you use an ActionForm you can mine the > values of request parameters from multiple requests. In the kind of applications we write this is not an issue. Additionally, it seems to me that when put in the 'session' scope, there will only be one ActionForm object for a

Re: A couple of questions

2004-09-07 Thread Michael McGrady
PROTECTED]> Sent: Tuesday, September 07, 2004 3:09 PM Subject: R: A couple of questions Hi, the ActionForm are used for the input form of your application. If you use the ActionForm in your Action you don't have to use the HttpServletRequest.getParameter("ID") method in order to

Re: A couple of questions

2004-09-07 Thread Matthew Van Horn
hipId; ...etc... } > > Marco > > - Original Message - > From: "Amleto Di Salle" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, September 07, 2004 3:09 PM > Subject: R:

Re: A couple of questions

2004-09-07 Thread Marco Tedone
; Sent: Tuesday, September 07, 2004 3:09 PM Subject: R: A couple of questions Hi, the ActionForm are used for the input form of your application. If you use the ActionForm in your Action you don't have to use the HttpServletRequest.getParameter("ID") method in order to obtain the valu

Re: A couple of questions

2004-09-07 Thread Michael McGrady
Hello, Marco, First, Struts merely adds to your options. Struts is not invasive. You don't have to use it at any time. Second, I find Struts to be absolutely reliable and easy to use. If you understand how it works, it is also really, really flexible. I worry sometimes that they will try t

R: A couple of questions

2004-09-07 Thread Amleto Di Salle
a: Marco Tedone [mailto:[EMAIL PROTECTED] Inviato: martedì 7 settembre 2004 15.53 A: Struts-users Oggetto: A couple of questions Hi, in my company we are writing a new J2EE application using Struts. So far we've used standard JSP/Servlet technology. HTML forms processed from within our Servlets

A couple of questions

2004-09-07 Thread Marco Tedone
Hi, in my company we are writing a new J2EE application using Struts. So far we've used standard JSP/Servlet technology. HTML forms processed from within our Servlets, processing the HttpRequest object. We sent data to JSPs under the form of Value Objects which JSTL has managed well. Now I'm learn