Rob,
Hope this helps - it's from a 'working' system. Ask
for more explanations - or better still beat your way
thru the struts docs. No escaping it takes time to get
your head around this stuff - but it's brill once you
get the hang of it!
Keith.
PS - My code hasnon-standard msg logging the text
to put
this together,
Rob
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 7:34 AM
To: Struts Users Mailing List
Subject: Re: Design question - option lists populated from db
Rob,
Hope this helps - it's from a 'working' system. Ask
for more
for
taking the time to put
this together,
Rob
-Original Message-
From: Keith Bacon
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 7:34 AM
To: Struts Users Mailing List
Subject: Re: Design question - option lists
populated from db
Rob,
Hope this helps - it's from
session scoped lists also.
I'll be watching responses to your question for more ideas.
Andy
- Original Message -
From: Rob Parker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 3:44 PM
Subject: RE: Design question - option lists
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 11:32 AM
Subject: RE: Design question - option lists populated from db
Hi Rob,
Ah yes - my system is very simple. I'm not an advanced
user - as a 'simpleton' I like to have all the
validation
That is exactly what I needed! Thanks,
Rob
-Original Message-
From: Will Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 9:28 AM
To: Struts Users Mailing List
Subject: Re: Design question - option lists populated from db
Or, don't do the automatic validation. Set
i believe that you could subclass ActionServlet and implement the
processPreprocess method. this is called before processActionForm and
processPopulate.
On Fri, 7 Dec 2001 13:08:10 -0800 (PST), Jon Wall wrote:
.
.
.
having a problem with the Save action. The issue is
that I need to retrieve
Hi Ted -
Thanks for the input. A light went on when I read
this...I'd initially wanted to just include my
existing components in a thin composition ActionForm
class - in other words, if I had a Widget component,
I'd create a WidgetForm class with getWidget() and
setWidget(), then my form would
Jon Wall wrote:
1. The String/boolean requirement. Everything I'd
tested happened to be String or boolean, but Ted
pointed out this wouldn't work for nested tags. I'm
assuming, then, that the ActionForm performs another
function that I hadn't thought about - converting the
String and
Ted Husted wrote:
If you find something that works better for you, be sure to report back.
We aren't jealous ;-) Adopt and adapt.
Or, if you find one I haven't listed here, be sure to let me know.
http://husted.com/struts/links.htm#mvc/frameworks
-- Ted Husted, Husted dot Com, Fairport NY
If I could jump in and ask a question,
I have searched this list for a best practice regarding the relationship between
formbeans, value objects, and formatting/cleaning data.
I found the discussion between Jon and Ted interesting.
I am gearing up to try and use struts in my current
I've been lurking on this list for a while, and I
finally have time to look hard at Struts for a web
application that I'm working on. I have a coupla
questions.. 1. This first question I found reference
to in the archives
(http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18281.html)
cc:
Subject: Struts Design question
12/07/2001
:
Subject:
Struts Design question
12/07/2001
03:08 PM
Jon Wall wrote:
I've been lurking on this list for a while, and I
finally have time to look hard at Struts for a web
application that I'm working on. I have a coupla
questions.. 1. This first question I found reference
to in the archives
On Fri, 2001-12-07 at 22:37, Jon Wall wrote:
Hi Brian -
Thanks for the responses. Some more information and
clarification...
Well, I put data type and required field validation
only in the bean.
I'm doing this type of validation on the client-side
in JavaScript already. I prefer
Consider a situation where you want to display a straght listing of items from a
database. Something like where you would display a listing of 1-20 products on page
1, 21-40 on page 2, etc. There seem to be two ways this gets implemented.
1. Pull the entire table contents, store them into a
PROTECTED]
Sent: Friday, November 30, 2001 8:43 AM
Subject: Iterate Design Question
Consider a situation where you want to display a straght listing of items
from a database. Something like where you would display a listing of 1-20
products on page 1, 21-40 on page 2, etc. There seem to be two
usiness logic beans?=
X-Mailer: Sysdump.com
X-Originating-IP: 12.83.106.244
Content-Type: text/plain; charset=iso-8859-1
From: [EMAIL PROTECTED]
I am trying to stick with the MVC paradigm and keep separate the model from the view.
As the Struts User Manual suggests, I am writing the business
see dbmanager as model.
greetings
-Original Message-
From: Nobody [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. November 2001 05:30
To: Struts Users Mailing List
Subject: =?ISO-8859-2?Q?Newbie design question - How to use properly use
a connection pool in the b=
usiness logic beans?=
X
[EMAIL PROTECTED]
Sent: Friday, November 23, 2001 1:30 PM
Subject: Re: Design question - Action Form vs Business Delegates/Value
Objects
That sounds quite clever.
So the adapter class itself has no fields, only getters and setters?
Do the adapters need to perform any conversions
Michelle,
You wrote
You're probably right. So far I have only used it for Strings and numbers
for which no special mapping was required. In this case it was simple to
implement.
I've tred and it works for Long datatype. Have you try for int or long?
What about editing a record? if you don't
]]
Sent: Monday, November 26, 2001 9:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Design question - Action Form vs Business Delegates/Value
Obj ects
Is your form bean in session or request scope?
I always use session scope to ensure that existing data in vo's are not
lost.
HTH,
Michelle
From: Hoang
of the values
that I did not display as hidden field or text field are lost.
Thanks,
Hai
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 9:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Design question - Action Form vs Business
. Not only
how to do it but also where to do type conversion (i.e. in the Action Form
Bean??)
Thanks
Roland
-Ursprungliche Nachricht-
Von: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 23. November 2001 04:37
An: Struts Users Mailing List
Betreff: Re: Design question - Action Form
To: 'Struts Users Mailing List'
Subject: Design question - Action Form vs Business Delegates/Value
Objects
Hello,
we're working on a quite large project with J2EE (including EJBs) and we're
using Struts (we're still in the early phases). To design a clean
application, I've defined different object
: Freitag, 23. November 2001 09:17
An: 'Struts Users Mailing List'
Betreff: RE: Design question - Action Form vs Business Delegates/Value
Objects
I've had the same problem as you describe and like yourself have created a
mapper framework, see http://husted.com/struts/resources/mapper.zip. It can
Mailing List
Subject: AW: Design question - Action Form vs Business Delegates/Value
Objects
Hi Francois
Will yor mapper framework become a part of jakarta commons? What are the
plans?
When should I use David Winterfeld's validation framework and when yours?
Can they work in parallel?
TIA
Roland
to it )
-Original Message-
From: Màris Orbidàns [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:54 PM
To: Struts-list (E-mail)
Subject: design question
Hello
I have several questions about design, best practises:
1) Where to store client's profile
To: Dmitri Colebatch
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Design question - Action Form vs Business Delegates/Value
Obj ects
Hi Dim,
Your example is similar to my approach with the exception that you are still
duplicating
methods of the value object inside of the action form. Instead
://husted.com/struts/resources/MonkeyStruts.htm
-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 10:36 PM
To: Struts Users Mailing List
Subject: Re: Design question - Action Form vs Business Delegates/Value
Obj ects
yes, thats fine _in
-mail) [EMAIL PROTECTED]
CC: 'Michelle Popovits' [EMAIL PROTECTED]
Subject: RE: Design question - Action Form vs Business Delegates/Value Obj
ects
Date: Fri, 23 Nov 2001 09:18:18 -0500
Michelle,
thanks, now I got it.
The problem I see with the approach you describe is that it forces all the
data
it in the http-session.
hope this helps
Alexander
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: RE: design question
It is quite tricky to answer your question as you did not mention
additional
John Yu wrote:
Struts is clever enough to call myEmployeeBean.getEmployeeVO().getName().
Something to watch is that Struts is also clever enough to populate any
String or boolean public property property on employeeVO from a query
string. So if employeeVO had another property, like role,
Hello
I have several questions about design, best practises:
1) Where to store client's profile information (like login name) ?
session or system state bean ?
2) How to create and use a system state bean ?
System state bean should be in scope session, shouldnt it ?
3) Where to put
complete than the mapper on Ted Husted's site but...
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 12:10 PM
To: 'Struts Users Mailing List'
Subject: RE: design question
-Original Message-
From: M`ris Orbid`ns [mailto:[EMAIL
can then be passed to the back end (no unnecessary
handling of the data).
HTH,
Michelle
From: Sobkowski, Andrej [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Design question - Action Form vs Business Delegates
waste resources.
Thanks.
Andrej
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Design question - Action Form vs Business Delegates/Value
Objects
Hi,
I suggest
on Ted Husted's site but...
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 12:10 PM
To: 'Struts Users Mailing List'
Subject: RE: design question
-Original Message-
From: M`ris Orbid`ns [mailto:[EMAIL PROTECTED]]
Sent
:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Design question - Action Form vs Business Delegates/Value
Objects
Hi,
I suggest to not duplicate variables that are in your Value Objects in your
form object. Instead
.
HTH,
Michelle
- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 5:34 PM
Subject: RE: Design question - Action Form vs Business Delegates/Value Obj
ects
Hi,
I
To: Struts-list (E-mail)
Subject: design question
Hello
I have several questions about design, best practises:
1) Where to store client's profile information (like login name) ?
session or system state bean ?
2) How to create and use a system state bean ?
System state bean
already?
Matt O'Haire
Trysoft Corporation Ltd.
http://www.trysoft.com
-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 08:35
To: Struts Users Mailing List
Cc: '[EMAIL PROTECTED]'
Subject: RE: Design question - Action Form vs Business Delegates
- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 5:34 PM
Subject: RE: Design question - Action Form vs Business Delegates/Value Obj
ects
Hi,
I also agree with Michelle
]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 5:34 PM
Subject: RE: Design question - Action Form vs Business Delegates/Value Obj
ects
Hi,
I also agree with Michelle...
I think what you are thinking is maybe you could use the struts form _as_
the value object
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 5:34 PM
Subject: RE: Design question - Action Form vs Business Delegates/Value Obj
ects
Hi,
I also agree with Michelle...
I think what you are thinking is maybe you
resources.
Thanks.
Andrej
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Design question - Action Form vs Business Delegates
It's mainly a security thing. So the value is tied to your security
needs.
It first came up in thread regarding MVC purity, and ensuring that
control passed through an Action before it went to a JSP.
The basic idea is that if you have an architecture where all flow goes
through Actions and
Hi Folks
I am wanting to know what people think is better. To have all the jsp
files in the root directory of the web app or in a directory like
WEB-INF/jsp-pages
I have seen in a few places people putting all there jsp-pages in this
directory and I cannot see the advantages in doing so,
Hello all,
I downloaded Struts last week and have enjoyed playing with it. I've come
upon a design problem and I was hoping some folks on this list could help
solve it. I've had no luck finding an answer in the mail archives.
I want to maintain a list of songs. Through a web interface, I want to
, August 08, 2001 9:30 AM
To: '[EMAIL PROTECTED]'
Subject: Struts Design Question
Hello all,
I downloaded Struts last week and have enjoyed playing with it. I've come
upon a design problem and I was hoping some folks on this list could help
solve it. I've had no luck finding an answer in the mail
corresponding to each parameter name, the form
will contain all of the request parameter values when your action class is
called.
--
Martin Cooper
- Original Message -
From: Andreas Leitner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 1:13 AM
Subject: Newbee: design
be situations where this would be extremely convenient, and as
long as it works I'd say do it if it fits your needs...
Troy
- Original Message -
From: Erik Hatcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 12:46 AM
Subject: Re: Templates: a design question
Hello all,
I am very new to Struts and I find it interesting. I like the action mapping and also
templates, but I have difficulties using them together.
E.g. I have a central page, say Main.jsp that has a template which contains constant
header and footer and a variable content part. This
: a design question
Hello all,
I am very new to Struts and I find it interesting. I like the action mapping
and also templates, but I have difficulties using them together.
E.g. I have a central page, say Main.jsp that has a template which contains
constant header and footer and a variable content
The approach I use (and I believe it is a common approach) is to have two
jsp pages for each page on my site that is going to use templates.
MainLayout.jsp - the main template layout page.
ShopCart_content.jsp - the actual content of the shopping card page.
ShopCart.jsp - the shopping cart
I have a detail screen with some fields on it
and a save button, reset button and a link to the master page...
How do I return to the same page after the save ?
let say the link to this page is something like
/editPersonalInfo.do?action=edit
thanks,
Kris
P.S. can you put me in cc when
: Tuesday, June 26, 2001 10:26 AM
Subject: design question
I have a detail screen with some fields on it
and a save button, reset button and a link to the master page...
How do I return to the same page after the save ?
let say the link to this page is something like
/editPersonalInfo.do
On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote:
I have a design question regarding file upload/download which is not
completely Struts related but I was hoping someone could provide some
suggestions. I have succeeded with the upload using the struts upload
package, and then I load the file
Message-
From: Prakash Dominic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 6:52 PM
To: [EMAIL PROTECTED];
'[EMAIL PROTECTED]'@jaydemail.com;
[EMAIL PROTECTED]
Subject: RE: Basic Design Question...
I understand MVC/Model 2. And I don't
think Action layer in Struts map to Model
]]
Sent: Wednesday, May 09, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: Basic Design Question...
Hello Folks,
A quick design question. This might be nit
picking from a design standpoint but still a
valid question.
Struts uses the Action.perform(...) API for
action hadling
Hello Folks,
A quick design question. This might be nit
picking from a design standpoint but still a
valid question.
Struts uses the Action.perform(...) API for
action hadling/controller. I am curious to know
why Servlets can't be used for the Action Handling
layer. That way there is no need
Title: RE: Basic Design Question...
Read up on the MVC/Model 2 design pattern. Struts is based on this design pattern. It much better to have one servlet (controller) and several actions (models), than to have serveral servlets.
-Original Message-
From: Prakash Dominic [mailto:[EMAIL
:03:01 -0700
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: Basic Design Question...
Read up on the MVC/Model 2 design pattern. Struts is based on this design
pattern. It much better to have one servlet (controller) and several
actions (models), than to have serveral servlets
I have a design question regarding file upload/download which is not
completely Struts related but I was hoping someone could provide some
suggestions. I have succeeded with the upload using the struts upload
package, and then I load the file into an Oracle BLOB field. Now I need to
get it back
..). Any help-tips will be
greatly appreciated. Thanks a lot.
cheers,
Amar..
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: File upload/download design question
I have a design question regarding
Hi,
I'm going through Struts code trying to understand how this whole thing
works. I could figure out almost everything except one thing: Why do Action,
ActionForm and ActionMappings classes keep references to the ActionServlet?
Can anybody explain this?
Thanks
Alex
Why do Action, ActionForm and ActionMappings classes keep references
to the ActionServlet?
So that they can access the many features available through the
servlet, like logging and (lately) a JBDC DataSource.
The ActionServlet is like a switchboard, and the references a way they
can dial "0"
]
Subject:design question
As I understand it, is the basic design of struts generally
to avoid
any direct Java code in the .jsp files, and do everything
through tags?
And although we can so things within % % tags
"Lacerda, Wellington (AFIS)" wrote:
If you can identify consistent patterns in your scriptlet usage, yes.
Otherwise it's questionable. Even the division of labor is questionable case
you can't, because page designers will end up having to deal with several
different tags used once or twice
Jim Richards wrote:
As I understand it, is the basic design of struts generally to avoid
any direct java code in the .jsp files, and do everything through tags?
Tags and beans, yes.
And although we can so things within % % tags, it is not
preferred?
That's the conventional wisdom;
One issue not really discussed is the performance
aspect of using tags. Looking at the generated Java
source from a JSP, a single tag can be expanded into 5
or more lines of Java code. For a simple tag like
"ifNull", I would think using scriptlets with a if
statement will lead to better
wow.thanks for the explanation!!
joe
ord'
Thans,
Malcolm
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Actions - design question + an offtopic question
Joe Peer wrote:
hi,
i just read Craig's answer to denis' ques
Malcolm Davis wrote:
This "Security" issue has always bothered me.
The servlet API provides a Form Based Authentication via 'j_username' and '
j_password'.
Tomcat supports this feature, but I don't see it in Struts.
Are there plans to support Form Based Authentication via 'j_username' and
Hi,
I'm re-designing a web application that is mainly running with
servlets/jsps/conn-pooling.
I started using struts for prototypes, and I really like its architecture.
The new design has to be robust and scalable because we expect considerable
traffic. It is clear that the data tier should be
Juan Gargiulo wrote:
Hi,
I'm re-designing a web application that is mainly running with
servlets/jsps/conn-pooling.
I started using struts for prototypes, and I really like its architecture.
The new design has to be robust and scalable because we expect considerable
traffic. It is clear
shankar wrote:
Hi,We
have been using the Model 2 architecture , but have religously avoided
the use of beans as we were using a lowend server(which was quite heavily
loaded) and were anxious to avoid unnecessary object creation .This
is what we did -
Client requests go to a Servlet. The
Juan Gargiulo wrote:
Craig,
Thanks a lot for your answer.
I think that I'm very close of defining the architecture for my application.
Using action classes as adapters and session EJBs for business logic sounds
good.
Yep.
Also using EJBs as actionforms is a good idea because they are a
, 2000 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Design question
Juan Gargiulo wrote:
Craig,
Thanks a lot for your answer.
I think that I'm very close of defining the architecture for my
application.
Using action classes as adapters and session EJBs for business logic
sounds
good.
Yep
Hi,
I'm creating a struts application and trying to figure out how I can
cache data using ActionServlet in application scope. The info can be
refreshed during a day, and application has to be available 24/7 ( so
it's not possible to restart the servlet and refresh cache). E.g.
product list that
Hi Alex,
I'm creating a struts application and trying to figure out how I can
cache data using ActionServlet in application scope. The info can be
refreshed during a day, and application has to be available 24/7 ( so
it's not possible to restart the servlet and refresh cache). E.g.
product
301 - 382 of 382 matches
Mail list logo