Database access design question

2002-06-10 Thread rainer juenger
Hi, I am using the Struts Database pooling. My database connection is realised after the sample in the Struts User's Guide. http://jakarta.apache.org/struts/userGuide/building_model.html#databases But I think the sample is very contradicting. In chapter 2.5 Business Logic Beans is said: For

RE: Database access design question

2002-06-10 Thread Vikram Goyal01
To: Struts Users Mailing List Subject: Database access design question Hi, I am using the Struts Database pooling. My database connection is realised after the sample in the Struts User's Guide. http://jakarta.apache.org/struts/userGuide/building_model.html#databases But I think the sample is very

Re: Database access design question

2002-06-10 Thread rainer juenger
not necessarily following the best practices, they are more like proof of concepts than anything else. Rgs Vikram -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:45 PM To: Struts Users Mailing List Subject: Database access design question

RE: Database access design question

2002-06-10 Thread Vikram Goyal01
design question I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize the DataSource? like: dataSource = servlet.findDataSource(null); ?? Thanks Rainer What exactly is your question? The samples given with Struts

Re: Database access design question

2002-06-10 Thread rainer juenger
juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 2:04 PM To: Struts Users Mailing List Subject: Re: Database access design question I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize

RE: Database access design question

2002-06-10 Thread Jerry Jalenak
Mailing List Subject: RE: Database access design question 1. Do not use the session bean to access the datasource... create a data access object which locates the datasource. 2. Lookup the datasource using a jndi name not a servlet. Register your datasource with the jndi server. (Does the servlet

RE: Database access design question

2002-06-10 Thread wbchmura
To: struts-user Subject: Re: Database access design question I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize the DataSource? like: dataSource = servlet.findDataSource(null); ?? Thanks Rainer What exactly is your

RE: Database access design question

2002-06-10 Thread Robert Taylor
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Database access design question I did something and I have been wondering if it is right... So this may be a good time. I have three levels in my

RE: Database access design question

2002-06-10 Thread wbchmura
design question It sounds like your DAO is really a business object and your db object follows the DAO design pattern. I think you have the right concept though. You may want to check out http://groups.yahoo.com/group/model_struts/. It is dedicated to discussing the model layer using Struts

RE: Database access design question

2002-06-10 Thread Robert Taylor
]] Sent: Monday, June 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: Database access design question Thanks for the feedback on that one. No matter how I sliced that one I always had some kind of problem with how I was seperating everything up... I think the part that really confused me

Re[2]: Database access design question

2002-06-10 Thread Rick Reumann
On Monday, June 10, 2002, 10:13:34 AM, wbchmura wrote: wEBc I took a quick look at the yahoo site - and will pursue that further, wEBc but can you recommend any write-ups anywhere on this? I just went through the same struggles you are going through. Robert wrote up a great post

Re: Database access design question

2002-06-10 Thread rainer juenger
pageContext, sessions or what so ever. There must be a way! thanks 1000 times for a hint! Rainer - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:17 PM Subject: RE: Database access design question I'm

Re: Database access design question

2002-06-10 Thread Ted Husted
- Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:17 PM Subject: RE: Database access design question I'm needing to move my data access from my Actions to a 'pure' business bean. Does anyone

RE: Re[2]: Database access design question

2002-06-10 Thread wbchmura
acts correctly. My head hurts sometimes, but the voices tell me it will be okay... -Original Message- From: maillist [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 10:29 AM To: struts-user Subject: Re[2]: Database access design question On Monday, June 10, 2002, 10:13:34 AM

RE: Database access design question

2002-06-10 Thread wbchmura
); } -Original Message- From: jakarta.rainer [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 11:47 AM To: struts-user Subject: Re: Database access design question Sorry but I am in another galaxy as you guys are. My problems are not that complex yet and my knowledge isn't

RE: Re[2]: Database access design question

2002-06-10 Thread Craig R. McClanahan
On Mon, 10 Jun 2002 [EMAIL PROTECTED] wrote: Date: Mon, 10 Jun 2002 13:35:33 -0400 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re[2]: Database access design question ANY information on this would

RE: Re[2]: Database access design question

2002-06-10 Thread wbchmura
... -Original Message- From: craigmcc [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 3:05 PM To: struts-user Cc: maillist Subject: RE: Re[2]: Database access design question On Mon, 10 Jun 2002 [EMAIL PROTECTED] wrote: Date: Mon, 10 Jun 2002 13:35:33 -0400 From: [EMAIL PROTECTED

Re: Struts Design question

2002-06-06 Thread Mark Nichols
From: Yaman Kumar [EMAIL PROTECTED] I have a AformBean in A.jsp and the page action is actionA, actionA processed all AfromBean values and got some dynamic data from Database,Now i would like to keep this data in BFormBean and the actionA forwards the output to B.jsp how to keep the data

Struts Design question

2002-06-05 Thread Yaman Kumar
Hi, I have a design question of struts implementation in my application, I have a AformBean in A.jsp and the page action is actionA, actionA processed all AfromBean values and got some dynamic data from Database,Now i would like to keep this data in BFormBean and the actionA forwards the output

Re: Struts + Tiles: Design Question

2002-05-27 Thread Cedric Dumoulin
' Subject: RE: Struts + Tiles: Design Question Cedric, You are right on the point. I been using this strategies over and over again to share from amon difference action. I works well for me, plus I really hate having JavaScript or hidden field to indicate which action your are intended

Re: Struts + Tiles: Design Question

2002-05-24 Thread Cedric Dumoulin
There is several strategies. Are you sure that you need one single form for navigation and body ? * If navigation and body aren't related, you can put several forms, only one will be selected by browser when submitting. * If navigation and body are related, you need a common

RE: Struts + Tiles: Design Question

2002-05-24 Thread Trieu, Danny
Subject: Re: Struts + Tiles: Design Question There is several strategies. Are you sure that you need one single form for navigation and body ? * If navigation and body aren't related, you can put several forms, only one will be selected by browser when submitting

RE: Struts + Tiles: Design Question

2002-05-24 Thread Sri Sankaran
you workaround it? Sri -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 11:33 AM To: 'Struts Users Mailing List' Subject: RE: Struts + Tiles: Design Question Cedric, You are right on the point. I been using this strategies over and over again

RE: Struts + Tiles: Design Question

2002-05-24 Thread Trieu, Danny
. -Original Message- From: Sri Sankaran [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 9:37 AM To: 'Struts Users Mailing List' Subject: RE: Struts + Tiles: Design Question I am unable to use a common ancestor because some tags (such as html:select, html:radio) must be nested

Struts + Tiles: Design Question

2002-05-22 Thread Sri Sankaran
Struts version: 1.0.2 Servlet engine: Tomcat 4.0.2 I am trying to build a wizard framework using Tiles. It follows the standard Windows wizard metaphor with a body panel and navigation buttons below. I am running into a problem and would like any opinions/suggestions. A logical use of Tiles

Re: Struts + Tiles: Design Question

2002-05-22 Thread Graham Lounder
: Struts + Tiles: Design Question Struts version: 1.0.2 Servlet engine: Tomcat 4.0.2 I am trying to build a wizard framework using Tiles. It follows the standard Windows wizard metaphor with a body panel and navigation buttons below. I am running into a problem and would like any opinions

RE: Struts + Tiles: Design Question

2002-05-22 Thread Sri Sankaran
are modified as well. Thanks Sri -Original Message- From: Graham Lounder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 2:07 PM To: Struts Users Mailing List Subject: Re: Struts + Tiles: Design Question Just a quick suggestion. Couldn't you use javascript in your nav.jsp

Struts Tag Design Question

2002-05-17 Thread Galbreath, Mark
And I simply overlooking a parameter of a particular tag, or is there no way to test a boolean isXxxx method with a Struts tag? Is the logic:equals the best we have (due to the reliance upon beans)? Mark

RE: Design question on roles and tasks

2002-05-13 Thread Jon.Ridgway
that only users in the given role can access the action. Never used this feature so I'm not sure what happens if the user is not in the role. Jon Ridgway -Original Message- From: Chong Oh [mailto:[EMAIL PROTECTED]] Sent: 08 May 2002 21:10 To: 'Struts Users Mailing List' Subject: Design

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

Design question

2002-04-29 Thread Will Spies/Towers Perrin
In my opinion, most ( if not all ) links should be Action URIs. What I mean is, struts views should not post to urls which are JSP struts views. Rather, valid URLs that are posted to ( or even referenced in ) should always be controllers. For those who agree with this philosophy, can you give

Re: Design question

2002-04-29 Thread Kevin . Bedell
[EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: Design question In my opinion, most ( if not all ) links should be Action URIs. What I mean is, struts views should not post to urls which are JSP struts views. Rather, valid URLs that are posted to ( or even referenced

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

Presentation Layer Design Question

2002-04-16 Thread Adolfo Miguelez
Hi All, I am wondering about a design issue since I can not figure out why Craig implemented in that way. Any light or opinion would be appreciated. The point is that usually, AFAIK, results from database queries are planned to be stored in ArrayLists of beans. This ArrayList of beans is sent

Re: Presentation Layer Design Question

2002-04-16 Thread @Basebeans.com
Subject: Re: Presentation Layer Design Question From: Vic Cekvenich [EMAIL PROTECTED] === Can't speak for Craig, but the Beans give me a way to isolate the DB layer. I use CachedRowSet to hold Result and have meta data at any time. It is one step and does not do mapping. Since the DB layer

Struts design question re: form action

2002-04-13 Thread Wellie W. Chao
I'm just curious about a design issue with Struts 1.1. The html:link/ tag has a forward attribute that lets you specify an entry from struts-config.xml as the destination of the link. That way you aren't tied to a particular action or a particular JSP/HTML page. Why isn't there a similar

Re: Struts design question re: form action

2002-04-13 Thread Craig R. McClanahan
On Sat, 13 Apr 2002, Wellie W. Chao wrote: Date: Sat, 13 Apr 2002 10:57:29 -0400 From: Wellie W. Chao [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Struts design question re: form action I'm just curious

Nested Beans and Design Question

2002-04-09 Thread @Basebeans.com
Subject: Nested Beans and Design Question From: Matt Raible [EMAIL PROTECTED] === I have the following structure in my application CourseForm -- TopicForm -- PageForm -- AssetForm Where a CourseForm has an ArrayList of TopicForms, TopicForm has an ArrayList

Re: Nested Beans and Design Question

2002-04-09 Thread @Basebeans.com
Subject: Re: Nested Beans and Design Question From: Vic Cekvenich [EMAIL PROTECTED] === #3. I am not sure arrays are best (then again they might be). Why just not retrieve a list of topics for the course, and click on a topic and retrieve a list of assets, etc? Vic Matt Raible wrote: I

Re: Struts and Client Side JavaScript Design Question

2002-03-28 Thread Ted Husted
Managing JavaScripts in a Struts application is not much different than managing it any Java application, so everything you've already read should apply. One trick is to use the html:rewrite tag to resolve the address to JavaScripts and other HTML assets, so that the path does not have to be

Struts and Client Side JavaScript Design Question

2002-03-25 Thread Jeff_Mychasiw
Greetings. We are in the early planning stages of a rather large Java/jsp application that if I have my way will use struts. There will be a requirement for some convenience features that will need to be in javascript. I understand the pros's and con's of javascript and this will for

design question

2002-03-05 Thread Ronald Haring
Hi all, I've studied the design paper that Ted has put up at his site (http://husted.com/about/scaffolding/strutByStrut.htm) . Very clear explanation Ted, it only left me with one question. In your paper you state that every form should have its own action. However for my last project (and my

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
return ( performAction(mapping,form,request,response, myParameter ) ) } where performAction is an abstract method of the base class. ... -Original Message- From: Ronald Haring [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 12:15 To: '[EMAIL PROTECTED]' Subject: design question Hi

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: Struts design question about maintenance screens

2002-02-22 Thread Ted Husted
The standard DispatchAction can be a handy way to keep various tasks together in the same Action, where they can share code, but without getting into kludgy performs. Dispatch lets you have a separate perform for each task, but all in the same Action, where they can be easier to maintain.

Struts design question about maintenance screens

2002-02-21 Thread theron . kousek
Hi Folks: thanks to your help, you indicated that the Action should preload form values on a maintenance form. This works great. I have an Action object that allows maintenance on a table (call it table A). This action object handles preloading of data as well as the actual updating of

RE: Struts design question about maintenance screens

2002-02-21 Thread Jakkampudi, ChandraseKhar
Subject: Struts design question about maintenance screens Hi Folks: thanks to your help, you indicated that the Action should preload form values on a maintenance form. This works great. I have an Action object that allows maintenance on a table (call it table A). This action object handles

RE: Struts design question about maintenance screens

2002-02-21 Thread Chappell, Simon P
. (608) 935-4526 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:10 AM To: Struts Users Mailing List Subject: Struts design question about maintenance screens Hi Folks: thanks to your help, you

RE: Struts design question about maintenance screens

2002-02-21 Thread theron . kousek
: Subject: RE: Struts design question about maintenance screens 02/21/02 09:38 AM Please respond

RE: Struts design question about maintenance screens

2002-02-21 Thread Emaho, Ghoot
Subject: Struts design question about maintenance screens Hi Folks: thanks to your help, you indicated that the Action should preload form values on a maintenance form. This works great. I have an Action object that allows maintenance on a table (call it table A). This action

RE: Struts design question about maintenance screens

2002-02-21 Thread theron . kousek
Ghoot@PETROTECHNTo: Struts Users Mailing List [EMAIL PROTECTED] ICS.co.uk cc: Subject: RE: Struts design question about

RE: Struts design question about maintenance screens

2002-02-21 Thread Jakkampudi, ChandraseKhar
Cc: [EMAIL PROTECTED] Subject: RE: Struts design question about maintenance screens Wow! Great reply. I am saving this one. thanks, Theron Emaho, Ghoot Ghoot@PETROTECHNTo: Struts Users Mailing List [EMAIL PROTECTED

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

Re: Design question about ActionForm's validate method

2002-02-07 Thread Sean Willson
RE: Design question about ActionForm's validate method The process we followed is very simular to what Ted suggested but depends on how you are approaching the construction of your actions. If you have the ability to write a collection of objects that handle storing and retreiving data

RE: Design question about ActionForm's validate method

2002-02-07 Thread Alex Paransky
Users Mailing List Subject: Re: Design question about ActionForm's validate method RE: Design question about ActionForm's validate method The process we followed is very simular to what Ted suggested but depends on how you are approaching the construction of your actions. If you have the ability

RE: Design question about ActionForm's validate method

2002-02-06 Thread Jonathan Gibbons
[EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: Design question about ActionForm's validate method Matt, I also disagree that you should only use actions when submitting a form. I also believe that in most cases you should never forward a request directly

Re: Design question about ActionForm's validate method

2002-02-06 Thread Sean Willson
RE: Design question about ActionForm's validate methodFor reference I wanted to share how we are using the action framework in our web application. Every single call to every single view on our web site goes through Struts. There are several reasons for this, one we are using Tiles for navigation

RE: Design question about ActionForm's validate method

2002-02-06 Thread Greg Hess
Subject: Re: Design question about ActionForm's validate method RE: Design question about ActionForm's validate methodFor reference I wanted to share how we are using the action framework in our web application. Every single call to every single view on our web site goes through Struts

Re: Design question about ActionForm's validate method

2002-02-06 Thread Ted Husted
this is preferred? Thanks. -AP_ http://www.alexparansky.com -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 2:02 PM To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method The best

RE: Design question about ActionForm's validate method

2002-02-06 Thread Alex Paransky
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 be represented by an ActionForward. This centralizes control over

Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation. The ActionForm's validate method can be configured to verify form data from a page and generate error messages which may then be displayed on the page for the user to see. This works fine

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Nocera
Message- From: Sid Stuart [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:25 PM To: Struts Users Mailing List Subject: Design question about ActionForm's validate method Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation

Re: Design question about ActionForm's validate method

2002-02-05 Thread Jonathan Gibbons
to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Design question about ActionForm's validate method Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation. The ActionForm's validate

RE: Design question about ActionForm's validate method

2002-02-05 Thread Matt Read
to retrieve the correct data. 6. /pages/findClientResults.jsp renders the results from the database. Matt. -Original Message- From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]] Sent: 05 February 2002 17:44 To: Struts Users Mailing List Subject: Re: Design question about ActionForm's

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Scaduto
easier to replace the ForwardAction to a custom action. It sounds to me like you are on the right track. -Rob -Original Message- From: Matt Read [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:59 PM To: Struts Users Mailing List Subject: RE: Design question about ActionForm's

Re: Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
(error.logon.passwordRequired)); } return errors; } Sid Sid Stuart wrote: Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation. The ActionForm's validate method can be configured to verify form data from a page and generate

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
What if your user then hits the Submit button without populating any of the form fields? - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:06 PM Subject: Re: Design question about ActionForm's

Re: Design question about ActionForm's validate method

2002-02-05 Thread Sid Stuart
PM Subject: Re: Design question about ActionForm's validate method Hi, My friend, Lee Crawford, just pointed out to me that the fields of the ActionForm will be null if the validate method is called before the form is submitted, but will be non-null afterwards. This provides a quick

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
True, so I guess the null test will work. - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:55 PM Subject: Re: Design question about ActionForm's validate method You get a zero length string

RE: Design question about ActionForm's validate method

2002-02-05 Thread Greg Hess
Mailing List Subject: Re: Design question about ActionForm's validate method You get a zero length string. Sid dderry wrote: What if your user then hits the Submit button without populating any of the form fields? - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts

Re: Design question about ActionForm's validate method

2002-02-05 Thread Ted Husted
Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Sid Stuart wrote: Hi, I've stumbled across a subtle problem/design question that I don't see mentioned in the documentation. The ActionForm's validate method can be configured to verify form data from

MessageResources - Design question - loading resources from a DB by creating you own PropertyMessageResourcesFactory

2002-02-05 Thread Todd G. Nist
Hello, First, I would like to apologize for the size of this post. I seem to be missing one thing here and can't seem to put my finger on it. We have a database which contains most of the translations for our applications messages and database fields/column labels. There is one table which

RE: RE: Design question about ActionForm's validate method

2002-02-05 Thread ykphuah
is neccessary, for SaveAction, then we need validation. CHeers, Yee Keat - Original Message - From: Robert Scaduto [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Feb 6, 2002 2:31:19 AM GMT+08:00 Subject: RE: Design question about ActionForm's validate method Matt, I

RE: Design question about ActionForm's validate method

2002-02-05 Thread Alex Paransky
, February 05, 2002 2:02 PM To: Struts Users Mailing List Subject: Re: Design question about ActionForm's validate method The best practice now is to use ActionMappings for everything, so that the reqeust passes through the controller. This buys you several important capabilities that become

Design question - output Action

2002-01-22 Thread Carl Hope
I'm fairly new to Struts and have just built my first mini-project. I have a basic question that I couldn't find addressed in the mail archives. I think I understand the input half of a user interaction - when information is input by the user, it is handled on the server via the ActionServlet

Re: Design question on loading form data

2002-01-21 Thread Keith Bacon
Hi Mattias, The form bean is designed for easing the coding for moving of data from action class to HTML form vice versa. Has any-one got a good case for doing anything else? Keith. --- Struts Newsgroup [EMAIL PROTECTED] wrote: Subject: Re: Design question on loading form data From: Vic

Re: Design question on loading form data

2002-01-21 Thread Nick Thomson
. Reset() is invoked automatically by struts. Specifically you cannot detect changes to checkboxes unless they are reset first. - Original Message - From: Mattias Norlander [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 8:52 AM Subject: Design question on loading

Design question on loading form data

2002-01-19 Thread Mattias Norlander
Hello! If i want to fill a form with data (from, say a database) before showing it to the user: Can this be done in reset() method of the form, or should it be in the perform() method of the action class? I think that doing it in the reset() method produces the cleanest code. This can be done

Re: Design question on loading form data

2002-01-19 Thread @Basebeans.com
Subject: Re: Design question on loading form data From: Vic Cekvenich [EMAIL PROTECTED] === Here is sample pseudo code illustrating for one approach in action/perform. Call for the model bean to populate in the action's perform. Maybe the code of that retrieval and anything else having to do

Re: General design question

2002-01-05 Thread Ted Husted
/struts/ Kuntz Peter, NY wrote: Hi, I have a general design question. Assume a web application that represents a use case over several sites. Each of these sites have form fields. Each site has a Next and Previous button except the last an the first which only have either a Next

General design question

2002-01-03 Thread Kuntz Peter, NY
Hi, I have a general design question. Assume a web application that represents a use case over several sites. Each of these sites have form fields. Each site has a Next and Previous button except the last an the first which only have either a Next or a Previous button. Additionally

RE: PLEASE COMMENTS! Design question on very long lists... (a little bit OT)

2001-12-19 Thread Jon.Ridgway
PROTECTED]] Sent: 18 December 2001 11:07 To: struts users mailing list Subject: PLEASE COMMENTS! Design question on very long lists... (a little bit OT) Hi to all! I strongly appreciate struts - it a very valuable tool to work with. So I started to build a EIS-similar application with much DB-Access

PLEASE COMMENTS! Design question on very long lists... (a little bit OT)

2001-12-18 Thread tw . richter
Hi to all! I strongly appreciate struts - it a very valuable tool to work with. So I started to build a EIS-similar application with much DB-Access, business code and so on... (try to work with Jonas EJB Server). But there arer some design question and I do appreciate comments on these. I

Re: PLEASE COMMENTS! Design question on very long lists... (a little bit OT)

2001-12-18 Thread Rakesh
Subject: PLEASE COMMENTS! Design question on very long lists... (a little bit OT) Hi to all! I strongly appreciate struts - it a very valuable tool to work with. So I started to build a EIS-similar application with much DB-Access, business code and so on... (try to work with Jonas EJB Server

RE: PLEASE COMMENTS! Design question on very long lists... (a little bit OT)

2001-12-18 Thread Adriano Labate
, 2001 12:07 PM To: struts users mailing list Subject: PLEASE COMMENTS! Design question on very long lists... (a little bit OT) Hi to all! I strongly appreciate struts - it a very valuable tool to work with. So I started to build a EIS-similar application with much DB-Access, business code and so

RE: Struts Design question

2001-12-13 Thread Frank Lawlor
But my beans already contain the validation! Besides, performing the validation in the ActionForm is effectively tying business logic (data validation) to the web framework dontya think? Well, I put data type and required field validation only in the bean. Validation that is more advanced

Design question - option lists populated from db

2001-12-11 Thread Rob Parker
I need to create some select option lists that are populated from a database. The call to the database will pass in the current user's id to create customized option lists. Where is the best place to create these option lists? If I create the lists in the user form, how can I pass in the user id?

<    1   2   3   4   >