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
BDY.RTF
Description: RTF file
Subject: how to return errors from Model
component
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
:[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
BDY.RTF
Description: RTF file
- 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
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
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
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
Subject: RE: how to return errors from
Model component
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
12 matches
Mail list logo