Hello,
This is kind of off-topic, so I apologize in advance. We do have some
J2EE gurus on this mailing list so I decided to ask it here. (Is there
any other *active* mailing list where I can post JMS related questions?)
Anyway, I need some help to develop a JMS based solution. Here's what w
I have the following system:
I have a LoginDataForm called loginDataBean in my seesion wich contains
username, password and roles the user have. Than I have some actions
accessing EJB through helper classes. For example I have a action
/order/detail/show. If that action is called by a normal user
;
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject: Design question Struts -> EJB.
I was really looking forward to read the chapter in
the book on review at theserverside.com on Struts and
EJBs. We are currently implementing a
I was really looking forward to read the chapter in
the book on review at theserverside.com on Struts and
EJBs. We are currently implementing a system and are
going to use struts for the web framework and ejbs for
the model. The java blueprints return an Event from
the would be action class for co
I would like some clarification, Here is what I think I understand
With pre 1.1, if you wanted to perform a task for every action/page your choices
were to override the Action servlet or subclass the Action
and define an abstract myPerform() method. The parent class would perform
common fun
...
-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 PRO
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
>
}
return (list);
}
-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
oller 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:
t;
> 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: R
like 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
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 t
PROTECTED]]
> 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
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
> -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
>
: 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 y
o: Struts Users 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. (D
t; HTH
> Vikram
>
>
> -Original Message-
> From: rainer 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 l
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
do 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
>
: 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
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 maxi
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 th
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
y-Tile. Even then I am forced to
>use JavaScript to indicate >which< of the buttons in the Nav-Tile was pressed.
>
> Could you elaborate on >how< you workaround it?
>
> Sri
>
> -Original Message-
> From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
>
dify this hidden field before submittion.
> -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 commo
round 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 t
sers Mailing List
> 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,
&g
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 anc
ated pages 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
esday, May 22, 2002 2:53 PM
Subject: 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 ru
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
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
the best we have (due to the reliance upon beans)?
Mark
an action-mapping so
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
s/Towers
Perrin)
ife.com Subject: Re:
e or
something.
"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
is.
It's quite a lengthy and enlightening 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
, 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. I was kinda hoping for a struts only solution.
> Thanks for the idea though!
>
&g
To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
Kevin.Bedell@sunlcc: (bcc: Will Spies/Towers
Perrin)
ife.com Subject:
uot;
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[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 wh
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 m
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 t
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
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
I'm just curious about a design issue with Struts 1.1. The 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 attribute for ? Y
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
M
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
ArrayL
Hi,
I am new to struts and am busy reading the various articles and
tutorials and have a question regarding relationship between action
mappings and request/session scopes.
Should an ActionMapping (i.e. a mapping defined in struts-config.xml)
have a one-to-one relationship with a request or s
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
emb
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
ailing List
Subject: Re: design question
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
--
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
> Action
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 i
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 wit
> 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 tru
age-
> 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
ree to voice 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
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
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 hop
ginal Message-
From: Ronald Haring [mailto:[EMAIL PROTECTED]]
Sent: 05 March 2002 12:51
To: 'Struts Users Mailing 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 method
> 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 a
ything is kosher call subclass
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 P
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 fir
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.
http:/
iling List
Cc: [EMAIL PROTECTED]
Subject: RE: Struts design question about maintenance screens
Wow!
Great reply. I am saving this one.
thanks,
Theron
"Emaho, Ghoot"
ICS.co.
Ghoot"
ICS.co.uk> cc:
Subject: RE: Struts design question
about maintenance screens
02/2
-Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 21 February 2002 17:10
> To: Struts Users Mailing List
> Subject: Struts design question about maintenance screens
>
>
>
> Hi Folks:
>
> thanks to your help, you indicated that
ot;Chappell, Simon P"
dsend.com> cc:
Subject:
' End, Inc. (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
>
>
, 2002 11:10 AM
To: Struts Users Mailing List
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
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 d
iling List <[EMAIL 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 be
turned to foo.jsp and not foo.do.
Is there a way to fix this problem?
Thanks.
-AP_
http://www.alexparansky.com
-Original Message-
From: Sean Willson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 11:23 AM
To: Struts Users Mailing List
Subject: Re: Design question about ActionFo
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
ess.form and
> Address.view are ambiguous.
>
> Any suggestion on naming conventions?
>
> Thanks.
> -AP_
> http://www.alexparansky.com
>
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 06, 2002 3:47 PM
> To: Strut
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 the hyperlinks in the
Struts Config, which yields a number of benefits.
In Struts 1.1, now the Ni
me light as to why
> 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:
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 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 navig
"Struts Users Mailing List" <[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
als
, 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 b
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 ab
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 con
e="request"
validate="false">
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/
Sid Stuart wrote:
>
> Hi,
>
>
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
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 vali
lt;[EMAIL PROTECTED]>
> Sent: Tuesday, February 05, 2002 2:06 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 i
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
Su
quot;password", new ActionError
("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 A
]]
Sent: Tuesday, February 05, 2002 12:59 PM
To: Struts Users Mailing List
Subject: RE: Design question about ActionForm's validate method
I'm fairly new to struts (well, about 24 hours actually) and this message
touches on a concept that I've having trouble grasping.
Are you saying
---
From: Sid Stuart <[EMAIL PROTECTED]> on 05/02/2002 09:24 PST
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject: Design question about ActionForm'
4 PST
Please respond 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
vision, we'll do the rest."
-Original 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 th
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.
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
27;s input.
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:5
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 for
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 h
ginal Message -
From: "Mattias Norlander" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 19, 2002 9:52 AM
Subject: Design question on loading form data
> Hello!
>
> If i want to fill a form with data (from, say a database) before showing
> it
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 in
201 - 300 of 408 matches
Mail list logo