Re: Design question regarding struts security features

2003-12-29 Thread Patrick Scheuerer
Mohan Radhakrishnan wrote: I think you can also use the role attribute in struts-config.xml and restrict access actions. Tiles has a role attribute too ? though we are not using that. I came across the role tag of tiles as well, but I guess it's suitable only if you want to restrict some are

RE: Design question regarding struts security features

2003-12-29 Thread Mohan Radhakrishnan
Hi Are you only filtering data based on role ? If you are talking about role-based access of views then we are doing something like that 1. You can use Container Manager Authentication and restrict access to URL patterns to only valid users. 2. You can use the vendor-specify XML file

RE: Design question regarding struts security features

2003-12-29 Thread Robert Taylor
You should be able to do this with standard J2EE security provided by your web container. If you store your user credentials in a database, then you may want to look at SecurityFilter: http://sourceforge.net/projects/securityfilter/ It allows you to leverage standard J2EE security features but p

Re: design question

2003-12-24 Thread Mark Lowe
If the forms are in different windows then instantiating new forms I dont think will work. If you want a non javascript way of doing things then you'll want to scope the master form to the session, and then keep populating to from your subforms . However you do this I imagine that scoping the m

Re: design question

2003-12-24 Thread Gurpreet Dhanoa
hi Drik once the user have filled up the other 2 forms in the pop window u can make object of those two forms into your final action and can get the values like Form1 form=new Form1(); Form2 form2=new Form2(); from1.getUserAddress(); from1.getCity(); Hope this works Regards Gurpreet Dhanoa

RE: design question

2003-10-22 Thread ajay brar
hi! thanks for the reply. How do i do the switch action you talked about. cheers ajay From: <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: design question Date: Wed, 22 Oct 2003 16:49:32 +0100 AFAIK

RE: design question

2003-10-22 Thread shishir.katdare
am no expert on security but this might work look what other people might say. ur security depends on how u call ur remote class -Original Message- From: ajay brar [mailto:[EMAIL PROTECTED] Sent: 22 October 2003 16:12 To: [EMAIL PROTECTED] Subject: Re: design question hi all! would

Re: design question

2003-10-22 Thread ajay brar
hi all! would anyone in the spirit of diwali like to help me on this one. how do i direct a form submission to a remote action class, after having fthe form submitted to a local action class first. ie, communicate between two action classes, one of which is on a remote machine. I am looking at se

RE: design question regarding multiple submit buttons

2003-09-18 Thread david.ballard
thanks for the advice, Wendy. its up and running :) -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:22 PM To: Struts Users Mailing List Subject: RE: design question regarding multiple submit buttons David wrote: > When they have

RE: design question regarding multiple submit buttons

2003-09-18 Thread Wendy Smoak
David wrote: > When they have no more addresses to enter, they should hit "DONE" to move on to the next form. > However, when "DONE" is selected, the form calls the validate method, > which of course fails because the fields are empty. I think validation is on by default, so you may want to turn

RE: Design Question

2003-09-17 Thread Edgar P Dollin
I have special field objects which with separate methods for jsp setting and database setting which also track changes. Then I can use reflection to the specific type and see if any of the objects in the database changed and are not confused by spurious instance variables. You can then create met

Re: Design Question

2003-09-17 Thread Daniel Wang
() { //... your comparison here... } } - Original Message - From: "sean schofield" <[EMAIL PROTECTED]> To: "Struts" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 8:20 AM Subject: RE: Design Question > You are correct that

RE: Design Question

2003-09-17 Thread sean schofield
orget what I said - didnt read it properly. You need to be able to tell >which fields changed. The digest will merely tell you if any changed. Sorry. > >-Original Message- >From: Andrew Hill [mailto:[EMAIL PROTECTED] >Sent: Wednesday, 17 September 2003 23:01 >To: Struts Us

RE: Design Question

2003-09-17 Thread Andrew Hill
Subject: RE: Design Question Actually you could just store a digest of the previous values, and then compare that with a digest of the new. -Original Message- From: sean schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 22:57 To: [EMAIL PROTECTED] Subject: Design

RE: Design Question

2003-09-17 Thread Andrew Hill
Actually you could just store a digest of the previous values, and then compare that with a digest of the new. -Original Message- From: sean schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 22:57 To: [EMAIL PROTECTED] Subject: Design Question I am working on a strut

Re: design question

2003-09-14 Thread Ted Husted
If the values are not going to change during the life of the application, I would suggest using a plugin to set them at startup. See the MailReader Example application for some sample code. -Ted. deepaksawdekar wrote: I am displaying some dropdown boxes on my jsp. I have to take the values for

RE: Design Question - Need to put assertions in Actions?

2003-09-05 Thread Marco Tedone
Message-ID: <[EMAIL PROTECTED]> From: "White, Joshua A (HTSC, CASD)" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Design Question - Need to put assertions in Actions? Date: Fri, 5 Sep 2003 08:53:49 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-

RE: Design question

2003-08-26 Thread deepaksawdekar
Thanks a lot navjot. I will try this. Deepak . -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 11:20 AM To: Struts Users Mailing List Subject: RE: Design question | |Now my questions are : |1> I am doing write something wrong. I

RE: Design question

2003-08-26 Thread Navjot Singh
| |Now my questions are : |1> I am doing write something wrong. It's better not to club two logically different business process handlers. I guess you want to reduce the number of Action Classes to be created. If yes, follow this way In your action class.. String doWhat = mapping.getParameter

RE: Design question...

2003-08-25 Thread Navjot Singh
hi, If are getting some collection to the JSP page and just wish to display a subset of them without changing anything on BL layer, Use Pager Taglib and get away with it easily. But there is a downside to it as you may have 1000 records and you just want to show 10. So, 990 records are burden on

RE: Design Question: Forms-and-Validation, which scope to use for dynamic beans?

2003-08-14 Thread Gino LV. Ledesma
Thanks for the quick reply. Does this work if the action requires additional request parameters, however? Not that my particular servlet will require it, but some of them do. For example, say I have something like: /createObjectB.do?parentID=1 Where ObjectB has ObjectA for its parent (and is nece

RE: Design Question: Forms-and-Validation, which scope to use for dynamic beans?

2003-08-14 Thread Steve Raeburn
In your action configuration set the 'input' URL to point to an action instead of your JSP and then build your lists in the action. Steve > -Original Message- > From: Gino LV. Ledesma [mailto:[EMAIL PROTECTED] > Sent: August 10, 2003 10:28 PM > To: Struts Users Mailing List > Subject: Des

RE: Design question

2003-08-14 Thread Alex Shneyderman
There is a workflow extension for struts. I have read the docs, but did not use it. You can take a close look at it here http://www.livinglogic.de/Struts/ Alex. > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 10, 2003 7:18 PM > To: Struts-Users

Re: Design Question

2003-07-31 Thread Travis Stevens
Because the foward action should be completely dinamic. The select action should know nothing concrete about any of the actions that use the functionality, otherwise one would have to edit the select action every time a new action is created that uses the select action. [EMAIL PROTECTED] wrote

Re: Design Question

2003-07-31 Thread shane
Why not just define the forward action in the selectRecord action mapping element in your struts-config.xml? shane Quoting Erik Price <[EMAIL PROTECTED]>: > > > Travis Stevens wrote: > > > As you can see, the select a record functionality is common. To > > implement this I would like to c

Re: Design Question

2003-07-31 Thread Erik Price
Travis Stevens wrote: As you can see, the select a record functionality is common. To implement this I would like to create action classes specifically for the select a record interface. One of the request parameters would be the action to forward the result to. The GET request would look

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Witbeck, Shane
in the flow ...usually something like /action/Action?method=init Maybe this will give you some idea for your design? HTH, Shane -Original Message- From: Hue Holleran [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Design Question

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Hue Holleran
this may be worth a look, too? URL in case you don't have it: http://www.livinglogic.de/Struts Hue. > -Original Message- > From: Brian McSweeney [mailto:[EMAIL PROTECTED] > Sent: 28 July 2003 16:27 > To: 'Struts Users Mailing List' > Subject: RE: Design

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Adam Levine
sent back to where you started from. From: "Brian McSweeney" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: Design Question - same action, many js

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Brian McSweeney
ge- From: Hue Holleran [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 16:11 To: Struts Users Mailing List Subject: RE: Design Question - same action, many jsps/views Hi Brian, Why not use different named forwards for the action and access each one from the action with a: { ... return (mapping

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Hue Holleran
Hi Brian, Why not use different named forwards for the action and access each one from the action with a: { ... return (mapping.findForward("page1/page2/page3")); } In s-c: Hue. > -Original Message- > From: Brian McSweeney [mailto:[EMAIL PROTECTED] > Sent: 28 July 2003 10:39 > To

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Brian McSweeney
urent PETIT [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 10:37 To: 'Brian McSweeney '; '[EMAIL PROTECTED] ' Subject: RE: Design Question - same action, many jsps/views Hello, one way to solve it is not to duplicate code in different Action classes, but have many ActionMappi

RE: Design Question - same action, many jsps/views

2003-07-28 Thread Laurent PETIT
Hello, one way to solve it is not to duplicate code in different Action classes, but have many ActionMapping entries in your struts-config.xml file. This way you keep the navigational part of your application away from Action classes, but still avoid code duplication in Actions. HTH, -- Laure

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
taking data(Value Objects) from webserver to appserver Shashank - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 3:26 PM Subject: Re: Design question: Confirm actio

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 3:26 PM Subject: Re: Design question: Confirm action after validation ? > my base action class sorts out all the general objects and variables >

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
? any idea? Pls reply Shashank - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 2:52 PM Subject: Re: Design question: Confirm action after validation ? I have an A

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
o: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 2:52 PM Subject: Re: Design question: Confirm action after validation ? > I have an Action base class which all my other Action classes inherit. > In the execute() of this base class I check whethe

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
I have an Action base class which all my other Action classes inherit. In the execute() of this base class I check whether the user clicked cancel, before I call the child class execute(). I presume it would be easy enough to store the originating URL in the session, and if cancel is clicked, r

Re: design question about action chaining

2003-04-01 Thread Kris Schneider
ce. Filters aren't a parallel system to Struts because they logically sit in front of Struts handling requests before Struts gets them. David From: Thorin Linderholm <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Maili

Re: design question about action chaining

2003-04-01 Thread Igor Shabalov
C where there is a 'view' controller and 'buisness' >> controller >> (which seems a bit redundant to me.) > > Well, at one point you will wonder which is more cumbersome: coding > Action classes or having a mile-long struts-config.xml. > > Paul >

Re: design question about action chaining

2003-04-01 Thread Paul Yunusov
and 'buisness' > >> controller > >> (which seems a bit redundant to me.) > > > > Well, at one point you will wonder which is more cumbersome: coding > > Action classes or having a mile-long struts-config.xml. > > > > Paul > > > >&

RE: design question about action chaining

2003-04-01 Thread David Graham
Mailing List' <[EMAIL PROTECTED]> Subject: RE: design question about action chaining Date: Tue, 1 Apr 2003 12:08:09 -0800 Filters are one of the design/imp choices I've considered under the 'parallel system' heading, though I hadn't thought of trying to use the web

Re: design question about action chaining

2003-04-01 Thread Igor Shabalov
isness' controller (which seems a bit redundant to me.) Well, at one point you will wonder which is more cumbersome: coding Action classes or having a mile-long struts-config.xml. Paul -Original Message- From: Paul Yunusov [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2

Re: design question about action chaining

2003-04-01 Thread Paul Yunusov
s more cumbersome: coding Action classes or having a mile-long struts-config.xml. Paul > > > -Original Message- > From: Paul Yunusov [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2003 11:43 AM > To: Struts Users Mailing List > Subject: Re: design questi

RE: design question about action chaining

2003-04-01 Thread Thorin Linderholm
esday, April 01, 2003 11:52 AM To: [EMAIL PROTECTED] Subject: Re: design question about action chaining I think Filters would be a good choice for your needs. You can define a filter for each piece of logic and then configure them in web.xml for groups of pages. You'll need to put relat

RE: design question about action chaining

2003-04-01 Thread Jacob Hookom
I had come to the conclusion that Struts Actions are moreover 'View Adapter Components' or "VAC's" (you can quote me on that one!) and should not be relied on for handling business logic or data collection by any means, just as a facsimile for "pulling" model/controller data into the view. I wrote

RE: design question about action chaining

2003-04-01 Thread Thorin Linderholm
re there is a 'view' controller and 'buisness' controller (which seems a bit redundant to me.) -Original Message- From: Paul Yunusov [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: design question about action chai

Re: design question about action chaining

2003-04-01 Thread David Graham
I think Filters would be a good choice for your needs. You can define a filter for each piece of logic and then configure them in web.xml for groups of pages. You'll need to put related pages in the same path scheme so that you can map a filter to the group instead of each page. David From

Re: design question about action chaining

2003-04-01 Thread Paul Yunusov
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote: > I have been tasked with porting an existing web application with it's own > proprietary controller architecture to using Struts. > > As they are both web controller architectures, they have many similarities, > but I'm running into one d

Re: Design Question - giving nice URL's with parameters hidden

2003-03-14 Thread jbaker
Pennsylvania Ave SE 5th Floor Washington, DC 20003 202-544-0200 x285 http://www.amnestyusa.org [EMAIL PROTECTED] "David Graham" <[EMAIL PROTECTED]> 03/14/03 05:43 PM Please respond to "Struts Users Mailing List" To: [EMAIL PROTECTED] cc: Subject:

Re: Design Question - giving nice URL's with parameters hidden

2003-03-14 Thread David Graham
When people first hit one of the internationalized pages, I'd like to check their browser settings for locale. You don't need to check that yourself. The first time a user hits your site the RequestProcessor.processLocale() will put a Locale object in their session. It checks their Accept-Langu

RE: Design question

2003-03-05 Thread Marco Tedone
Message- > From: alexj [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 11:29 PM > To: Struts Users Mailing List > Subject: Re: Design question > > > > I got a little question how can I manage that case : > > > > In my project I need to add activities

Re: Design question

2003-03-04 Thread alexj
> I got a little question how can I manage that case : > > In my project I need to add activities to a formation an user > select into a view page. > > I need to forward the selected formation to an other view > page where this page need to contain specific populated datas (like branch) from t

Re: Design question

2003-02-22 Thread alexj
Great thanks Rick :) -- Alexandre Jaquet - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 5:19 PM Subject: Re: Design question > On Sat, Feb 22,&

Re: Design question

2003-02-22 Thread Rick Reumann
On Sat, Feb 22,'03 (03:22 PM GMT+0100), alexj wrote: > What's the best to do if for example I got > a view where an user can choose to view > students by class, view students by year > or view students by year ? I think the best is to bring back the results in a table in some default manner (

Re: Design Question

2003-02-08 Thread Justin F. Knotzke
On Sat, Feb 08, 2003 at 12:34:35AM -0500, Rob Leland wrote: > EditAAction SaveAAction -->EditBAction SaveBAction > \ > / \/ >\ > /

Re: Design question: Model component using Business logic beans

2003-02-04 Thread BaTien Duong
Great. Thanks. BaTien - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 8:49 PM Subject: Re: Design question: Mode

RE: Design question: Model component using Business logic beans

2003-02-04 Thread mech
AIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] > > Subject: Re: Design question: Model component using Business logic > > be

Re: Design question: Model component using Business logic beans

2003-02-03 Thread Craig R. McClanahan
On Mon, 3 Feb 2003, BaTien Duong wrote: > Date: Mon, 3 Feb 2003 20:02:41 -0700 > From: BaTien Duong <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] >

Re: Design question: Model component using Business logic beans

2003-02-03 Thread BaTien Duong
We use chained exception from jdk1.4, commons.logging, and factoring out 4 components that are independent on Struts [MessageResources, MessageResourcesFactory, PropertyMessageResources, and PropertyMessageResourcesFactory]. I heard somewhere that these 4 components will eventually be in commons. A

Re: Design question: Model component using Business logic beans

2003-02-03 Thread Ted Husted
Craig McClanhan wrote: > In the interim, though, you might want to investigate using > commons-resources directly for your business logic (so you don't have > to depend directly on Struts APIs) +1 What I'm doing is having the business tier bring back a MessageList and then just pumping it into

Re: Design question: Model component using Business logic beans

2003-02-03 Thread Craig R. McClanahan
On Mon, 3 Feb 2003, mech wrote: > > One thing, I'm having a bit trouble with migration is the ActionError > stuff. > One of the things we wanted to do in Struts 1.1, but ran out of time for, was to switch to using commons-resources for the underlying message resources stuff, and then build Acti

RE: Design question: Model component using Business logic beans

2003-02-03 Thread Ashish Kulkarni
Hi, What i have been doing is the following, I wrote a simple class , which will hold all the errors in the business class (An ArrayList whoes each row is an error or message ) , and then send back this class to the Action class, and then in the Action class i have written logic to build ActionEr

RE: Design question: Model component using Business logic beans

2003-02-03 Thread mech
Thanks... custom exceptions... of course...! I must have been blind. Thanks for the light! Michael > -Original Message- > From: Pani, Gourav [mailto:[EMAIL PROTECTED]] > Sent: Montag, 3. Februar 2003 19:11 > To: 'Struts Users Mailing List' > Subject: R

RE: Design question: Model component using Business logic beans

2003-02-03 Thread John Espey
I would have the business components handle their own DB connections (they shouldn't rely on the presentation layer for that). As far as your errors coming back to the presentation layer, I usually have a BusinessDelegate class that the action makes business calls into. That business delegate is

RE: Design question: Model component using Business logic beans

2003-02-03 Thread Jarnot Voytek Contr AU HQ/SC
This is why Java has exceptions. In our case the backend mostly throws standard EJB exceptions (RemoveException, CreateException, etc), the business delegate translates those into our custom application exceptions, many of which are handled by our base action class, otherwise they bubble up to the

RE: Design question: Model component using Business logic beans

2003-02-03 Thread Pani, Gourav
Michael, I have been putting my data logic into DAO classes that throw their own custom exceptions. Based on the exception thrown, I append to the ActionError object in the Action class. I don't think this answers the specific question you asked regarding use of the ActionError object in your b

RE: design question about action chaining

2003-02-03 Thread Greg.Reddin
Thanks, Ted, for clarifying these issues for me. > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 02, 2003 11:06 AM > To: [EMAIL PROTECTED] > Subject: Re: design question about action chaining > > > In Patterns o

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-02-03 Thread shirishchandra . sakhare
Hi Ted, This explanatation has set to rest most of my doubts about action chainning..And I think the way Most of us use actions(One action to serve the request like save action)and another to display the page (like getAccountsList Action )is not action chainning but action relay which is perfect

Re: design question about action chaining

2003-02-02 Thread Ted Husted
In Patterns of Enterprise Application Architecture [1], Martin Fowler [2] lays out two basic patterns for handling business logic [3]. * Transaction Script - "Organizes business logic by procedures where each procedure handles a single request from the presentation. * Domain Model - "An object mo

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-31 Thread Derek Richardson
Ted, will you give me your opinion on my post of "Mon 1/27/2003 5:21 PM" with a subject of "RE: Two ActionForms colliding on property name"? I am wondering whether you see my splitting of actions into post-actions and pre-actions as action relays or action chaining. To use the input attribute i

Re: design question about action chainning(As quoted in :Struts in action...byTed Husted et al..)

2003-01-31 Thread Brian Lee
Isn't the action becoming part of an API a good thing? Having reusable action classes that can be strung together through struts-config is pretty useful in that you don't have to have as much coding. You can then have a work pipeline of sorts without having to create extra action classes or mod

Re: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-31 Thread BaTien Duong
nt to break its design principal. Have a good day and good weekend. :-) BaTien - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 1:44 AM Subject: Re: design question about action chainning(As quot

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-31 Thread Greg.Reddin
Ted, can you (or someone else) clarify the difference b/t "action chaining" and "action relay"? Thanks, Greg > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 5:34 AM > To: [EMAIL PROTECTED] > Subjec

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-31 Thread shirishchandra . sakhare
: Friday, January 31, 2003 12:34 PM To: struts-user Cc: husted Subject: RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..) Derek Richardson writes: >But you still have to duplicate code in the actions, right? Even if >that code is as sim

RE: design question about action chainning(As quoted in :Struts inaction...by Ted Husted et al..)

2003-01-31 Thread Ted Husted
Derek Richardson writes: >But you still have to duplicate code in the actions, right? Even if >that code is as simple as: > >Service service = Service.getService(SERVICE_KEY); >Foo[] foos = service.getFoos(); >request.setAttribute(FOO_KEY, foos); > >Action chaining allows this code to be written o

Re: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-31 Thread shirishchandra . sakhare
Any comments:-))?? regards, Shirish -Original Message- From: batien.duong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 5:09 PM To: struts-user Subject: Re: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..) We achieve wha

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread Derek Richardson
you get reuse of presentation code, not just business logic. > -Original Message- > From: BaTien Duong [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 11:09 AM > To: Struts Users Mailing List > Subject: Re: design question about action chainning(As quoted &g

Re: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread BaTien Duong
We achieve what you describe as a chain of actions for re-use with helper beans and follow Struts design principal as Ted described. The helper beans can be ready in cache or service pool for reuse. Look at http://myportal.myb2cb2b.com/com.dbgroups.ppf/model/web/dao.html Hope this may help. BaTien

RE: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread Greg.Reddin
You've stated it correctly when you said that Actions are your flow controllers. In the case of your login/getAccounts example, you should have a business object that handles login, and a business object that gets accounts. You would then have a login action (use case controller) that would us

RE: Design Question regarding navigation menu

2002-12-10 Thread ROSSEL Olivier
> I could not follow your question. > A good practices that I use is to have centralized navigation in XML, > using Struts menu from sf.net. So the question is: in StrutsMenu, how do you highlight the currently selected menu item? Another question about StrutsMenu: is it possible to get a string

Re: Design Question regarding navigation menu

2002-12-09 Thread V. Cekvenich
I could not follow your question. A good practices that I use is to have centralized navigation in XML, using Struts menu from sf.net. .V Mark Conlin wrote: Design question regarding navigation menu. (I am using tiles) Suppose I have a navigation menu with several choices/sections, I would l

Re: Design question Struts -> EJB.

2002-06-26 Thread Kevin . Bedell
Bryan - Looking at Struts as a Model, View, Controller architecture, EJB access is a strategy that is generally used IN MODEL COMPONENTS. - The View components are primarily the JSP's that are used for presentation. - The Controller components are the Action classes you write. These must ext

RE: Design question on roles and tasks

2002-05-13 Thread Jon.Ridgway
Hi Chong, Container based security is a topic that comes up regularly on the list try searching on it. When you use container based security your authenticated user will be associated with one or more roles. This is a J2EE feature. Struts can use the 'role' information in several ways: - the

Re: Design question

2002-04-30 Thread Will Spies/Towers Perrin
s/Towers Perrin) ife.com Subject: Re:

Re: Design question

2002-04-30 Thread Kevin . Bedell
e or something. "Will Spies/Towers Perrin" <[EMAIL PROTECTED]> on 04/29/2002 04:08:04 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc:(bcc: Kevin Bedell/Systems

RE: Design question

2002-04-29 Thread Amir Nashat
is. It's quite a lengthy and enlightening thread. JM > -Original Message- > From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 4:08 PM > To: Struts Users Mailing List > Subject: Re: Design question > > > > > Good idea

RE: Design question

2002-04-29 Thread James Mitchell
, 2002 4:08 PM > To: Struts Users Mailing List > Subject: Re: Design question > > > > > Good idea but the other problem is your web server doesn't mix with > non-Struts applications. I was kinda hoping for a struts only solution. > Thanks for the idea though! > &g

Re: Design question

2002-04-29 Thread Will Spies/Towers Perrin
To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Kevin.Bedell@sunlcc: (bcc: Will Spies/Towers Perrin) ife.com Subject:

Re: Design question

2002-04-29 Thread Kevin . Bedell
Configure the web server to not recognize the .jsp mime type. Then any link to a .jsp page will generate an "Error 404 Page Not Found". The servlet mappings should still work fine. That being said, I've found that whenever I make a decision like this based on a design preference, I almost alw

RE: design question

2002-03-05 Thread Callas, Jeff P.
ailing List Subject: Re: design question A third option people have mentioned is to serialize the form-bean as a single hidden field. As part of validate, you can repopulate any null fields. Never actually tried this one myself, but it seems clever. -- Ted Husted, Husted dot Com, Fairport NY US --

RE: design question

2002-03-05 Thread Ronald Haring
this looks very nice indeed. I will look into this some more. Thx Ted Gr Ronald > At this point, I rarely write custom Actions any more. Now I > try to use > a framework action to handle all the usual action-stuff, and > pass it the > name of a business bean to invoke as part of the > Action

Re: design question

2002-03-05 Thread Ted Husted
At this point, I rarely write custom Actions any more. Now I try to use a framework action to handle all the usual action-stuff, and pass it the name of a business bean to invoke as part of the ActionMapping. At this point, I'm creating moderately complex application using only the stock actions i

Re: design question

2002-03-05 Thread Ted Husted
A third option people have mentioned is to serialize the form-bean as a single hidden field. As part of validate, you can repopulate any null fields. Never actually tried this one myself, but it seems clever. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications wit

RE: design question

2002-03-05 Thread Ronald Haring
> You have to keep the data in the session or write it to the > database. (Storing > it on each form as hidden fields seems too fiddly to me). > Unless you have huge volumes I actually prefer to save it on > the database & > have a status field that indicates the data is incomplete. that is tru

RE: design question

2002-03-05 Thread Ronald Haring
age- > From: Eddie Bush [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 05, 2002 3:47 PM > To: Struts Users Mailing List > Subject: Re: design question > > > There's really no reason not to keep the data in the session. > The session > is server-side and is not

Re: design question

2002-03-05 Thread Eddie Bush
ree to voice it. HTH, Eddie - Original Message - From: "Ronald Haring" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 7:07 AM Subject: RE: design question > Ah yes, > that is a

RE: design question

2002-03-05 Thread keithBacon
You have to keep the data in the session or write it to the database. (Storing it on each form as hidden fields seems too fiddly to me). Unless you have huge volumes I actually prefer to save it on the database & have a status field that indicates the data is incomplete. --- Ronald Haring <[EMAIL

RE: design question

2002-03-05 Thread Ronald Haring
Ah yes, that is a solution. But then you have to keep the general data in session indeed, which I never feel to comfortable about. But thx for the pointer. Gr Ronald > i see > I am looking to build something similar and I am thinking of > managing this > through the action mappings. > I am hop

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
ginal Message- From: Ronald Haring [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 12:51 To: 'Struts Users Mailing List' Subject: RE: design question > If key tasks needs to be completed in each Action's perform() > method, a good > approach is to create a new abstract method

  1   2   >