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

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: struts2 design question

2008-02-21 Thread Jeromy Evans
[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. Actually I only linked to that discussion to show that Dave had been courteous enough to fo

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
Hi, 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 (see http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/StrutsStatics.html). The"interface constant" pattern has b

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

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: jsp page/actions design question

2006-11-13 Thread Chris Pratt
I'd look at either JSP Include or Tiles. (*Chris*) On 11/13/06, fea jabi <[EMAIL PROTECTED]> wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can

Re: jsp page/actions design question

2006-11-13 Thread Lixin Chu
you can use <%@ include file="..." %> to include the common JSP. On 11/14/06, fea jabi <[EMAIL PROTECTED]> wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so

jsp page/actions design question

2006-11-13 Thread fea jabi
Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can be re-used in the other one too. The way I have designed is for a jsp have a prepare action and dispa

Re: Struts form design question

2006-08-01 Thread Adam Gordon
it means struts will read input fields into your form automatically. Im sure you could go the ajax way and add / delete from your ActionForm without re-loading the page. -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: 31 July 2006 21:02 To: Struts Users Mailing List Su

RE: Struts form design question

2006-08-01 Thread Adam Gordon
d/modified/removed. It would be awesome if Struts did this automatically on form submittal but I'm not sure it can. Hope that was clear. Thanks, -Adam -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, 01 August 2006 04:04 To: Struts Users Mailing List

RE: Struts form design question

2006-08-01 Thread Lance
ay and add / delete from your ActionForm without re-loading the page. -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: 31 July 2006 21:02 To: Struts Users Mailing List Subject: Struts form design question Hi folks. The more I think of this problem, the more I think that

Re: Struts form design question

2006-08-01 Thread Antonio Petrelli
Adam Gordon ha scritto: We have a table which we populate with a user's choice of custom registration fields (name, email, phone, company, etc...). Probably this can help you: http://struts.apache.org/1.x/userGuide/building_controller.html Go to section: 4.3.3 Map-backed ActionForms (Adam, than

Struts form design question

2006-07-31 Thread Adam Gordon
Hi folks. The more I think of this problem, the more I think that we will be unable to use only Struts for this particular situation. We have a table which we populate with a user's choice of custom registration fields (name, email, phone, company, etc...). Each row in this table is essentially

Design question

2006-07-06 Thread fea jabi
have a table in one of the columns have . not all rows have the . need to validate the user entered values in the using validator.xml. Created an object.java file which holds the row data of the table. Created a list of these row objects. Not sure how to proceed now. should I put the Lis

RE: Struts Design question

2006-06-21 Thread Givler, Eric
If you are using Struts 1.2.9, then lookup EventActionDispatcher. -Original Message- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 1:39 PM To: Struts Users Mailing List Subject: Re: Struts Design question Monkeyden wrote: > If your implementation

Re: Struts Design question

2006-06-21 Thread Scott Van Wart
Monkeyden wrote: If your implementation is similar to what Scott has mentioned (i.e. different operations on the same type of object), then I consider this a classic example of a DispatchAction, where type of business entity doesn't change...just the selected operation on the business entity, th

Re: Struts Design question

2006-06-21 Thread Monkeyden
If your implementation is similar to what Scott has mentioned (i.e. different operations on the same type of object), then I consider this a classic example of a DispatchAction, where type of business entity doesn't change...just the selected operation on the business entity, thus it makes sense t

Re: Struts Design question

2006-06-21 Thread Scott Van Wart
Kavita Mehta wrote: Hi, I have a form which has 3 submit buttons . which is a gud ides ... 1) having seperate 3 action classes for each 2) having a single action class which manages the submit action based on the button which has called this action class. It's up to you ;). I typically divide

Struts Design question

2006-06-21 Thread Kavita Mehta
Hi, I have a form which has 3 submit buttons . which is a gud ides ... 1) having seperate 3 action classes for each 2) having a single action class which manages the submit action based on the button which has called this action class. Thanks, Kavita ---

Re: [shale] Design question involving ViewController

2006-06-19 Thread Craig McClanahan
On 6/17/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: >From: "Sean Schofield" <[EMAIL PROTECTED]> > > I am writing an application that is using MyFaces tree2 to allow the > user to navigate to a more detailed view of the item they click on. I > just wanted some feedback on the following strategy:

Re: [shale] Design question involving ViewController

2006-06-17 Thread Gary VanMatre
>From: "Sean Schofield" <[EMAIL PROTECTED]> > > I am writing an application that is using MyFaces tree2 to allow the > user to navigate to a more detailed view of the item they click on. I > just wanted some feedback on the following strategy: > > The node in the tree has an action method that

[shale] Design question involving ViewController

2006-06-17 Thread Sean Schofield
I am writing an application that is using MyFaces tree2 to allow the user to navigate to a more detailed view of the item they click on. I just wanted some feedback on the following strategy: The node in the tree has an action method that puts the selected node's id into the request as a paramet

re: re: re: html:options collection design question

2006-05-10 Thread Kyle Wu
I am not sure if there's better idea than writing your own JavaScript to do that.. Stanislav <[EMAIL PROTECTED]> : Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Fo

re: reŁş html:options collection design question

2006-05-10 Thread Stanislav
Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Follows - > maybe css would be one solution, edit your css class, and use "styleClass" > attribute to ref it > > > >

re: html:options collection design question

2006-05-09 Thread Kyle Wu
maybe css would be one solution, edit your css class, and use "styleClass" attribute to ref it Stanislav <[EMAIL PROTECTED]> 写道: Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to do that? Here is code sample: Tn

html:options collection design question

2006-05-09 Thread Stanislav
Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to do that? Here is code sample: Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Struts Exception handling design question !

2006-03-03 Thread digant . k . joshi
Hi ! I want to find out what is best thing to do when it comes to Exception Handling? I have my Application specific AppException I create many different sub-class of AppExceptions based on different conditions in my application. In struts config I am trying to p

Re: error-page design question

2006-02-22 Thread [EMAIL PROTECTED]
From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wed, 22 Feb 2006 14:41:42 -0500 Subject: Re: error-page design question > Jay Burgess wrote: > > Our app currently throws a custom UnavailableException from a couple of > > places > > inside our

Re: error-page design question

2006-02-22 Thread Laurie Harper
Jay Burgess wrote: Our app currently throws a custom UnavailableException from a couple of places inside our Action handlers when the app is "offline" doing end-of-day processing. We thought we had this situation covered from the UI perspective, as we'd configured the following mapping in our web

error-page design question

2006-02-21 Thread Jay Burgess
Our app currently throws a custom UnavailableException from a couple of places inside our Action handlers when the app is "offline" doing end-of-day processing. We thought we had this situation covered from the UI perspective, as we'd configured the following mapping in our web.xml: U

Re: Another struts design question

2006-02-15 Thread Dakota Jack
Is there any actual verification that these remarks are true? Could you give us some links? On 2/14/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > You could use the referer header to create an action forward based on > > that value. > > "

Re: Another struts design question

2006-02-15 Thread Frank W. Zammetti
Michael Jouravlev wrote: An action should *never* forward to a page that does not belong to that action; this practice leads to a spaghetti code both in Java and in config file. If you mean forward directly to a JSP, I agree. If you meant something else, I'm not sure how you would ever get to

Re: Another struts design question

2006-02-15 Thread Michael Jouravlev
On 2/15/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > On Wed, February 15, 2006 2:46 pm, [EMAIL PROTECTED] said: > > Is it, however, possible that you could design you application to where > > all the mapped actions were "setup actions"? I guess not. Yes you can. In this case you need to som

Re: Another struts design question

2006-02-15 Thread Frank W. Zammetti
, Frank W. Zammetti < [EMAIL PROTECTED] > wrote: > From: Frank W. Zammetti [mailto: [EMAIL PROTECTED] > To: user@struts.apache.org > Date: Tue, 14 Feb 2006 18:59:11 -0500 > Subject: Re: Another struts design question > > Michael Jouravlev wrote:> On 2/14/06, Rick Reumann &l

Re: Another struts design question

2006-02-15 Thread [EMAIL PROTECTED]
he actions? Is this a bad thing? Something that should already be handled? --- On Tue 02/14, Frank W. Zammetti < [EMAIL PROTECTED] > wrote: From: Frank W. Zammetti [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Tue, 14 Feb 2006 18:59:11 -0500 Subject: Re: Another stru

Re: Another struts design question

2006-02-15 Thread Frank W. Zammetti
On Wed, February 15, 2006 4:24 am, Mark Lowe said: > My understanding of the suggestion is like replicating the history > object in client side javascript. Which does sound like a good > suggestion. That's a good way to put it :) The only difference is that you wouldn't build up a whole history,

Re: Another struts design question

2006-02-15 Thread Mark Lowe
On 2/15/06, Lixin Chu <[EMAIL PROTECTED]> wrote: > ok, I let page A or B pass a returnURL to page C who keeps it in the session > scoped actionForm. I think what's being suggested is storing a reference to the "referer" in the session, and thus circumventing any potential issues with the Referer h

Re: Another struts design question

2006-02-14 Thread Lixin Chu
ok, I let page A or B pass a returnURL to page C who keeps it in the session scoped actionForm. On 2/15/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Michael Jouravlev wrote: > > On 2/14/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > > > >> In the action just look for some param like "fromPa

Re: Another struts design question

2006-02-14 Thread Frank W. Zammetti
Michael Jouravlev wrote: On 2/14/06, Rick Reumann <[EMAIL PROTECTED]> wrote: In the action just look for some param like "fromPage" and key off of that for your return. (Of course a drawback is you'll need to remember to set this var on the pages that need it - of course there are ways you co

Re: Another struts design question

2006-02-14 Thread Mark Lowe
On 2/14/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Mark Lowe wrote the following on 2/14/2006 2:32 PM: > > > > The only other suggestion i would make if this were an issue is use > > separate action mappings for each point of entry.. > > Actually that seems pretty clean to me. Even if he has a l

Re: Another struts design question

2006-02-14 Thread Michael Jouravlev
On 2/14/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > In the action just look for some param like "fromPage" and key off of > that for your return. (Of course a drawback is you'll need to remember > to set this var on the pages that need it - of course there are ways you > could simplify that even,

Re: Another struts design question

2006-02-14 Thread Rick Reumann
Mark Lowe wrote the following on 2/14/2006 2:32 PM: The only other suggestion i would make if this were an issue is use separate action mappings for each point of entry.. Actually that seems pretty clean to me. Even if he has a lot of points of entry it can't be "that" many. Or another option

Re: Another struts design question

2006-02-14 Thread Mark Lowe
On 2/14/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > > You could use the referer header to create an action forward based on > > that value. > > "referer" field is unreliable. Can fail depending on your mix or > forwarding/redirecting/reloadi

Re: Another struts design question

2006-02-14 Thread Michael Jouravlev
On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > You could use the referer header to create an action forward based on > that value. "referer" field is unreliable. Can fail depending on your mix or forwarding/redirecting/reloading a page. It is also often removed by proxies/firewalls. I would no

Re: Another struts design question

2006-02-14 Thread Dave Newton
[EMAIL PROTECTED] wrote: > As long as you are arriving at the "settings" page via an action, can't you > just call the getInputForward() -- the method that the validate stuff calls > to return to the starting page if there were errors; this seems like it would > easily work. > > If you aren't

Re: Another struts design question

2006-02-14 Thread [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Tue, 14 Feb 2006 08:04:15 -0600 Subject: Re: Another struts design question That could work, and it would scale to n input pages.Thanks Mark!On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote:> You could use the referer header to create an

Re: Another struts design question

2006-02-14 Thread Keith Sader
That could work, and it would scale to n input pages. Thanks Mark! On 2/14/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > You could use the referer header to create an action forward based on > that value. > > String referer = request.getHeader("Referer"); > URL url = new URL(referer); > String path

Re: Another struts design question

2006-02-14 Thread Mark Lowe
You could use the referer header to create an action forward based on that value. String referer = request.getHeader("Referer"); URL url = new URL(referer); String path = url.getPath(); String contextPath = request.getContextPath(); path = path.replaceFirst(contextPath,""); return new ActionForwa

Another struts design question

2006-02-14 Thread Keith Sader
Greetings, I need to have an action return to a previous page depending upon which page originally requested the common page. Think of it as a settings page that can be accessed from multiple places. Like this: Entry 1 ---> Common Page

Re: [OT] Re: design question

2006-01-31 Thread fea jabi
thankyou, for all your valuable responces. From: Dave Newton <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: [OT] Re: design question Date: Tue, 31 Jan 2006 10:13:24 -0500 fea jabi wrote: > you have mentioned that &

Re: [OT] Re: design question

2006-01-31 Thread Dave Newton
fea jabi wrote: > you have mentioned that > > "You're going to have an object in memory no matter what" > > If we are using Resultset how/when is the Object getting created? I > was under the impression that it will get the data directly from the DB. Uh... a ResultSet is an object. >> You're going

Re: [OT] Re: design question

2006-01-31 Thread fea jabi
somewhere that if this approach is used then we'll be breaking the MVC architecture. any reference links for this? Thanks. From: Dave Newton <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: [OT] Re: design question D

RE: design question

2006-01-31 Thread Myatluk Andrey
ecords from a db and display them using displaytag: --- cut --- -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 7:29 PM To: user@struts.apache.org Subject: RE: design question can anyone help me understand this? Thanks. >From: "fea

Re: [OT] Re: design question

2006-01-30 Thread Dave Newton
fea jabi wrote: > But as I mentioned earliar I am creating an object which I am planning > to instanciate for each row of data. When I told about this to my team > they were concerned about the objects being in memory and advised to > use the resultset directly. In the sessionbean probably we can c

RE: [OT] Re: design question

2006-01-30 Thread fea jabi
t; Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: [OT] Re: design question Date: Mon, 30 Jan 2006 11:42:10 -0500 fea jabi wrote: > can anyone help me understand this? Don't know. >> I am creating instances of this Object and making a List which

RE: [OT] Re: design question

2006-01-30 Thread George.Dinwiddie
Dave Newton replied: > In general, I have pretty strong feelings against using "raw" > ResultSets despite the overhead of copying data... anything > other than raw JDBC will see the same behavior whether it's a > full ORM or something as simple as a RowSetDynaClass (from > Jakarta BeanUtils).

[OT] Re: design question

2006-01-30 Thread Dave Newton
fea jabi wrote: > can anyone help me understand this? Don't know. >> I am creating instances of this Object and making a List which is >> getting displayed in the JSP. >> >> I was told that instead of creating Object and creating instances, >> one can directly use the result set got from the DB an

RE: design question

2006-01-30 Thread fea jabi
can anyone help me understand this? Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: design question Date: Fri, 27 Jan 2006 11:40:20 -0500 For all the tables in the JSP, I am using displaytag. F

design question

2006-01-27 Thread fea jabi
For all the tables in the JSP, I am using displaytag. For each row in the table I created an Object. I am creating instances of this Object and making a List which is getting displayed in the JSP. I was told that instead of creating Object and creating instances, one can directly use the re

Re: ActionForm design question

2005-12-20 Thread Laurie Harper
Scott Vickery wrote: I know this is a bit open-ended, but, here is goes. I have a somewhat complicated form. It is the classic Order / OrderLine problem. I have an order, within it, there is >1 order lines. The order lines are arranged as a tree so that they can be grouped together by the use

ActionForm design question

2005-12-20 Thread Scott Vickery
I know this is a bit open-ended, but, here is goes. I have a somewhat complicated form. It is the classic Order / OrderLine problem. I have an order, within it, there is >1 order lines. The order lines are arranged as a tree so that they can be grouped together by the user. For each order line,

Re: Struts Design Question

2005-12-08 Thread Ted Husted
It sounds like WildCard mappings (since Struts 1.2) might help. You would probably only need one set of mappings for any number of catagories. You would probably only need one ActionForm too. If some of the categories don't use some of the properties, then they just travel null. Just give the base

Struts Design Question

2005-12-07 Thread bill
A bit of a struts newbie here. I have an application with the following page flow: choose Product Category --> choose Product Model --> create/edit chosen model Currently we only have one ActionForm\JSP Edit Form, but we need to expand this to support different Product Categories. Each would be

Re: design question --- struts & displaytag

2005-12-01 Thread fea jabi
thankyou for your responses. From: Dave Newton <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: design question --- struts & displaytag Date: Thu, 01 Dec 2005 09:44:38 -0500 fea jabi wrote: can someone help me with

Re: design question --- struts & displaytag

2005-12-01 Thread Dave Newton
fea jabi wrote: can someone help me with this please? What are you doing this for? In other words, is this for your job, school work, etc.? For displaytag questions you'll want to look at the displaytag docs or utilize their mailing list. Dave -

Re: design question --- struts & displaytag

2005-12-01 Thread Matt Morton
my head so double check it with the displaytag docs. Matt Morton On 12/1/05, fea jabi <[EMAIL PROTECTED]> wrote: > can someone help me with this please? > > Thanks. > > > >From: "fea jabi" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing

RE: design question --- struts & displaytag

2005-12-01 Thread fea jabi
can someone help me with this please? Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: design question --- struts & displaytag Date: Wed, 30 Nov 2005 16:02:26 -0500 Have a table as below -

design question --- struts & displaytag

2005-11-30 Thread fea jabi
Have a table as below -- will be using displaytag for this. Hrs Loans 3 deposit5 For this I created a DynaValidatorForm with loans, deposits as it's form properties. type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">

Re: Tiles/Action design question

2005-11-16 Thread Keith Sader
On 11/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Keith Sader wrote: > I'm not sure exactly what you meant by 'polymorphism off of a submit' so > this might be completely off-base but... Passing the action into the > tile definition may be one option, depending on how your tiles and > action

Re: Tiles/Action design question

2005-11-16 Thread Laurie Harper
Greg Reddin wrote: On Nov 16, 2005, at 4:31 PM, Laurie Harper wrote: I'm not sure exactly what you meant by 'polymorphism off of a submit' so this might be completely off-base but... Passing the action into the tile definition may be one option, depending on how your tiles and actions are s

Re: Tiles/Action design question

2005-11-16 Thread Greg Reddin
On Nov 16, 2005, at 4:31 PM, Laurie Harper wrote: I'm not sure exactly what you meant by 'polymorphism off of a submit' so this might be completely off-base but... Passing the action into the tile definition may be one option, depending on how your tiles and actions are set up. Another opt

Re: Tiles/Action design question

2005-11-16 Thread Laurie Harper
Keith Sader wrote: I've got a form that will be included in one of three pages. Essentially this form captures the same data at different levels in an inventory of rolling stock. The grouping is as follows: 1.) Inventory Defaults - applies to all inventory 2.) Fleet level defaults - applies t

Tiles/Action design question

2005-11-16 Thread Keith Sader
I've got a form that will be included in one of three pages. Essentially this form captures the same data at different levels in an inventory of rolling stock. The grouping is as follows: 1.) Inventory Defaults - applies to all inventory 2.) Fleet level defaults - applies to a group of inventor

Re: Struts-Tiles Design question

2005-09-06 Thread Greg Reddin
age layout is exactly the same!!! Any thoughts/comments/suggestions are most welcome. Thanks in advance!, Regards, Dharmendra ps: have a good day! -----Original Message- From: Michael Rasmussen [mailto:[EMAIL PROTECTED] Sent: Friday, August 26, 2005 11:37 AM To: Struts U

RE: Struts-Tiles Design question

2005-09-06 Thread Dharmendra . Sharan
haven't used the Tiles Controller that Greg suggested... > > Nels > > On 8/25/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > > > > I have an application built on struts and tiles. I have a design question > > and would like some of your valuable opinions. &

RE: Struts-Tiles Design question

2005-09-02 Thread Dharmendra . Sharan
haven't used the Tiles Controller that Greg suggested... > > Nels > > On 8/25/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > > > > I have an application built on struts and tiles. I have a design question > > and would like some of your valuable opinions. &

  1   2   >