how to return errors from Model component

2002-09-06 Thread Donald Ball
Hey guys, I have an MVC-type question. My View captures data from the user and sends it to the Controller, which validates and massages it and uses it to configure the Model and tell the Model to do something. Based on the something, the Controller sends another View to the client. So far so

RE: how to return errors from Model component

2002-09-06 Thread wbchmura
BDY.RTF Description: RTF file

Re: how to return errors from Model component

2002-09-06 Thread Tim T. Young
Subject: how to return errors from Model component

Re: how to return errors from Model component

2002-09-06 Thread Ted Husted
I generally use the second approach. The whole ResourceBundle concept is part of the Java platform and not Struts specific. So I have I my business classes return message tokens and any pertinent replacement parameters. The parameters do not usually need to be translated so this is usually

RE: how to return errors from Model component

2002-09-06 Thread Jon.Ridgway
:[EMAIL PROTECTED]] Sent: 06 September 2002 16:11 To: [EMAIL PROTECTED] Subject: how to return errors from Model component Hey guys, I have an MVC-type question. My View captures data from the user and sends it to the Controller, which validates and massages it and uses it to configure the Model

RE: how to return errors from Model component

2002-09-06 Thread wbchmura
BDY.RTF Description: RTF file

RE: how to return errors from Model component

2002-09-06 Thread Jon.Ridgway
- are there any plans to extend Struts to support the storing of resources in a LDAP/RDBMS store?) Jon Ridgway -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 16:41 To: 'Struts Users Mailing List' Subject: RE: how to return errors from Model component

Re: how to return errors from Model component

2002-09-06 Thread Eddie Bush
Jon.Ridgway wrote: Hi All, As Ted has pointed out you might also want to get your messages from the resource bundle, in which case you would just use the key to key into the bundle (I have had a number of clients recently however that wanted to use LDAP/RDBMS as a central store for localized

RE: how to return errors from Model component

2002-09-06 Thread Kenny Smith
Hi, Someone on the list once said that the Model should not know its in a web app... I totally agree with this statement, but I've been having real problems keeping the Model from knowing it's a webapp and still being able to properly share a database connection. I'm still a beginner to java

RE: how to return errors from Model component

2002-09-06 Thread Jason Rosen
a custom Struts ExceptionHandler to deal with the map or something. Jason Rosen -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 8:41 AM To: 'Struts Users Mailing List' Subject: RE: how to return errors from Model component Hi Donald

RE: [Share DB Connections] how to return errors from Model component

2002-09-06 Thread Tim T. Young
Subject: RE: how to return errors from Model component

Re: how to return errors from Model component

2002-09-06 Thread Ted Husted
A typical approach is to pass a DataSource up to the model (hence the DataSource manager). The model then just uses whatever DataSource it is given to snag a connection. I recently came up with a ConnectionAdaptor that can be used by the model directly. The servlet instantiates the adaptor