You should be able to do this with standard J2EE security provided
by your web container.
If you store your user credentials in a database, then you may want
to look at SecurityFilter:
http://sourceforge.net/projects/securityfilter/
It allows you to leverage standard J2EE security features but
Hi
Are you only filtering data based on role ?
If you are talking about role-based access of views then we are doing
something like that
1. You can use Container Manager Authentication and restrict access to
URL patterns to only valid users.
2. You can use the vendor-specify XML file
Mohan Radhakrishnan wrote:
I think you can also use the role attribute in struts-config.xml and
restrict access actions. Tiles has a role attribute too ? though we are not
using that.
I came across the role tag of tiles as well, but I guess it's suitable
only if you want to restrict some
hi Drik
once the user have filled up the other 2 forms in the pop window
u can make object of those two forms into your final action and can get the
values
like
Form1 form=new Form1();
Form2 form2=new Form2();
from1.getUserAddress();
from1.getCity();
Hope this works
Regards
Gurpreet Dhanoa
If the forms are in different windows then instantiating new forms I
dont think will work. If you want a non javascript way of doing things
then you'll want to scope the master form to the session, and then keep
populating to from your subforms .
However you do this I imagine that scoping the
hi all!
would anyone in the spirit of diwali like to help me on this one.
how do i direct a form submission to a remote action class, after having
fthe form submitted to a local action class first.
ie, communicate between two action classes, one of which is on a remote
machine. I am looking at
am no expert on security but this might work look what other people might say.
ur security depends on how u call ur remote class
-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 16:12
To: [EMAIL PROTECTED]
Subject: Re: design question
hi all!
would
hi!
thanks for the reply.
How do i do the switch action you talked about.
cheers
ajay
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: design question
Date: Wed, 22 Oct 2003 16:49:32 +0100
AFAIK u can do the same using
David wrote:
When they have no more addresses to enter, they should hit DONE to
move on to the next form.
However, when DONE is selected, the form calls the validate method,
which of course fails because the fields are empty.
I think validation is on by default, so you may want to turn it off
thanks for the advice, Wendy. its up and running :)
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 12:22 PM
To: Struts Users Mailing List
Subject: RE: design question regarding multiple submit buttons
David wrote:
When they have
Subject: RE: Design Question
Actually you could just store a digest of the previous values, and then
compare that with a digest of the new.
-Original Message-
From: sean schofield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2003 22:57
To: [EMAIL PROTECTED]
Subject: Design
which fields changed. The digest will merely tell you if any changed. Sorry.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2003 23:01
To: Struts Users Mailing List
Subject: RE: Design Question
Actually you could just store a digest
() {
//... your comparison here...
}
}
- Original Message -
From: sean schofield [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:20 AM
Subject: RE: Design Question
You are correct that my problem requires more information that just
I have special field objects which with separate methods for jsp setting and
database setting which also track changes. Then I can use reflection to the
specific type and see if any of the objects in the database changed and are
not confused by spurious instance variables. You can then create
If the values are not going to change during the life of the
application, I would suggest using a plugin to set them at startup. See
the MailReader Example application for some sample code.
-Ted.
deepaksawdekar wrote:
I am displaying some dropdown boxes on my jsp. I have to take the values for
Message-ID:
[EMAIL PROTECTED]
From: White, Joshua A (HTSC, CASD) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Design Question - Need to put assertions in Actions?
Date: Fri, 5 Sep 2003 08:53:49 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
|
|Now my questions are :
|1 I am doing write something wrong.
It's better not to club two logically different business process handlers.
I guess you want to reduce the number of Action Classes to be created. If
yes, follow this way
action path=/CreateUser type=navjot.CreateAction
Thanks a lot navjot. I will try this.
Deepak .
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:20 AM
To: Struts Users Mailing List
Subject: RE: Design question
|
|Now my questions are :
|1 I am doing write something wrong.
It's better
hi,
If are getting some collection to the JSP page and just wish to display a
subset of them without changing anything on BL layer, Use Pager Taglib and
get away with it easily.
But there is a downside to it as you may have 1000 records and you just want
to show 10. So, 990 records are burden on
There is a workflow extension for struts. I have read the docs, but did
not use it. You can take a close look at it here
http://www.livinglogic.de/Struts/
Alex.
-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 7:18 PM
To: Struts-Users
In your action configuration set the 'input' URL to point to an action
instead of your JSP and then build your lists in the action.
Steve
-Original Message-
From: Gino LV. Ledesma [mailto:[EMAIL PROTECTED]
Sent: August 10, 2003 10:28 PM
To: Struts Users Mailing List
Subject: Design
Thanks for the quick reply. Does this work if the action
requires additional request parameters, however? Not that
my particular servlet will require it, but some of them do.
For example, say I have something like:
/createObjectB.do?parentID=1
Where ObjectB has ObjectA for its parent (and is
Why not just define the forward action in the selectRecord action mapping
element in your struts-config.xml?
shane
Quoting Erik Price [EMAIL PROTECTED]:
Travis Stevens wrote:
As you can see, the select a record functionality is common. To
implement this I would like to create
Because the foward action should be completely dinamic. The select
action should know nothing concrete about any of the actions that use
the functionality, otherwise one would have to edit the select action
every time a new action is created that uses the select action.
[EMAIL PROTECTED]
Hello,
one way to solve it is not to duplicate code in different Action classes,
but have many ActionMapping entries in your struts-config.xml file.
This way you keep the navigational part of your application away from Action
classes, but still avoid code duplication in Actions.
HTH,
--
Hi Brian,
Why not use different named forwards for the action and access each one from
the action with a:
{
...
return (mapping.findForward(page1/page2/page3));
}
In s-c:
action path=/myAction
type=FQ Class
name=bean
...
forward name=page1 path=/page1.jsp/
forward name=page2
To: Struts Users Mailing List
Subject: RE: Design Question - same action, many jsps/views
Hi Brian,
Why not use different named forwards for the action and access each one
from
the action with a:
{
...
return (mapping.findForward(page1/page2/page3));
}
In s-c:
action path=/myAction
type=FQ Class
Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Design Question - same action, many jsps/views
Date: Mon, 28 Jul 2003 16:26:52 +0100
Hi Hue,
That's definitely one way to go, but the disadvantage that
I see of using this way is that you presumably have
you don't have it: http://www.livinglogic.de/Struts
Hue.
-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: 28 July 2003 16:27
To: 'Struts Users Mailing List'
Subject: RE: Design Question - same action, many jsps/views
Hi Hue,
That's definitely one way
in the flow ...usually something
like /action/Action?method=init
Maybe this will give you some idea for your design?
HTH,
Shane
-Original Message-
From: Hue Holleran [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 1:40 PM
To: Struts Users Mailing List
Subject: RE: Design Question
I have an Action base class which all my other Action classes inherit.
In the execute() of this base class I check whether the user clicked
cancel, before I call the child class execute().
I presume it would be easy enough to store the originating URL in the
session, and if cancel is clicked,
List [EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:52 PM
Subject: Re: Design question: Confirm action after validation ?
I have an Action base class which all my other Action classes inherit.
In the execute() of this base class I check whether the user clicked
cancel, before I call
?
Pls reply
Shashank
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:52 PM
Subject: Re: Design question: Confirm action after validation ?
I have an Action base class which all my other Action classes
: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:26 PM
Subject: Re: Design question: Confirm action after validation ?
my base action class sorts out all the general objects and variables
that the child actions need - this is the child
) from webserver to appserver
Shashank
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:26 PM
Subject: Re: Design question: Confirm action after validation ?
my base action class sorts out all
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote:
I have been tasked with porting an existing web application with it's own
proprietary controller architecture to using Struts.
As they are both web controller architectures, they have many similarities,
but I'm running into one
I think Filters would be a good choice for your needs. You can define a
filter for each piece of logic and then configure them in web.xml for groups
of pages. You'll need to put related pages in the same path scheme so that
you can map a filter to the group instead of each page.
David
' controller (which
seems a bit redundant to me.)
-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: design question about action chaining
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote
I had come to the conclusion that Struts Actions are moreover 'View Adapter
Components' or VAC's (you can quote me on that one!) and should not be
relied on for handling business logic or data collection by any means, just
as a facsimile for pulling model/controller data into the view.
I wrote a
To: [EMAIL PROTECTED]
Subject: Re: design question about action chaining
I think Filters would be a good choice for your needs. You can define a
filter for each piece of logic and then configure them in web.xml for groups
of pages. You'll need to put related pages in the same path scheme so
Yunusov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: design question about action chaining
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote:
I have been tasked with porting an existing web application with it's own
point you will wonder which is more cumbersome: coding
Action classes or having a mile-long struts-config.xml.
Paul
-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: design question about
Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: design question about action chaining
I think Filters would be a good choice for your needs. You can define a
filter for each piece of logic and then configure them in web.xml for
groups
: Re: design question about action chaining
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote:
I have been tasked with porting an existing web application with it's
own
proprietary controller architecture to using Struts.
As they are both web controller architectures
-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: design question about action chaining
On Tuesday 01 April 2003 02:30 pm, Thorin Linderholm wrote:
I have been tasked with porting an existing web
they logically sit in
front of Struts handling requests before Struts gets them.
David
From: Thorin Linderholm [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: design question about action chaining
Date: Tue, 1 Apr 2003 12
When people first hit one of the internationalized pages, I'd like to
check their browser settings for locale.
You don't need to check that yourself. The first time a user hits your site
the RequestProcessor.processLocale() will put a Locale object in their
session. It checks their
Pennsylvania Ave SE 5th Floor
Washington, DC 20003
202-544-0200 x285
http://www.amnestyusa.org
[EMAIL PROTECTED]
David Graham [EMAIL PROTECTED]
03/14/03 05:43 PM
Please respond to Struts Users Mailing List
To: [EMAIL PROTECTED]
cc:
Subject:Re: Design Question
: alexj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 11:29 PM
To: Struts Users Mailing List
Subject: Re: Design question
I got a little question how can I manage that case :
In my project I need to add activities to a formation an
user select
into a view page.
I
I got a little question how can I manage that case :
In my project I need to add activities to a formation an user
select into a view page.
I need to forward the selected formation to an other view
page where this page need to contain specific
populated datas (like branch) from the
On Sat, Feb 22,'03 (03:22 PM GMT+0100), alexj wrote:
What's the best to do if for example I got
a view where an user can choose to view
students by class, view students by year
or view students by year ?
I think the best is to bring back the results in a table in some default
manner (by
Great thanks Rick :)
--
Alexandre Jaquet
- Original Message -
From: Rick Reumann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 5:19 PM
Subject: Re: Design question
On Sat, Feb 22,'03 (03:22 PM GMT+0100), alexj wrote
On Sat, Feb 08, 2003 at 12:34:35AM -0500, Rob Leland wrote:
EditAAction SaveAAction --EditBAction SaveBAction
\
/ \/
\
/
PROTECTED]
Subject: Re: Design question: Model component using Business logic
beans
We use chained exception from jdk1.4, commons.logging, and
factoring
out 4 components that are independent on Struts [MessageResources,
MessageResourcesFactory, PropertyMessageResources
Great. Thanks.
BaTien
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:49 PM
Subject: Re: Design question: Model component using Business logic beans
On Mon, 3 Feb
Hi Ted,
This explanatation has set to rest most of my doubts about action
chainning..And I think the way Most of us use actions(One action to serve the
request like save action)and another to display the page (like getAccountsList
Action )is not action chainning but action relay which is
Thanks, Ted, for clarifying these issues for me.
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: Re: design question about action chaining
In Patterns of Enterprise Application Architecture [1
Michael,
I have been putting my data logic into DAO classes that throw their own
custom exceptions. Based on the exception thrown, I append to the
ActionError object in the Action class. I don't think this answers the
specific question you asked regarding use of the ActionError object in your
This is why Java has exceptions. In our case the backend mostly throws
standard EJB exceptions (RemoveException, CreateException, etc), the
business delegate translates those into our custom application exceptions,
many of which are handled by our base action class, otherwise they bubble up
to
I would have the business components handle their own DB connections (they
shouldn't rely on the presentation layer for that). As far as your errors
coming back to the presentation layer, I usually have a BusinessDelegate
class that the action makes business calls into. That business delegate is
Thanks... custom exceptions... of course...! I must have been blind.
Thanks for the light!
Michael
-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Montag, 3. Februar 2003 19:11
To: 'Struts Users Mailing List'
Subject: RE: Design question: Model component
Hi,
What i have been doing is the following,
I wrote a simple class , which will hold all the
errors in the business class (An ArrayList whoes each
row is an error or message ) , and then send back
this class to the Action class, and then in the Action
class i have written logic to build
On Mon, 3 Feb 2003, mech wrote:
One thing, I'm having a bit trouble with migration is the ActionError
stuff.
One of the things we wanted to do in Struts 1.1, but ran out of time for,
was to switch to using commons-resources for the underlying message
resources stuff, and then build
Craig McClanhan wrote:
In the interim, though, you might want to investigate using
commons-resources directly for your business logic (so you don't have
to depend directly on Struts APIs)
+1
What I'm doing is having the business tier bring back a MessageList and
then just pumping it into
We use chained exception from jdk1.4, commons.logging, and factoring out 4
components that are independent on Struts [MessageResources,
MessageResourcesFactory, PropertyMessageResources, and
PropertyMessageResourcesFactory]. I heard somewhere that these 4 components
will eventually be in commons.
On Mon, 3 Feb 2003, BaTien Duong wrote:
Date: Mon, 3 Feb 2003 20:02:41 -0700
From: BaTien Duong [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: Re: Design question: Model component
In Patterns of Enterprise Application Architecture [1], Martin Fowler
[2] lays out two basic patterns for handling business logic [3].
* Transaction Script - Organizes business logic by procedures where
each procedure handles a single request from the presentation.
* Domain Model - An object
comments:-))??
regards,
Shirish
-Original Message-
From: batien.duong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 PM
To: struts-user
Subject: Re: design question about action chainning(As quoted in :Struts
in action...by Ted Husted et al..)
We achieve what you
Derek Richardson writes:
But you still have to duplicate code in the actions, right? Even if
that code is as simple as:
Service service = Service.getService(SERVICE_KEY);
Foo[] foos = service.getFoos();
request.setAttribute(FOO_KEY, foos);
Action chaining allows this code to be written once and
: Friday, January 31, 2003 12:34 PM
To: struts-user
Cc: husted
Subject: RE: design question about action chainning(As quoted in :Struts
in action...by Ted Husted et al..)
Derek Richardson writes:
But you still have to duplicate code in the actions, right? Even if
that code is as simple
Ted, can you (or someone else) clarify the difference b/t action chaining and
action relay?
Thanks,
Greg
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 5:34 AM
To: [EMAIL PROTECTED]
Subject: RE: design question about action chainning
to break its design
principal. Have a good day and good weekend. :-)
BaTien
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 31, 2003 1:44 AM
Subject: Re: design question about action chainning(As quoted in :Struts in
action
Isn't the action becoming part of an API a good thing?
Having reusable action classes that can be strung together through
struts-config is pretty useful in that you don't have to have as much
coding. You can then have a work pipeline of sorts without having to create
extra action classes or
Ted, will you give me your opinion on my post of Mon 1/27/2003 5:21 PM with a
subject of RE: Two ActionForms colliding on property name? I am wondering whether
you see my splitting of actions into post-actions and pre-actions as action relays or
action chaining.
To use the input attribute in
You've stated it correctly when you said that Actions are your flow controllers. In
the case of your login/getAccounts example, you should have a business object that
handles login, and a business object that gets accounts. You would then have a login
action (use case controller) that would
We achieve what you describe as a chain of actions for re-use with helper
beans and follow Struts design principal as Ted described. The helper beans
can be ready in cache or service pool for reuse. Look at
http://myportal.myb2cb2b.com/com.dbgroups.ppf/model/web/dao.html
Hope this may help.
you get
reuse of presentation code, not just business logic.
-Original Message-
From: BaTien Duong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:09 AM
To: Struts Users Mailing List
Subject: Re: design question about action chainning(As quoted
in :Struts
in action
I could not follow your question.
A good practices that I use is to have centralized navigation in XML,
using Struts menu from sf.net.
So the question is:
in StrutsMenu, how do you highlight the currently selected menu item?
Another question about StrutsMenu:
is it possible to get a string
I could not follow your question.
A good practices that I use is to have centralized navigation in XML,
using Struts menu from sf.net.
.V
Mark Conlin wrote:
Design question regarding navigation menu. (I am using tiles)
Suppose I have a navigation menu with several choices/sections, I would
Bryan -
Looking at Struts as a Model, View, Controller architecture, EJB access is
a strategy that is generally used IN MODEL COMPONENTS.
- The View components are primarily the JSP's that are used for
presentation.
- The Controller components are the Action classes you write. These must
Hi Chong,
Container based security is a topic that comes up regularly on the list try
searching on it.
When you use container based security your authenticated user will be
associated with one or more roles. This is a J2EE feature.
Struts can use the 'role' information in several ways:
- the
.
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/USHO/SunLife)
Subject: Re: Design question
Good idea but the other problem
)
ife.com Subject: Re: Design question
Configure the web server to not recognize the .jsp mime type. Then any
link to a .jsp page will generate an Error 404 Page Not Found. The
servlet mappings should still work fine.
That being said, I've found that whenever I make a decision like this based
on a design preference, I almost
Users Mailing List
[EMAIL PROTECTED]
Kevin.Bedell@sunlcc: (bcc: Will Spies/Towers
Perrin)
ife.com Subject: Re: Design question
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!
___
Will Spies
Towers Perrin
Phone: (215)246-7145
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 but the other problem is your web server doesn't mix with
non-Struts applications
I'm sure I've seen some notes on this in the Struts resources
to get common behaviour
Create your own action class that extends the struts Actions to hold common
function calls
Have your specific actions extend this default Action
You can further subclass the default action e.g. we have a
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 allows
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 methods for your
subclasses to use in
lieu of perform(). The base Action class does its business,
and if all is
well, then returns
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 hoping
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
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 solution. But then you have to keep the general data in session
indeed, which I
-
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 transmitted to the client, so it's
secure. I
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 true for
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
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
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
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 benefits.
In Struts 1.1, now
://www.alexparansky.com
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:47 PM
To: Struts Users Mailing List
Subject: Re: Design question about ActionForm's validate method
In 1.0.x, it is often suggested that each link at least
1 - 100 of 161 matches
Mail list logo