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
r 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 the log file (below) the spring framework creates and > destroys a si

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
reme 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/singleton-design-pattern/> > Singleton Design Pattern | Implementation - Geeksf

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

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

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

Re: File Download with multiple files. Design question

2010-11-20 Thread Paweł Wielgus
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-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-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

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 zip

File Download with multiple files. Design question

2010-11-19 Thread RogerV
://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 additional commands

Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
-2010 15:14 Subject: File 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

Re: File Download with multiple files. Design question

2010-11-19 Thread Li Ying
be welome. Regards -- View this message in context: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html Sent from the Struts - User mailing list archive at Nabble.com

Re: File Download with multiple files. Design question

2010-11-19 Thread RogerV
. 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. - To unsubscribe, e

[s2] design problem

2009-12-07 Thread Tudor Andrei Raneti
i load up dataParams.jsp from main.jsp: [code]  c:when test=${param.dataParams == 'show' and param.data == null} s:action name=dataParams_input executeResult=true/s:action/c:when  [/code] i map it in struts.xml: [code]  action name=dataParams_* method={1} class=loto.action.DataParams    

Re: [s2] design problem

2009-12-07 Thread Wes Wannemacher
: [code] form action=dataParams method=get [/code] because it's supposed to validate while beeing loaded by main.jsp, but it displays alone not included in main.jsp when it displays errors. This is by design (sort of), your input result dispatches to /jsp/dataParams.jsp directly. It works

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

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: 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 majidna...@yahoo.com wrote: Hi, I have a small project and I am new in struts : DB Tables : User (userId, UserName,...,...) Roles(userId,

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

2009-07-21 Thread tsongwei
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Design-Practice-question.-Should-I-use-same

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: 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

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 web.xml) thanks! Martin

Re: Application Design(architecture)

2009-06-15 Thread john feng
no nothing to do with IBM.) John Feng On Sun, Jun 14, 2009 at 12:02 PM, Martin Gaintymgai...@hotmail.com wrote: 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

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-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) thanks! Martin

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

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 like

Re: Application Design(architecture)

2009-06-12 Thread shekher awasthi
/12 Paweł Wielgus poulw...@gmail.com 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

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 shekher.awas...@gmail.com Thanks Pawel for quick reply regarding the application how

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

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 dancd...@yahoo.com wrote: Hello, I am working on an application that needs

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: 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 application

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 this, outside of reading

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

2008-03-18 Thread Nils-Helge Garli Hegvik
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? - To unsubscribe, e-mail: [EMAIL PROTECTED

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 but not with the depth I had

Need help in Action class Design

2008-03-03 Thread Venkat Guru
in context: http://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

Re: Need help in Action class Design

2008-03-03 Thread ravi_eze
in the same page, iam unable to get s:select tag list data how can i maintain the s:select list data, plz help me ASAP, Thanks in Advance, Venkat -- View this message in context: http://www.nabble.com/Need-help-in-Action-class-Design-tp15803822p15806361.html Sent from the Struts - User

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: 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-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 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 and from

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]

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

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 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 it

[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 this

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/instance

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 Jeromy Evans
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 that of the Fragile Base Class

struts2 design question

2008-02-20 Thread eric . jung
), 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 those of the author and not necessarily

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

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:

Struts framework design question: Type Converters and Tags

2008-01-22 Thread jimski
-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 additional commands, e-mail: [EMAIL

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

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 interceptor

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 *

[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

Re: [S2] Struts/JPA Design Practices

2007-11-16 Thread Adam Hardy
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 version, we're also refactoring the internal design so

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

[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

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 generate a PDF report real

Re: [S2] Design Advice Needed

2007-08-02 Thread Mike Baroukh
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 we believe that we would like to do is utilize FOP (http

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 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 Oguz Kologlu
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 folks with more

Re: Struts design best practice issue

2007-07-13 Thread Yoge
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 changes I

Re: Struts design best practice issue

2007-07-13 Thread Viplav Kallepu
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 Laurie Harper
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

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

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 should not know

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 being set.

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.

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

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

[S2] Design patterns

2007-06-11 Thread meeboo
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 archive at Nabble.com

RE: [S2] Design patterns

2007-06-11 Thread Raghupathy, Gurumoorthy
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 instance

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 Kyle Adams
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.nabble.com/-S2--Design-patterns-tf3901386.html#a11062286 Sent from

Re: [S2] Design patterns

2007-06-11 Thread Sami Dalouche
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

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: 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

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 application, and I was wondering about design patterns

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: 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

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: The design of bread crumb trail

2007-05-10 Thread Edward Song
of the process. First 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

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 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: S2: Design Input suggestion

2007-04-06 Thread Harring Figueiredo
] 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 fields are, of course, empty. The design issue I am having has to do

Re: MVC 2 design, how to

2007-04-06 Thread mansour77
. With 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 trying to design

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

S2: Design Input suggestion

2007-04-05 Thread Harring Figueiredo
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 having has to do

MVC 2 design, how to

2007-04-05 Thread mansour77
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 to an Account in the DB

  1   2   3   4   5   >