Re: Java Singleton , Framework Design Patterns

2019-12-17 Thread Martin Gainty
t take milliseconds. commons.apache.org HTH m. From: Zahid Rahman Sent: Monday, December 16, 2019 2:50 PM To: Struts Users Mailing List Subject: Re: Java Singleton , Framework Design Patterns > i prefer thread-safe implementations > Sometimes we need to h

Re: Java Singleton , Framework Design Patterns

2019-12-16 Thread Zahid Rahman
}}* On Fri, 13 Dec 2019 at 01:33, Martin Gainty wrote: > Singleton: > i prefer thread-safe implementations and generally eschew singletons > (unless extreme political pressure dictates otherwise) > https://www.geeksforgeeks.org/singleton-design-pattern/ > [https://www.g

Re: Java Singleton , Framework Design Patterns

2019-12-14 Thread Zahid Rahman
2019 5:09 PM > To: Struts Users Mailing List > Subject: Re: Java Singleton , Framework Design Patterns > > Hi, > > >?am interested to know which topic prompts your question ? > As you can see from the log file (below) the spring framework creates and > destroys a singl

Re: Java Singleton , Framework Design Patterns

2019-12-14 Thread Martin Gainty
MG>maybe.. see below From: Zahid Rahman Sent: Friday, December 13, 2019 5:09 PM To: Struts Users Mailing List Subject: Re: Java Singleton , Framework Design Patterns Hi, >?am interested to know which topic prompts your question ? As you can see from t

Re: Java Singleton , Framework Design Patterns

2019-12-13 Thread Zahid Rahman
> i prefer thread-safe implementations and generally eschew singletons > (unless extreme political pressure dictates otherwise) > https://www.geeksforgeeks.org/singleton-design-pattern/ > [https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200.png]< > https://www.geeksforgeeks

Re: Java Singleton , Framework Design Patterns

2019-12-12 Thread Martin Gainty
Singleton: i prefer thread-safe implementations and generally eschew singletons (unless extreme political pressure dictates otherwise) https://www.geeksforgeeks.org/singleton-design-pattern/ [https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200.png]<https://www.geeksforgeeks.org/single

Re: Java Singleton , Framework Design Patterns

2019-12-12 Thread Zahid Rahman
Thanks v. Much On Thu, 12 Dec 2019, 06:56 Lukasz Lenart, wrote: > czw., 12 gru 2019 o 06:13 Zahid Rahman napisał(a): > > So my point is I have not been able to find accurate information , if > some > > one could furnish me a Java language specification or recommend a book > > which accurately

Re: Java Singleton , Framework Design Patterns

2019-12-12 Thread Zahid Rahman
12, 2019 12:56:05 AM > Subject: Re: Java Singleton , Framework Design Patterns > > czw., 12 gru 2019 o 06:13 Zahid Rahman napisał(a): > > So my point is I have not been able to find accurate information , if > some > > one could furnish me a Java language specification or

Re: Java Singleton , Framework Design Patterns

2019-12-12 Thread jtbush
If you want a definitive Java source - https://docs.oracle.com/javase/tutorial/ - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Thursday, December 12, 2019 12:56:05 AM Subject: Re: Java Singleton , Framework Design Patterns czw.,

Re: Java Singleton , Framework Design Patterns

2019-12-11 Thread Lukasz Lenart
czw., 12 gru 2019 o 06:13 Zahid Rahman napisał(a): > So my point is I have not been able to find accurate information , if some > one could furnish me a Java language specification or recommend a book > which accurately describes these I would be grateful. Start with Gang of Four http://www.blac

Java Singleton , Framework Design Patterns

2019-12-11 Thread Zahid Rahman
Hi, It is my understanding that Design Patterns like the Java singleton is used by framework developers. I.e. the Bean is a singleton. It is also my assumption that the Java Singleton came in to being because Java is a network centric ground up construction. I don't think I will ever use

Re: File Download with multiple files. Design question

2010-11-21 Thread Paweł Wielgus
Hi Roger, below is Off-Topic as for struts. > That's what I'm doing, but the StreamResult requires an InputStream > which forces the intermediate step of creating a temporary file I'm not so sure, i haven't done it myself, but there were a discussion here some time ago pointing out that one can c

Re: File Download with multiple files. Design question

2010-11-20 Thread Roger Varley
On Sat, 2010-11-20 at 09:41 +0100, Paweł Wielgus wrote: > Hi All, > read about streamResult (I assume You use struts2), and also there is > no need for next action in chain, user can simply check as many files > as he wants and click download what will call downloadAction that will > simply return

Re: File Download with multiple files. Design question

2010-11-20 Thread Li Ying
> Any examples of doing this in struts 2 You can get the HttpServletResponse by: ServletActionContext.getResponse() And then, you can set the download file name, by: response.setHeader("Content-Disposition", "attachment; filename=" + fileName); And then, you can get the Out

Re: File Download with multiple files. Design question

2010-11-20 Thread Paweł Wielgus
ce the first option would be best as I don't need the temp > file, it was my first solution to providing the StreamResult with an input > stream that would download multiple files. > > Regards > > -- > View this message in context: > http://old.nabble.com/File-Download-with

Re: File Download with multiple files. Design question

2010-11-19 Thread RogerV
an input stream that would download multiple files. Regards -- View this message in context: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30258354.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: File Download with multiple files. Design question

2010-11-19 Thread Li Ying
display next > so that I can safely clean up? Any other suggested approaches would be > welome. > > Regards > > -- > View this message in context: > http://old.nabble.com/File-Download-with-multiple-fil

Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
Download with multiple files. Design question Hi I have a requirement to present the user with a list of files stored on the server, and then download the files selected to the user. If the user selects a single file - no problem. However if the user selects multiple files, then, unless anyone

File Download with multiple files. Design question

2010-11-19 Thread RogerV
ext: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona

Re: [s2] design problem

2009-12-07 Thread Wes Wannemacher
jsp/dataParams.jsp >     [/code] > and set up a DataParams-validator.xml. > The problem starts when i submit dataParams.jsp 's form: > [code] [/code] > because it's supposed to validate while beeing loaded by main.jsp, but it > displays alone not included in main.jsp

[s2] design problem

2009-12-07 Thread Tudor Andrei Raneti
i load up dataParams.jsp from main.jsp: [code]    [/code] i map it in struts.xml: [code]     /jsp/main.jsp    /jsp/dataParams.jsp     [/code] and set up a DataParams-validator.xml. The problem starts when i submit dataParams.jsp 's form: [code] [/code] because it's supposed to validate while

Re: Help me design this struts, please

2009-12-02 Thread emil thushanga
Do you know how to setup initial project files you want, This may be helpful to you if you very basic = mvn archetype:create -DgroupId=org.apache.struts -DartifactId=struts2-archetype-starter -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archety

Re: Help me design this struts, please

2009-12-01 Thread Saeed Iqbal
Yes i can send u a project where i did that at this point i dont have time to do all that for you On Tuesday, December 1, 2009, A. Lotfi wrote: > > Hi, > > > > I have a small project and I am new in struts : > > > > DB Tables : > > User (userId, UserName,...,...) > > Roles(userId, Rolename,.) >

Help me design this struts, please

2009-12-01 Thread A. Lotfi
  Hi, I have a small project and I am new in struts : DB Tables : User (userId, UserName,...,...) Roles(userId, Rolename,.) I want to have a jsp page : that has a search form : textfield(userId) and a search button when the user type a userid and press search button :

Re: Design Practice question. Should I use same Action class for different functions?

2009-07-21 Thread tsongwei
is handled), more granularity making things easier to mock > and/or stub. > > Ah, I miss Smalltalk. > > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional co

Re: Design Practice question. Should I use same Action class for different functions?

2009-07-16 Thread Dave Newton
tsongwei wrote: This is a general design practice question. Say if I am designing User Account Management component that does the following: 1) User Profile info update -- updates firs name, last name, etc,... 2) Change password. -- do password verification, and change password 3) User Payment

Design Practice question. Should I use same Action class for different functions?

2009-07-16 Thread tsongwei
Hi, This is a general design practice question. Say if I am designing User Account Management component that does the following: 1) User Profile info update -- updates firs name, last name, etc,... 2) Change password. -- do password verification, and change password 3) User Payment info update

Re: Application Design(architecture)

2009-06-15 Thread john feng
e no nothing to do with IBM.) > > John Feng > > On Sun, Jun 14, 2009 at 12:02 PM, Martin Gainty wrote: >> >> Feng- >> >> I have used ROSE to generate plain jsps (without taglibs) and non-annotated >> POJOs >> will ROSE (or any OOD/OOA design tool) gen

Re: Application Design(architecture)

2009-06-15 Thread john feng
I have used ROSE to generate plain jsps (without taglibs) and non-annotated > POJOs > will ROSE (or any OOD/OOA design tool) generate a complete MVC architecture? > (currently seeking a tool which would auto-generate the 'guts' of struts.xml > and struts-default.xml and we

RE: Application Design(architecture)

2009-06-14 Thread Martin Gainty
Feng- I have used ROSE to generate plain jsps (without taglibs) and non-annotated POJOs will ROSE (or any OOD/OOA design tool) generate a complete MVC architecture? (currently seeking a tool which would auto-generate the 'guts' of struts.xml and struts-default.xml and web.xml) than

Re: Application Design(architecture)

2009-06-14 Thread john feng
What I normally went thru when I started a project. ( -by Rose and import to an IDE) 1. clarify the problem boundary for your system to be built; 2. identify the actors and use cases for the system/subsystem; 4. use case visual realization 5. UML OO design for use case where kicks in OO design

Re: Application Design(architecture)

2009-06-12 Thread shekher awasthi
Some of my questions are Is there any Use of UML How to think in terms of Design Patterns while designing the process or any tool(s) which can help me a bit in this process 2009/6/12 shekher awasthi > Thanks Pawel for quick reply regarding the application how it will look > like i hav

Re: Application Design(architecture)

2009-06-12 Thread shekher awasthi
/12 Paweł Wielgus > Hi Shekher, > i'm no expert in this subject but, > You might read something abut RUP (rational unified process), > then read abut Agile and XP and SCRUM - it's not strictly about design > but it will give some light about the whole process. > In the

Re: Application Design(architecture)

2009-06-12 Thread Paweł Wielgus
Hi Shekher, i'm no expert in this subject but, You might read something abut RUP (rational unified process), then read abut Agile and XP and SCRUM - it's not strictly about design but it will give some light about the whole process. In the mean time try to imagine how this app will look

Application Design(architecture)

2009-06-12 Thread shekher awasthi
been assigned the task for the Application Design and later to lead the development team.From the last so many years, i am only invloved in develpoment whatever i have been asked to develop i just followed that. Now i have to first design the Application than have to lead the development process,i

Design Question Global Properties

2009-06-01 Thread Richard Sayre
I have some global properties in my application that I need to access from several of my JSP pages. In my application I have a base action which all of my actions use. I was thinking of putting a getGlobalProperties method in that action that return an instance of an Singleton that holds my prope

Re: Design Question

2009-01-07 Thread Musachy Barroso
Plugins are not that different than putting all those mappings, classes, etc in the webapp. The limitations would be the same as the S2 limitations (in theory at least). musachy On Tue, Jan 6, 2009 at 7:24 PM, Dan Daly wrote: > Hello, > > I am working on an application that needs different sets

Re: Design Question

2009-01-06 Thread Wes Wannemacher
Perhaps take a look at the OSGi plugin as well... It's in beta, but provides functionality such as deploying bundles of actions during runtime. http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html -Wes On Tue, 2009-01-06 at 16:24 -0800, Dan Daly wrote: > Hello, > > I am working on an applicatio

Design Question

2009-01-06 Thread Dan Daly
Hello, I am working on an application that needs different sets of functionality based on where it is installed.  The Struts 2 plugin mechanism looks like a perfect solution as it would all us to write sets of plugins that we could install as needed. The upper bound on the number of plug-ins

Re: Opinions of "Struts 2 Design and Programming: A Tutorial" (2nd edition)?

2008-03-18 Thread Jeff Miller
I've had this book for about a week now. I bought it because I'm new to S2 and wanted something that could give more detail and examples than the S2 documentation wiki and the "in action" book isn't available until May-ish. S2 Design and Programming serves the purpose

Re: Opinions of "Struts 2 Design and Programming: A Tutorial" (2nd edition)?

2008-03-18 Thread Nils-Helge Garli Hegvik
out a little later this year, but I also noticed "Struts 2 Design and Programming: A Tutorial", which came out with a second edition in January. Has anyone here looked at this, outside of reading the Amazon reviews? -

Opinions of "Struts 2 Design and Programming: A Tutorial" (2nd edition)?

2008-03-18 Thread Karr, David
I'm looking for the best and up-to-date Struts2 books. I see that "Struts 2 in Action" is coming out a little later this year, but I also noticed "Struts 2 Design and Programming: A Tutorial", which came out with a second edition in January. Has anyone here looked at thi

Struts 2: Designing faceted search - a general architecture/design issue

2008-03-03 Thread Magnus
Hi, Does anyone have any experience using Struts 2 to implement a web app that provides faceted search? (Using Lucene/LARQ etc.) I'm wondering what the best approach is, using SiteMesh/Tiles ie, when it comes to the architecture/design of the web app. The basic idea is to provide the user

Re: Need help in Action class Design

2008-03-03 Thread ravi_eze
gt; but after displaying the results in the same page, iam unable to get > tag list data > > how can i maintain the list data, > > plz help me ASAP, > > Thanks in Advance, > Venkat > -- View this message in context: http://www.nabble.com/Need-help-in-Action

Need help in Action class Design

2008-03-03 Thread Venkat Guru
://www.nabble.com/Need-help-in-Action-class-Design-tp15803822p15803822.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2 design question

2008-02-21 Thread Jeromy Evans
enough to follow it up for you. From a design perspective I think it's a negligible issue that people are opinionated about because it's rather easy to understand. "Put First things First" Incidentally, the most significant antipattern present in Struts 2 that affects me is t

Re: struts2 design question

2008-02-21 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > I am confused here. You do know that you don't need to > extend/implement any class/interface right? Or I am missing the whole > point. The original issue was regarding error messages and how they're stored in the action rather than in a thread/inst

[OT] Re: struts2 design question

2008-02-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > 3. Classes can't stand on their own. Neither can a class that's using a static method. > 4. It's easier for Java beginners to mix business logic with > MVC framework code. Easier? Like... typing is actually easier with S2? Never mind, I don't get that one, and th

Re: struts2 design question

2008-02-21 Thread Musachy Barroso
I am confused here. You do know that you don't need to extend/implement any class/interface right? Or I am missing the whole point. musachy On Thu, Feb 21, 2008 at 11:39 AM, <[EMAIL PROTECTED]> wrote: > >Funny; I was thinking the same thing about the static context stuff in > JSF > >that makes

Re: struts2 design question

2008-02-21 Thread eric . jung
>Funny; I was thinking the same thing about the static context stuff in JSF >that makes it really difficult to test in isolation. What makes you think that's difficult? I'm sure you're aware of mock objects. There are a number of mock JSF test frameworks---JMock and Shale come to mind. Writing

Re: struts2 design question

2008-02-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this > kind of code in 2008 and makes me wonder what other antipatterns might > exist in the struts2 codebase. Funny; I was thinking the same thing about the static context stuff in JSF that makes it

Re: struts2 design question

2008-02-21 Thread eric . jung
I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this kind of code in 2008 and makes me wonder what other antipatterns might exist in the struts2 codebase. Dave Newton wrote: > --- [EMAIL PROTECTED] wrote: > >> I'm curious why the developers of struts2 chose to define const

Re: struts2 design question

2008-02-21 Thread Maxx
Strangely it first freezes my browser. Re-testing it now and it's working. I also thought the three dots could come from a shortened url, while it's effectively not. Apologies. Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: struts2 design question

2008-02-21 Thread Dave Newton
--- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Maxx wrote: > > On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans > > <[EMAIL PROTECTED]> wrote: > >> http://www.nabble.com/StrutsStatics...-td15595866.html > > Just to let you know this link does not work (seems incomplete). > Works for me in FF and IE6 a

Re: struts2 design question

2008-02-21 Thread Jeromy Evans
Maxx wrote: On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: Just thought I'd mention that Dave followed this up for you in struts-dev: http://www.nabble.com/StrutsStatics...-td15595866.html Just to let you know this link does not work (seems incomplete).

Re: struts2 design question

2008-02-21 Thread Maxx
On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Just thought I'd mention that Dave followed this up for you in struts-dev: > http://www.nabble.com/StrutsStatics...-td15595866.html Just to let you know this link does not work (seems incomplete). ---

Re: struts2 design question

2008-02-20 Thread Jeromy Evans
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: I'm curious why the developers of struts2 chose to define constants in an interface (StrutsStatics) and then implement that interface in at least 18 classes Just thought I'd mention that Dave followed this up for you in struts-dev: http:/

Re: struts2 design question

2008-02-20 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I'm curious why the developers of struts2 chose to define constants in an > interface (StrutsStatics) and then implement that interface in at least 18 > classes It's likely you'd need to ask the original WebWork developers. Item #17, "Use interfaces only to define

struts2 design question

2008-02-20 Thread eric . jung
hony/xwork2/XWorkMessages.html), and I'm wondering if it's systemic. Can anyone comment on why this particular design decision was made? Thank you. *** IMPORTANT NOTE* The opinions expressed in this message and/or any attachments are

Re: Struts framework design question: Type Converters and Tags

2008-01-22 Thread Ted Husted
I'm not sure how difficult it would be to have the tags look for a type converter first, but if you can come up with a working patch, I'd be happy to review it. HTH, Ted On Jan 22, 2008 9:41 AM, jimski <[EMAIL PROTECTED]> wrote: > > I recently ran into an issue where I noticed that a custom type

Struts framework design question: Type Converters and Tags

2008-01-22 Thread jimski
http://www.nabble.com/Struts-framework-design-question%3A-Type-Converters-and-Tags-tp15019888p15019888.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [S2] Struts/JPA Design Practices

2007-11-29 Thread Ted Husted
On Nov 16, 2007 11:09 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > To answer your question, I haven't had to do much to plug in OpenJPA and > Struts2 > together - in fact, I haven't had to do anything apart from decide whether I > wanted to have a filter or a Struts2 interceptor or a Spring interce

Re: [S2] Struts/JPA Design Practices

2007-11-20 Thread Ted Husted
> Hopefully that's the sort of stuff you're interested in hearing about. Yes, thanks! By "custom interceptors" I meant strategies like Open Session In View, which can be used to implement One Transaction Per Request * http://struts.apache.org/2.0.11/docs/non-ioc-version-of-opensessioninviewint

Re: [S2] Struts/JPA Design Practices

2007-11-16 Thread Gary Affonso
Ted Husted wrote: I know the JPA is growing in popularlity among Struts developers. I was wondering if there are certain Struts 2 features that people where finding useful in using JPA or Hibernate 3 For us it's Hibernate 3 still. We'll be moving to JPA in the code (with Hibernate as the unde

Re: [S2] Struts/JPA Design Practices

2007-11-16 Thread Adam Hardy
ramework code to put through the mangler first. So I've yet to overhaul the versioning or the identity fields (praying for smooth passage). regards Adam Ted Husted on 16/11/07 10:36, wrote: Over on dev@, a couple of us are working on a JPA MailReader. Rather than just try and port the old

[S2] Struts/JPA Design Practices

2007-11-16 Thread Ted Husted
Over on dev@, a couple of us are working on a JPA MailReader. Rather than just try and port the old version, we're also refactoring the internal design so that it's more in line with the JPA overall. I know the JPA is growing in popularlity among Struts developers. I was wondering if

Re: [S2] Design Advice Needed

2007-08-02 Thread Oguz Kologlu
seem to indicate you may choose Jasper, which is likely a better idea anyways. -Wes -Original Message- From: Hoying, Ken [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 7:40 AM To: user@struts.apache.org Subject: [S2] Design Advice Needed I could use some advice from some

RE: [S2] Design Advice Needed

2007-08-02 Thread Wesley Wannemacher
@struts.apache.org Subject: [S2] Design Advice Needed I could use some advice from some folks with more experience and knowledge of Struts2 than I to assist me in determining the correct way (or lay out some viable options) to design a solution for the following senario: We need to generate a PDF

RE: [S2] Design Advice Needed

2007-08-02 Thread Hoying, Ken
[mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 8:07 AM To: Struts Users Mailing List Subject: Re: [S2] Design Advice Needed You should definitely have a look into the struts2-jasperreports-plugin - both for checking out how to write own results and evaluating if you might want to use jasper

Re: [S2] Design Advice Needed

2007-08-02 Thread Mike Baroukh
with more experience and knowledge of Struts2 than I to assist me in determining the correct way (or lay out some viable options) to design a solution for the following senario: We need to generate a PDF report real time based on data in a database that is available for download. What w

Re: [S2] Design Advice Needed

2007-08-02 Thread Rene Gielen
. Regards, Rene Hoying, Ken schrieb: > I could use some advice from some folks with more experience and > knowledge of Struts2 than I to assist me in determining the correct way > (or lay out some viable options) to design a solution for the following > senario: > > We need to gen

[S2] Design Advice Needed

2007-08-02 Thread Hoying, Ken
I could use some advice from some folks with more experience and knowledge of Struts2 than I to assist me in determining the correct way (or lay out some viable options) to design a solution for the following senario: We need to generate a PDF report real time based on data in a database that is

Re: Struts design best practice issue

2007-07-13 Thread Laurie Harper
o find out best > practice. > Please help me in sorting out the issue. Is there any design changes I > have > to do?? > > > -- > Regards > Viplav Kallepu > -- Yoge, AdventNet, Inc. 925-965-6528 [EMAIL PROTECTED] site24x7.com ---

Re: Struts design best practice issue

2007-07-13 Thread Viplav Kallepu
ons in Action Class.?? I was trying to find out best > practice. > Please help me in sorting out the issue. Is there any design changes I > have > to do?? > > > -- > Regards > Viplav Kallepu > -- Yoge, AdventNet, Inc. 925-965-6528 [EMAIL PROTECTED] site24x7.com -- Regards Viplav Kallepu

Re: Struts design best practice issue

2007-07-13 Thread Yoge
in my jsp which is split into three drop down fileds(year,month,day) and in the DTO its a single field. How can manage this. Is it a standard that we can do data type conversions in Action Class.?? I was trying to find out best practice. Please help me in sorting out the issue. Is there any design c

Struts design best practice issue

2007-07-12 Thread Viplav Kallepu
jsp which is split into three drop down fileds(year,month,day) and in the DTO its a single field. How can manage this. Is it a standard that we can do data type conversions in Action Class.?? I was trying to find out best practice. Please help me in sorting out the issue. Is there any design

Re: Design patterns, additional output in JSP if action wants so

2007-06-28 Thread Dave Newton
--- Anton Pussep <[EMAIL PROTECTED]> wrote: > I think that it is a bad solution to have a > parameter "displayForm" that is set by the action, > because the action should not know anything about > the View. It doesn't; it just knows if, based on some business or application logic, a flag is bein

Design patterns, additional output in JSP if action wants so

2007-06-28 Thread Anton Pussep
Hello, I am wondering what a nice design pattern would be for a JSP that shall display an additional form if the action wants so (and not display it at all if not). I think that it is a bad solution to have a parameter "displayForm" that is set by the action, because the action shoul

S2 Design Question

2007-06-20 Thread stanlick
I have discovered an optimized (very little code) solution to CRUD using S2. My next question has to do with CRUD across a 1:M domain model. I have the Preparable and ModelDriven technique working nicely with the id (PK) being set in the BaseAction class. What I would like to work through next

Re: Query on struts application design

2007-06-20 Thread Yoge
Another alternative, Move all the images/css specific to abc.com to a subdirectory named /abc/... Let all the images related to xyz.com be in another sub-directory /xyx/ Change path of images in your application to /abc or /xyz based on the request.*getRemoteHost*() . -- Yoge, AdventNet, Inc.

Query on struts application design

2007-06-14 Thread Rakesh Sharma
Dear All, I am new to struts so would need your help here. My client has an enterprise application(struts1.0 based) with : 1 WAR (virtual host www.abc.com) 1 EJB module Now, the client want the same application(almost same business rules..i.e same EJB module) but in different look and feel

Re: [S2] Design patterns

2007-06-11 Thread Sami Dalouche
e the Actions. The Actions are just here to either query services/domain or create business objects and save them. (See Domain Driven Design recommendations for more information) 4] I only implement SessioNAware, ValidationAware, and so on when I need to. I do not want to clutter ALL my classes

Re: [S2] Design patterns

2007-06-11 Thread Kyle Adams
ating related actions into on Action class with multiple methods. On the other hand, Struts' zero config support doesn't seem to work unless you keep the use cases separated out into separate Action classes. I really like zero config ;-) -- View this message in context: http://www.nabb

Re: [S2] Design patterns

2007-06-11 Thread Jeromy Evans
I agree with Guru. After you've gained familiarity with S2, you need to consider about what's appropriate for the particular use-cases and business/domain model. As soon as you start repeating yourself in your action/view code you know its time to refactor. Here's some of my approaches: - For

RE: [S2] Design patterns

2007-06-11 Thread Raghupathy, Gurumoorthy
well then either of the above should be fine . Regards -Original Message- From: meeboo [mailto:[EMAIL PROTECTED] Sent: 11 June 2007 13:52 To: user@struts.apache.org Subject: [S2] Design patterns Hey all How do you build up your Struts 2 applications architecture wise? Say for ins

[S2] Design patterns

2007-06-11 Thread meeboo
ationAware and so forth. Do you think this is a good approach? It's worked great for us so far. Cheers! -- View this message in context: http://www.nabble.com/-S2--Design-patterns-tf3901386.html#a11059979 Sent from the Struts - User mailing list archiv

Re: Design patterns for communicating between actions

2007-05-27 Thread Mansour
Yoni Amir wrote: Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., You have few opions here, you can you action chaining: http

Re: Design patterns for communicating between actions

2007-05-27 Thread Yoni Amir
The latest struts 2, I think it's 2.0.6 ... and 'hely' was a typo for 'help', of course :) On 5/27/07, Mansour <[EMAIL PROTECTED]> wrote: Which version of struts are you using? Yoni Amir wrote: > Hello, > > I am working on my first struts applica

Re: Design patterns for communicating between actions

2007-05-27 Thread Mansour
Which version of struts are you using? Yoni Amir wrote: Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., a session bean). When B runs

Design patterns for communicating between actions

2007-05-27 Thread Yoni Amir
Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., a session bean). When B runs, it needs to verify that the data is actually available

RE: The design of bread crumb trail

2007-05-12 Thread Ray Clough
I hope I am interpreting your question properly. If not, sorry. It sounds like you are asking when you return to page 1 from page 2 should you re-populate the page 1 form. The answer is usually yes. Either Struts-1 or Struts-2 tags will help in the re-population. If you want to use plain html

RE: The design of bread crumb trail

2007-05-10 Thread Zhang, Larry \(L.\)
Thanks for the answers, but I would like a direct answer to my questions (1)... (2)... . Any thoughts? -Original Message- From: Ray Clough [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 1:41 PM To: Struts Users Mailing List Subject: Re: The design of bread crumb trail Are you

Re: The design of bread crumb trail

2007-05-10 Thread Ray Clough
Are you using S1 or S2? I once implemented a S1 bread-crumbs facility using a custom RequestProcessor to put a stack of page url's into the user's session. This worked well, and allowed a page to return to any of the last 3 pages. I used it to go from the catalog page, where the user made a

RE: The design of bread crumb trail

2007-05-10 Thread Edward Song
rst time I participated in the mailing list. Edward -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 11:58 AM To: Struts Users Mailing List Subject: The design of bread crumb trail Say I have two Jsp pages, Page 1, Page 2. On page 1 I have

The design of bread crumb trail

2007-05-10 Thread Zhang, Larry \(L.\)
Say I have two Jsp pages, Page 1, Page 2. On page 1 I have some text fields such as Name, SSN for example, and the user types in Name and SSN and then submit the form and the navigation goes to page 2. On page 2 I have the bread crumb trail saying Page 1>> Page 2. Notice that Page 1 is a clickable

Re: MVC 2 design, how to

2007-04-06 Thread Ted Husted
On 4/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: How many approach there is ? Where can I read about them ? Just the two. Either put the properties on the Action class, or implement ModelDriven. A third might be to create your own interceptor that did the same thing as ModelDriven, but

Re: MVC 2 design, how to

2007-04-06 Thread mansour77
h the addition of a setModel method, the Action Manager can be injected automatically. HTH, Ted <http://www.husted.com/ted/blog/> On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello every one: I am trying to write a little application to familiarize myself with struts 2. I am try

Re: S2: Design Input suggestion

2007-04-05 Thread Harring Figueiredo
D]> wrote: > > Folks: > > > I have a form that is rendered by calling an action from a get or a put. > > In "edit" mode, the fields are pre-populated from the POJO (param to get > the POJO is passed on the URL GET). > In "create" mode, the field

Re: S2: Design Input suggestion

2007-04-05 Thread joey
Folks: I have a form that is rendered by calling an action from a get or a put. In "edit" mode, the fields are pre-populated from the POJO (param to get the POJO is passed on the URL GET). In "create" mode, the fields are, of course, empty. The design issue I am havin

Re: MVC 2 design, how to

2007-04-05 Thread Ted Husted
ED] <[EMAIL PROTECTED]> wrote: Hello every one: I am trying to write a little application to familiarize myself with struts 2. I am trying to design the application using mvc2. the application is nothing but a small utility for invoices. It store, retrieves and update invoices. Each invoice belongs

  1   2   3   4   5   6   >