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 an
Subject: RE: how to return errors from
Model component
Caterpillar: C
idgway
-Original Message-
From: Donald Ball [mailto:[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 vali
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
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 localiz
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
BDY.RTF
Description: RTF file
:[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 and
On 9/6/2002 at 11:30 AM [EMAIL PROTECTED] wrote:
>What kind of errors do you envision the model throwing up? Do you mean
>an system error that is not supposed to happen (like the DB is not
>available for some reason, or an
>exception has occured?) or user type error like "Not finding a
>reques
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 no
ot;Struts Users
Mailing List"
Subject: how t
BDY.RTF
Description: RTF file
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 good.
13 matches
Mail list logo