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

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 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

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-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

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

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! 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 u can do the same using

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 it off

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

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 sean schofield
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 Users Mailing List Subject: RE: Design Question Actually you could just store a digest

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 my problem requires more information that just

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

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-8859-1

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 action path=/CreateUser type=navjot.CreateAction

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. It's better

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

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: 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: Design

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

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 create

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]

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, --

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: action path=/myAction type=FQ Class name=bean ... forward name=page1 path=/page1.jsp/ forward name=page2

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

2003-07-28 Thread Brian McSweeney
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.findForward(page1/page2/page3)); } In s-c: action path=/myAction type=FQ Class

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

2003-07-28 Thread Adam Levine
Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Design Question - same action, many jsps/views Date: Mon, 28 Jul 2003 16:26:52 +0100 Hi Hue, That's definitely one way to go, but the disadvantage that I see of using this way is that you presumably have

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

2003-07-28 Thread Hue Holleran
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 Question - same action, many jsps/views Hi Hue, That's definitely one way

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: 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,

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
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 whether the user clicked cancel, before I call

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
? 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 Action base class which all my other Action classes

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 that the child actions need - this is the child

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
) 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 action after validation ? my base action class sorts out all

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

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

RE: design question about action chaining

2003-04-01 Thread Thorin Linderholm
' 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 chaining On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote

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 a

RE: design question about action chaining

2003-04-01 Thread Thorin Linderholm
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 related pages in the same path scheme so

Re: design question about action chaining

2003-04-01 Thread Paul Yunusov
Yunusov [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: design question about action chaining 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

Re: design question about action chaining

2003-04-01 Thread Igor Shabalov
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, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: design question about

RE: design question about action chaining

2003-04-01 Thread David Graham
Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, 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

Re: design question about action chaining

2003-04-01 Thread Paul Yunusov
: Re: design question about action chaining 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

Re: design question about action chaining

2003-04-01 Thread Igor Shabalov
-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 chaining On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote: I have been tasked with porting an existing web

Re: design question about action chaining

2003-04-01 Thread Kris Schneider
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 Mailing List' [EMAIL PROTECTED] Subject: RE: design question about action chaining Date: Tue, 1 Apr 2003 12

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

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

RE: Design question

2003-03-05 Thread Marco Tedone
: 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 to a formation an user select into a view page. I

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 the

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 (by

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,'03 (03:22 PM GMT+0100), alexj wrote

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 mech
PROTECTED] Subject: Re: Design question: Model component using Business logic beans We use chained exception from jdk1.4, commons.logging, and factoring out 4 components that are independent on Struts [MessageResources, MessageResourcesFactory, PropertyMessageResources

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: Model component using Business logic beans On Mon, 3 Feb

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

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 of Enterprise Application Architecture [1

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

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

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 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: RE: Design question: Model component

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

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

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 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.

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] Subject: Re: Design question: Model component

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

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

2003-01-31 Thread shirishchandra . sakhare
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 what you

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 once and

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 simple

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] Subject: RE: design question about action chainning

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

2003-01-31 Thread BaTien Duong
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 quoted in :Struts in action

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

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 in

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

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.

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 in :Struts in action

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

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

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 Kevin . Bedell
. 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/USHO/SunLife) Subject: Re: Design question Good idea but the other problem

Re: Design question

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

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

Re: Design question

2002-04-29 Thread Will Spies/Towers Perrin
Users Mailing List [EMAIL PROTECTED] Kevin.Bedell@sunlcc: (bcc: Will Spies/Towers Perrin) ife.com Subject: Re: Design question

RE: Design question

2002-04-29 Thread James Mitchell
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! ___ Will Spies Towers Perrin Phone: (215)246-7145

RE: Design question

2002-04-29 Thread Amir Nashat
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 but the other problem is your web server doesn't mix with non-Struts applications

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
I'm sure I've seen some notes on this in the Struts resources to get common behaviour Create your own action class that extends the struts Actions to hold common function calls Have your specific actions extend this default Action You can further subclass the default action e.g. we have a

RE: design question

2002-03-05 Thread Ronald Haring
If key tasks needs to be completed in each Action's perform() method, a good approach is to create a new abstract methods for your subclasses to use in lieu of perform(). The base Action class does its business, and if all is well, then returns the result of the new method. This allows

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
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 methods for your subclasses to use in lieu of perform(). The base Action class does its business, and if all is well, then returns

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 hoping

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 Eddie Bush
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 solution. But then you have to keep the general data in session indeed, which I

RE: design question

2002-03-05 Thread Ronald Haring
- 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 transmitted to the client, so it's secure. I

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 true for

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

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

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

Re: Design question about ActionForm's validate method

2002-02-08 Thread Jonathan Gibbons
PROTECTED] cc: Subject: Re: Design question about ActionForm's validate method In 1.0.x, it is often suggested that each link at least be represented by an ActionForward. This centralizes control over the hyperlinks in the Struts Config, which yields a number of benefits. In Struts 1.1, now

Re: Design question about ActionForm's validate method

2002-02-07 Thread Ted Husted
://www.alexparansky.com -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:47 PM To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method In 1.0.x, it is often suggested that each link at least

  1   2   >