RE: Design issue

2007-02-05 Thread Zhang, Larry \(L.\)
PM To: Struts Users Mailing List Subject: RE: Design issue Hi, I usually access my cached droplist data directly from the jsp - eg have placed a bean called "ReferenceDataCache" on application scope with getter methods. In jsp I can simply call: I also try to keep my struts

RE: Design issue

2007-02-05 Thread Zhang, Larry \(L.\)
I didn't see a case where (2) is better. Ideas from other folks? Thanks. -Original Message- From: Information Guzzler [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 6:32 PM To: Struts Users Mailing List Subject: Re: Design issue Definitely (1) if you are strictly foll

RE: Design issue

2007-02-02 Thread Strachan, Paul
Hi, I usually access my cached droplist data directly from the jsp - eg have placed a bean called "ReferenceDataCache" on application scope with getter methods. In jsp I can simply call: I also try to keep my struts forms only containing properties for the http posted data. The co

Re: Design issue

2007-02-02 Thread Information Guzzler
Definitely (1) if you are strictly following MVC. Is there any specific scenario wherein (2) seems good to you? If there is then explore ways to force it thro' controller On 2/2/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote: Think about a typical struts app, and on the jsp there are text f

Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr
tag look at the "validate" attribute in the config? Scott Mulligan -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:47 PM To: Struts Users Mailing List Subject: Re: - Design Issue with Struts Validation Hi, Me, I use DispatchAction, and

Re: - Design Issue with Struts Validation

2006-05-16 Thread Michael Jouravlev
On 5/16/06, Dave Newton <[EMAIL PROTECTED]> wrote: Remember the days when newsgroups had a daily or weekly FAQ posting? Whaddya think? We have wiki now. (I believe that wiki needs a bit of reorganization) * Any more or less important/frequent issues should be reflected in wiki. I believe tha

RE: - Design Issue with Struts Validation

2006-05-16 Thread Mulligan, Scott H
? Scott Mulligan -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:47 PM To: Struts Users Mailing List Subject: Re: - Design Issue with Struts Validation Hi, Me, I use DispatchAction, and I prefer call validate in my action, inst

Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Chaudhary, Harsh wrote: > I would go with the declarative approach. It lends to more flexibility. > Not really. If I'm doing something the exact same way every time I'd much rather handle it by implementing a method (that you'd have to implement anyway) and not bother with a config file change

Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> If we are speaking of the real "FAQ" i can contribute ;-) Have some cool >> links of you guys here... > > Sounds like a Wiki to me :) There is a page for Struts FAQs (probably > more than one) already on the Wiki. Go to it, I'm certain everyone w

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 3:19 pm, C. Grobmeier wrote: > Good idea. But i think Dave is speaking of a FAQ which is not just > summing up what happened this week on the struts list, but he is > speaking of a "real" FAQ, with the most important links (to the wiki) etc. > > If we are speaking of the real "

Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> Remember the days when newsgroups had a daily or weekly FAQ posting? >> >> Whaddya think? >> > > Not a bad idea, but someone would have to put it together each week. You > voluntering? :) It would work if you simply put it together and poste

RE: - Design Issue with Struts Validation

2006-05-16 Thread Chaudhary, Harsh
I would go with the declarative approach. It lends to more flexibility. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:27 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: - Design Issue with Struts

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 2:02 pm, Dave Newton wrote: > Frank W. Zammetti wrote: >> Create two different mappings, one for the initial view (which has >> validate set to false), one for the submission (with validate set to >> true). >> > > Create a base action that has separate handlers for GET (initial

Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Frank W. Zammetti wrote: > Create two different mappings, one for the initial view (which has > validate set to false), one for the submission (with validate set to > true). > Create a base action that has separate handlers for GET (initial page hit) and POST (form submission). Remember the d

Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr
Hi, Me, I use DispatchAction, and I prefer call validate in my action, instead of struts launch automaticaly validate (validate="true" in action). So in my struts-config, I have just one mapping for an action (I set validate="false"). After in my dispatchAction I design my DispatchAction with sev

Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
Hi, Create two different mappings, one for the initial view (which has validate set to false), one for the submission (with validate set to true). Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EM

RE: Design Issue - Unchanged data getting submitted

2004-05-24 Thread Prasad, Kamakshya
esday, May 25, 2004 3:09 PM To: 'Struts Users Mailing List' Cc: 'Dhanesh Vasandani' Subject: RE: Design Issue - Unchanged data getting submitted Hi, Update record problem: I assume that you have a Header record and multiple child records for this header. To ensure that only t

RE: Design Issue - Unchanged data getting submitted

2004-05-24 Thread Milind Kulkarni
Hi, Update record problem: I assume that you have a Header record and multiple child records for this header. To ensure that only the changed records are saved you will have to mark them as "Changed" from the UI. And pass only the changed ones to Business Layer so that only changed ones are saved

RE: Design Issue - Unchanged data getting submitted

2004-05-24 Thread Robert Taylor
I assume your using BMP for persistence. If so, then you could implement a Store Optimization (Dirty Marker) Strategy which would control which fields get updated. For CMP, the container should manage this. For more on this strategy: http://java.sun.com/blueprints/corej2eepatterns/Patterns/Compos

RE: Design Issue/Question

2004-05-12 Thread nils . mueller
Hi Brad, I've used the iframe solution on a project, as well. It worked for me. However, I think there are some drawbacks. You loose visual control over what's going on in the hidden iframe. I loaded .jsp into the iframe that wouldn't even compile and didn't notice, because I didn't see the com

Re: Design Issue/Question

2004-05-12 Thread Brad Balmer
D] Sent: 12 May 2004 14:49 To: 'Struts Users Mailing List' Subject: RE: Design Issue/Question We use this solutions quite a bit... in fact we have the form in a hidden iframe which the user does not see but appears for developers for debbuging purposes.. when the action completes javascrip

RE: Design Issue/Question

2004-05-12 Thread Daniel Perry
The way i've done it, i have an iframe with 0 width/height, and load a url into it. e.g. iframe1.location='additem.do?code=item1'; Daniel. -Original Message- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: 12 May 2004 14:49 To: 'Struts Users Mailing List'

RE: Design Issue/Question

2004-05-12 Thread Nimmons, Buster
selection was saved (or not in case of error) this has worked extremely well for us -Original Message- From: Brad Balmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 8:47 AM To: Struts Users Mailing List Subject: Re: Design Issue/Question So I would create a frame on my page that

Re: Design Issue/Question

2004-05-12 Thread Brad Balmer
So I would create a frame on my page that has a form with the action that I need to call? Then my javascript (onclick) would just reference the new frame and call the submit on the frame? Is this correct? If so, by submitting the frame there would be no perceived effect on the page that the c

RE: Design Issue/Question

2004-05-12 Thread wojingo
Hi, On Wed, 2004-05-12 at 22:37, Daniel Perry wrote: > I've done similar things before. > Use javascript to open an action to add it to the database. This can be in > a new window, in another frame, or in a hidden iframe! I'm pretty sure you could do it using divs aswell, the dynapi(a cross plat

RE: Design Issue/Question

2004-05-12 Thread Daniel Perry
I've done similar things before. Use javascript to open an action to add it to the database. This can be in a new window, in another frame, or in a hidden iframe! Daniel. -Original Message- From: Brad Balmer [mailto:[EMAIL PROTECTED] Sent: 12 May 2004 13:46 To: Struts Users Mailing List