Hi Maya,

Yep I believe that struts has a great future. I do believe that it is the
model we should be working with. I am just worried that because of the
current limitations that we will not use it. There are whole swathes of
stuff that needs to be done, especially when it comes to
internationalisation/formatting support when it comes to the view output,
but that is not a problem. Custom tags can be built to handle what is
required (as I have done so) but the internal workings of the actionServlet
is a different matter. If that does not support what you want then you end
up having to branch away from the codeline (which I don't want to do, it's a
maintenance nightmare).

We use log4J here. Now that log4j is under the apache wing, I take it that
tomcat and struts will start to use it at some point?

Regards
Ned


----- Original Message -----
From: "Maya Muchnik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 11:23 PM
Subject: Re: help! confused over forms and errors and oooh, other stuff :-)


> Hi, Ned,
>
> I am only in the beginning of my project developing, as you are. Tell your
guys
> / managers that this project has a great future. Of course, it is not easy
from
> the first time.
>
> I am sorry, I do not know how resolve your problem, but try to insert a
package
> log4j from jakarta to print out all values / attributes to see where you
loose
> them.
>
> I wish you the best, as for us too. Please, do not panic.
>
> Maya
>
> Ned Seagoon wrote:
>
> > Can nobody give me a clue as to whether I've missed something here? I
have
> > to do a 'show and tell' session on friday where we probably will be
deciding
> > whether to use struts as the basis of future developments. If I'm going
to
> > have to branch away from struts to handle these issues, so be it, but
I'd
> > rather hope they were handled somewhere. Worst case scenario is that we
> > don't use struts at all.
> >
> > Regards
> > Ned
> >
> > ----- Original Message -----
> > From: "Ned Seagoon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 20, 2001 11:47 AM
> > Subject: help! confused over forms and errors and oooh, other stuff :-)
> >
> > > Hi Guys,
> > >
> > > I wonder if you could help me out a little please? I am in the middle
of
> > > developing a proof of concept app with struts. If this comes off the
> > company
> > > could migrate away from a proprietary framework to struts, which I am
in
> > > favour of.
> > >
> > > I seem to have confused myself over an issue regarding validation and
> > forms.
> > > I?ll give a simplified workflow as an example.
> > >
> > > We have for all intents and purposes a generated product overview page
> > along
> > > these lines:
> > >
> > > *Wooden Throat Mallet        59.95 >buy<
> > > *Leather Uncle Frightener    12.60 >buy<
> > > *Vandal-Proof Toupee         99.99 >buy<
> > >
> > > Which is generated from struts tags. The >buys< are links to a pages
which
> > > look something like ?buyit.do?itemid=50?. The buyit.do action has
> > registered
> > > a form in request scope. During processing, it looks up the full
details
> > of
> > > the itemid and places the resulting bean in request scope. It then
creates
> > > the form object, populates it with some default information and sets
this
> > in
> > > the request too before forwarding onto buypage.jsp
> > >
> > > This displays the details of the item, and contains a form for
entering,
> > > say, credit card details:
> > >
> > > *Item: Vandal-Proof Toupee
> > > *Manufacturer: Lockheed-Martin Advanced Hairpiece Research
> > > *Price: 99.99
> > > *Additional Information: Also Invisible to Radar
> > > *
> > > * Inside Leg Measurement: _____
> > > * Credit Card Number: ____________________
> > > * >BUY< {forwards onto checkout.do}
> > >
> > > Which is all fine and dandy and displays correctly. Though what
happens if
> > > the form validate fails? If checkout.do has an ?input? attribute which
 is
> > > buypage.jsp then this will fail because the item details are stored on
the
> > > request has not been set up (it was done in ?buyit.do?). I could of
course
> > > set the item details on the session, but if the user opened new
browser
> > > windows for the ?buyit? link, then the session level object will be
> > > overwritten.
> > >
> > > If have looked into placing the details object onto the form bean as
it is
> > > populated, but will that property be preserved across a validate
failing?
> > > And how do I get at the properties of the form bean outside of the
> > > <hmtl:xxx> tags?
> > >
> > > Help !
> > >
> > > Regards
> > > Ned
> > >
> > >
> > >
> > >
_________________________________________________________________________
> > > Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
> > >
> > >
>
>

Reply via email to