Here is a good tutorial by Rick Reumann on using struts with iBATIS
that could be helpful.
http://www.reumann.net/struts/ibatisLesson1.do
Larry
On Wed, 12 Jan 2005 02:55:50 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> On Wed, 12 Jan 2005 09:29:34 +, Mark Benussi
> <[EMAIL PROTECTED]> wrot
On Wed, 12 Jan 2005 09:29:34 +, Mark Benussi
<[EMAIL PROTECTED]> wrote:
>My problem is that I am having to create duplicate JSPs and actions for the
> create and update processes.
Hi, Mark,
What makes you think you have to create different JSPs, Actions, etc.?
You don't, but without knowing
Mark Benussi wrote:
I have a web based application which allows the Creation, Update, Read
and Deletion of Data objects (Nothing new here).
All data changes are done by calling Manager methods with Action Forms
to update the relevant data e.g.
new ShopManager().createOrder(createOrderForm);
or
I share the createX and editX actions form-beans "xForm" (I usually use
session scope because an extra special field called "vo").
In "create action" I usually have an extra field ("vo") in my form-bean
that I don¹t use.
In "edit action" I must check if the "vo" exists (the bean that is be
The only difference between the pages is that they call different
actions i.e.
/order/create/stage1.do vs /order/update/stage1.do
Try using DispatchAction: http://husted.com/struts/tips/002.html
You can consolidate your create() and update() 'execute' methods within
one action class.
-O
5 matches
Mail list logo