Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
Sorry ojay, my codes are in the notebook, and right now I don't have access to the internet with it(I don't have the ppoe program to run this ADSL connection in my note). I can send you the code from my work tomorrow. Best Regards Rafael Mauricio Nami 2005/9/22, Dave Newton <[EMAIL PROTECTED]>: >

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Dave Newton
Frank W. Zammetti wrote: Ok, got it working. Ugh, took me 20 minutes to find a stupid typo in the blank Struts app I use to start a new project. ARGH! Hey, does that mean you can bill clients for an extra 20 minutes for every project? That looks almost *exactly* like what I implemented a

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
On Thu, September 22, 2005 3:50 pm, Frank W. Zammetti said: > P.S. - I just threw together a quick little sample app to see if the > filter can be used this way in the first place... it didn't work right off > the bat, although I think it's just a mapping issue, not so much a flaw > with the underl

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
On Thu, September 22, 2005 3:31 pm, Dave Newton said: > If you're going to put an ActionForm into session mightn't it make more > sense to put this in a request processor, as long as it's > Struts-dependent anyway? I dunno. It's certainly a reasonable argument to make. :) My feeling these days th

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Dave Newton
Frank W. Zammetti wrote: Since an ActionForm is no different from any other class as far as the filter would be concerned, it can instantiate it and place it in the appropriate scope, which would really only mean session, since I'm pretty sure Struts would overwrite it if it was request-scoped..

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
Another potentially interesting possibility, although one I have to admit I have not tried yet, is using the DependencyFilter in Java Web Parts. Since an ActionForm is no different from any other class as far as the filter would be concerned, it can instantiate it and place it in the appropriate s

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Wendy Smoak
From: "ojay78" <[EMAIL PROTECTED]> Could you give a example Code for that? You can see an example of form pre-population in the code for the MailReader example app: http://svn.apache.org/viewcvs.cgi/struts/apps/trunk/shared/src/java/org/apache/struts/apps/mailreader/actions/EditSubscription

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rick Reumann
ojay78 wrote the following on 9/22/2005 1:22 PM: On my showFVKNAdminAction I receive a value from the previous ActionForm and put it in the request so that the next handleFVKNAction have this value. I also put a attribute in the request so that the handleFVKNAction knows that it has to act li

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
I usually prepopullate an ActionForm from the Action. Like, if I have to save a Person object, I prepopullate the ActionForm in the edit() method, setting the ActionForm again in the web context(request or session). And then, return the according ActionForward. Best Regards Rafael Mauricio Nami