RE: Can't forward to a global?

2001-12-07 Thread Tom Klaasen (TeleRelay)
-Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: donderdag 6 december 2001 22:06 To: Struts Subject: Can't forward to a global? Hi, I have an action class that could get called after a users session has expired. When the action class is called I have

RE: Action an overkill ??

2001-12-07 Thread Keith Bacon
Edward, Bravo! The fewer facilities you use on the client the fewer problems you'll have. But for systems with huge numbers of users the more work you can off-load to the client the lower your server workload, so it's always going to be trade-off. Keith. --- Edward Q. Bridges [EMAIL PROTECTED]

Re: Action an overkill ??

2001-12-07 Thread Ted Husted
Which makes the answer, implement it in the Action first, where it is easy to do, but more because it *is* business logic, and then consider moving it to the client *if* that helps performance. The thing to watch for is predetermining that doing something on the client will be beneficial before

RE: Mapped properties

2001-12-07 Thread Rey Francois
Make zzz also has the proper get/set methods, and that all these get/set methods are public. Hope this helps, Fr. -Original Message- From: Francesco Marsoni [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 19:55 To: Struts Users Mailing List Subject: Mapped properties I get an

Re: Question/Issue with forward specifications

2001-12-07 Thread Keith Bacon
Hi gurus! I use helper methods that log a warning when a null is returned - makes it easy to track down errors. Q1 - Is this good practice? I suspect I'm replicating logging that struts already has. Q2 - Are there problems with such methods being static(will they be a bottleneck)? Frank - your

Re: Mapped properties

2001-12-07 Thread Ted Husted
Rey, Is my answer here correct? http://jguru.com/forums/view.jsp?EID=567079 I *really* haven't done enough work with the mapped properties, and have just been cribbing things from your messages ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. --

Re: Action an overkill ??

2001-12-07 Thread Keith Bacon
Ted, Early optimization is the root of all evil. I like that! A manager told me that maintenance bills for old systems were hugely inflated because of bloated optimisation logic that saved a little bit of hardware cost for a few years. Mind you plenty of systems have been written that won't

servlet question

2001-12-07 Thread William Shulman
Assume one is using a servlet container (like Tomcat or similar). Is there a way to specify to the servlet container which class implementations to use for HttpServletRequest and Session ? I am guessing that there may exist factories for producing instances of these classes and I am wondering

Re: Action an overkill ??

2001-12-07 Thread Ted Husted
Martin Fowler tells a good story about the Chrysler payroll system. After spending some time noodling what was probably needed fixing, Kent Beck broke out a profiler. Turned out the real problem was creating empty date ranges. (It takes awhile to create nothing.) They created a constant for the

Re: Action an overkill ??

2001-12-07 Thread Edward Q. Bridges
i was a little confused about your original post on this subject, but then your followup seemed to confuse me more. your original post on this subject seems to imply there is an additional layer, distinct from the Action, where business logic should reside. then, your follow up seems to confirm

RE: Mapped properties

2001-12-07 Thread Rey Francois
Ted, Your answer is correct, that should work for him. Fr. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: 07 December 2001 11:59 To: Struts Users Mailing List Subject: Re: Mapped properties Rey, Is my answer here correct?

Re: action chaining without resetting action forms

2001-12-07 Thread Peter Pilgrim
This is the same as my ActionMultiplexer thing that I wrote. Basically I have created a DefaultActionForm class with a `action' property. Ditto created `AppBaseAction' and `AppActionServlet' and these two know about each other. The way Struts 1.0 is that the ActionForm bean is populated from

Re: Action an overkill ??

2001-12-07 Thread Ted Husted
The Action would call the business logic, as opposed to the view. The actual code resides in the business layer, but there would be a method call in the Action. People have been known to code the actual business logic into an Action, but have usually lived to regret it. If data were stored in a

RE: Action an overkill ??

2001-12-07 Thread du Clos, John
We've followed the Session Facade design pattern, where the action classes handle the interaction between the GUI and our core business logic; somewhat of a sub-controller for the given GUIs to control how we get/put/update/calc data between our Session Beans and our Forms. In addition, the

Re: Alternate Query String( no ? or )

2001-12-07 Thread Edward Q. Bridges
although i wasn't using struts, i've gotten this to work with no such effort at all (using servlets and jetty, not to mention perl/cgi etc.). basically, i defined a path for a servlet in web.xml, and anything after that path, the server placed in pathinfo. i can provide examples if anyone

RE: Can't forward to a global-Here's the code in question?

2001-12-07 Thread Alex Colic
Here the action class, slightly abbreviated. package com.popware.rd.viPro.action; public class viInvoiceSummaryAction extends Action { private static final Category cat=Category.getInstance(viInvoiceSummaryAction.class.getName()); private HttpSession session; private ActionErrors

RE: Action an overkill ??

2001-12-07 Thread Robert J. Sanford, Jr.
think about using an application, a spreadsheet for example, within your favorite windowing system (beos, macos, x, win32, etc.). if you want to sort the data in your favorite spreadsheet and you see the entire screen go blank, wait just a second and then have the data pop up or do you want to

RE: Action an overkill ??

2001-12-07 Thread Edward Q. Bridges
there's a big difference between an application that is based for use over a network by multiple users and an application that runs entirely locally. in the regard you describe, there is every reason to do that on the client, particularly since all the data exists on the client to begin with.

Re: [JBoss-user] Struts Exception with beanutils HELP and JBoss 2.2.2Tomcat3.2.2

2001-12-07 Thread Sebastian Hauer
Hi Dirk, I use struts 1.0 with jboss so I have no experience with any of the new features. Your struts-config.xml looks fine to me. Had you been able to run any of the struts example WARs ? Their struts-config.xml might be more basic. A different approach might also be to remove everything but

Best Struts Web Server

2001-12-07 Thread Brian . Duchouquette
All, What is your experience with the Web server you are currently using to run Struts? Does it handle pages with a large number of tags well? Have you had to discard a certain server because of a problem in favor of another? Any comments appreciated... Thanks, Brian -- To unsubscribe,

RE: Reloadable Class

2001-12-07 Thread Knee, Jeff
Keith, Well... I had hoped that doing a admin/reload.do would do what I wanted but it doesn't seem to. This just seems to reload the mappings without loading the new class files. Here is an example: * I have my web-app running and I'm testing. * Close the browser window (or not) * I make a

RE: Action an overkill ??

2001-12-07 Thread Robert J. Sanford, Jr.
there's a big difference between an application that is based for use over a network by multiple users and an application that runs entirely locally. in the regard you describe, there is every reason to do that on the client, particularly since all the data exists on the client to begin

Re: Best Struts Web Server

2001-12-07 Thread Pete Carapetyan
What is your experience with the Web server you are currently using to run Struts? Does it handle pages with a large number of tags well? Have you had to discard a certain server because of a problem in favor of another? Any comments appreciated... You really need to qualify your market

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
Thanks for your response, Ted. I (or another developer on my team) will be driving a spike on this in the next few days but I wanted to parrot back what I understood for confirmation. Assume that I cleanly separate the intent of my actions into RequestAction and ViewAction. The mappings for

RE: Reloadable Class

2001-12-07 Thread Chris Birch
Jeff, As you're are using Tomcat4 you can reload a web apps context using the built-in Tomcat management web app. If your web-apps context is /myWebApp/ Simply enter http://localhost:8080/manager/reload?path=/myWebApp This should return a simple string that tells you your context has been

Re: Producing alternating background colours in struts in a table

2001-12-07 Thread @Basebeans.com
Subject: Re: Producing alternating background colours in struts in a table From: [EMAIL PROTECTED] (Dalibor42) === [EMAIL PROTECTED] wrote in [EMAIL PROTECTED]: I have a list I am printing out and would like to alternate the background colour between each item in the list between light blue

RE: Best Struts Web Server

2001-12-07 Thread a b
jetty is better than resin? --- Robert J. Sanford, Jr. [EMAIL PROTECTED] wrote: http://jetty.mortbay.com http://www.jboss.org (jboss + jetty) rjsjr -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 10:27 AM To: Struts

RE: Reloadable Class

2001-12-07 Thread Knee, Jeff
This works like a champ! Thanks, Chris! (This method is much better than bouncing the enter servlet container.) += Jeff Knee -Original Message- From: Chris Birch [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 11:38 AM To: Struts Users Mailing List Subject: RE:

RE: Best Struts Web Server

2001-12-07 Thread a b
I thought tomcat sucks --- Thomas Zettelmayr [EMAIL PROTECTED] wrote: Still the best one is Tomcat 3.2.3 on OpenVMS. This is, and will be, the only real environment for high-end applications. -Original Message- From: a b [mailto:[EMAIL PROTECTED]] Sent: Freitag, 07.

RE: Problem using bean:define toScope parameter

2001-12-07 Thread Rob Parker
Thanks - the real issue is that the Collections are added to scope in the action class. When validation fails on the form bean, the action class (I think) is bypassed and so the Collection are not re-added to the request and go out of scope. I thought the bean define tag would do the trick, but

Re: Best Struts Web Server

2001-12-07 Thread Brian . Duchouquette
Pete was right.. I needed to specify. I'm looking for high-end, high-load. 1 million hits a day on a server that implements a lot of JSP tags. Somehow I don't think Tomcat's going to do that (nor do I think my management is going to like using a server that doesn't have technical support :).

Re: Best Struts Web Server

2001-12-07 Thread Pete Carapetyan
I thought tomcat sucks Still the best one is Tomcat 3.2.3 on OpenVMS. This is, and will be, the only real environment for high-end applications. Now that we have sunk down to the level of platitudes and name calling, reminder that ONLY facts matter here. 1. How much speed/features do

Using Microsoft Web Stress Tool

2001-12-07 Thread Rajan Gupta
I downloaded this free tool from microsoft to stress test my Struts application. The tool is quite good, except that the documentation sucks. I have a Struts based application where I am using org.apache.struts.HTML.token used in each POST request which is obviously unique, Would anybody out

Re: action chaining without resetting action forms

2001-12-07 Thread Ted Husted
Cakalic, James P. wrote: Now my intent would be that ViewActions are not typically the direct targets of posts. They are only ever forward targets from other Actions. As a consequence, I would not specify an ActionForm in the mapping for a ViewAction. If I understand your comments correctly,

RE: Best Struts Web Server

2001-12-07 Thread Robert J. Sanford, Jr.
jetty is better than resin? define better. both jetty and jboss are open source if that is important to you (i assume it is since you are using struts) whereas resin requires licensing fees starting at $500/server. both jetty and resin have both demonstrated high performance as both web

Re: Best Struts Web Server

2001-12-07 Thread Ted Husted
Resin is a real pleasure to develop with. The JSP error messages actually make sense! It has worked well for me in production, but only a few thousand visitors a day for a limited time. (Special event.) Resin now powers JGuru - www.jguru.com -- which at this point is as all Java site. They

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
Ted Husted wrote: Personally, I'd think in terms of putting whatever you have in mind for an Action into a servlet, so that it is not coupled directly with Struts. I have been working with the Velocity team on finishing the work Geir started last spring. We should have an improved

Transaction Token without a struts form?

2001-12-07 Thread Krueger, Jeff
All, I am working on implementing transaction token so my app can handle when the user click the back button on the web browser. Our application doesn't always use a struts form because we often have to display unknowen number of rows of data, so that doesn't map well to a form bean. So

Re: Action an overkill ??

2001-12-07 Thread Ted Husted
Robert J. Sanford, Jr. wrote: i agree with that but i think we might have some friendly disagreement as to what constitutes business logic and what doesn't. the original topic of this thread was sorting and the concern that hitting an action bean and/or jsp was too heavy. my personal opinion

Re: action chaining without resetting action forms

2001-12-07 Thread Ted Husted
Cakalic, James P. wrote: Okay. Sounds like an interesting possibility. I guess I should monitor the Velocity site/mail list for this announcement? Thanks again. I'm sure I would bring it up here. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. --

RE: Action an overkill ??

2001-12-07 Thread Nathan Anderson
I have to agree with Robert on this issue. In the application I am currently writing, we have decided to do some of the tasks that need to be more interactive with JavaScript simply because it is faster and smoother to do it in the client then make another server call. It boils down to

struts-example and startup problems

2001-12-07 Thread Patrick Brannen
Folks, Did a lot of searching and couldn't find an answer to this one. I'm running Struts 1.0 on Tomcat 4.0 on Win2k. When I startup tomcat, I get the following error from the struts-example app: javax.servlet.ServletException: Parsing error processing resource path /WEB-INF/struts-config.xml

RE: Action an overkill ??

2001-12-07 Thread Trieu, Danny
Hello all, I only read up to Ted email, but I think I have enough understanding to give in some though. First of all, I am not quite understand what Nathan mean by 'user's experience'. Second, I do not agree with Bob on having to treate the browser base application the same as window base

RE: Action an overkill ??

2001-12-07 Thread Robert J. Sanford, Jr.
who the heck is Bob? from reading the comments that you attribute to him i assume you mean me but my name is Robert - it even says so in my email address and my initials at the bottom of my emails don't begin with the letter 'b' either. rjsjr -Original Message- From: Trieu, Danny

Re: Producing alternating background colours in struts in a table

2001-12-07 Thread David Winterfeldt
This is nice. RowTag (ZIP file for download) - Source for a Struts-compatible tag to generate alternating row colors in a table by Niall Pemberton. [NOTE: Requires a Struts build dated after 2001-04-28] http://www.husted.com/struts/resources.htm#taglibs David --- Struts Newsgroup [EMAIL

RE: Best Struts Web Server

2001-12-07 Thread Jason Chaffee
I have investigated many app servers and I have found no of them can even compare to resin, it is by far the best. And, if you happen to find a bug, Scott will usually fix it within a couple of days or you can fix it yourself since you have the code. -Original Message- From: a b

RE: Action an overkill ??

2001-12-07 Thread Nathan Anderson
Just to clarify my previous post. By user's experience I mean how the user interacts with the application. A user can have a positive experience if the application is intuitive and responsive. But the user's experience is likely to be negative if the application is slow or hard to use. This

lost form data when validate returns errors

2001-12-07 Thread Dan Tanner
I'm having the problem of losing form data when my action class returns errors. The error displays properly, but I lose all the form data. Looking at older posts, I've seen the same problem, but haven't seen a fix or workaround yet. I've included the relevant code snippets. Also, I like the

File Upload For BLOBs

2001-12-07 Thread Cameron Ingram
Does anyone have a simple example of using Struts FormFile (html:file) tag to upload a file into a BLOB data field? I don't need a CLOB example, but a BLOB example - preferably using Oracle, but any database example should help overcome this problem I am having. Thank You In Advance. -- To

RE: lost form data when validate returns errors

2001-12-07 Thread See Yam Lim
my two cents is instance of the view(value object) which is used to populate the form had gone in the request scope after form validation, because the validate() is called before the action class instance is created. Hmm... try set the view in session however be careful remember to reset the

Re: lost form data when validate returns errors

2001-12-07 Thread David Winterfeldt
--- Dan Tanner [EMAIL PROTECTED] wrote: I'm having the problem of losing form data when my action class returns errors. The error displays properly, but I lose all the form data. Maybe there is an issue with the reset method in your ActionForm? The validation error messages make sense?

Re: lost form data when validate returns errors

2001-12-07 Thread Ted Husted
Dan Tanner wrote: I'm having the problem of losing form data when my action class returns errors. The error displays properly, but I lose all the form data. If you are talking about form data that is generated by an Action, and not passed back through the HTTP request, then you may need to

RE: Reloadable Class

2001-12-07 Thread Rob Stokes
I've created a simple ant task to automate the reload. Use it if you like. Rob Stokes -Original Message- From: Knee, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 9:47 AM To: 'Struts Users Mailing List' Subject: RE: Reloadable Class This works like a

Re: Best Struts Web Server

2001-12-07 Thread Vic Cekvenich
OrionServer.com I think is good. It auto reloads changes to class and XML files, it has great debug support and is J2EE. Vic Robert J. Sanford, Jr. wrote: jetty is better than resin? define better. both jetty and jboss are open source if that is important to you (i assume it is since

Re: Best Struts Web Server

2001-12-07 Thread @Basebeans.com
Subject: Re: Best Struts Web Server From: Vic Cekvenich [EMAIL PROTECTED] === OrionServer.com I think is good. It auto reloads changes to class and XML files, it has great debug support and is J2EE. Vic Robert J. Sanford, Jr. wrote: jetty is better than resin? define better. both jetty

File upload facility / file manager example app

2001-12-07 Thread John McClain
Does anyone out there know of an opensource, java based file upload facility or file manager app ??? John McClain 7604 Muschetto Ct. Citrus Heights, CA. 95621 [EMAIL PROTECTED] (916)728-5223

Re: Best Struts Web Server

2001-12-07 Thread John M. Corro
Jason (or anyone else that has experience w/ both), How would you rate resin to orion? I've done minor playing w/ Orion, but haven't had the opp. to use it in a project as of yet. Haven't touched resin yet. Performance benchmarks I saw a while back put Orion and Resin in the same overall

Nested iteration with html:link

2001-12-07 Thread Patrick Liardet
Here's a simple one from a newbie: The html:link tag suggests that if you wish to pass more than one request parameter these should be placed in a java.util.Map I have a logic:iterate which is nested in an outer logic:iterate. In the inner iteration block I need to provide a link which will

Struts Design question

2001-12-07 Thread Jon Wall
I've been lurking on this list for a while, and I finally have time to look hard at Struts for a web application that I'm working on. I have a coupla questions.. 1. This first question I found reference to in the archives (http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18281.html)

RE: Best Struts Web Server

2001-12-07 Thread Jason Chaffee
John, Unfortunately, Orion it the one app server that I have the least experience with. So, I don't want to make statement that might not be accurate. However, I will stand by resin. I think it is great and it has cut our development time down so much because 1) it complies the jsp and

RE: File upload facility / file manager example app

2001-12-07 Thread Gavin Terrill
You may find the resources here of interest: http://www.webdav.org/projects/#opensource Gavin Terrill CTO, Karora Technologies Inc. http://www.karora.com -Original Message- From: John McClain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 3:11 PM To: [EMAIL PROTECTED]

Re: Struts Design question

2001-12-07 Thread Brian . Duchouquette
Let me try to venture a few responses... But my beans already contain the validation! Besides, performing the validation in the ActionForm is effectively tying business logic (data validation) to the web framework dontya think? Well, I put data type and required field validation only in the

Re: Struts Design question - followup

2001-12-07 Thread Jon Wall
Hi Brian - Thanks for the responses. Some more information and clarification... Well, I put data type and required field validation only in the bean. I'm doing this type of validation on the client-side in JavaScript already. I prefer to keep it here as it's not too much work and it's

Re: Struts Design question

2001-12-07 Thread Ted Husted
Jon Wall wrote: I've been lurking on this list for a while, and I finally have time to look hard at Struts for a web application that I'm working on. I have a coupla questions.. 1. This first question I found reference to in the archives

Please Help with Iterate and Lookup bean value problem

2001-12-07 Thread Strichartz, Beth
Hi, I am iterating over a results set and instead of doing a bean:write... / I need to convert the property to something more meaningful. I added a method in my FormBean that will convert the value for me. But, I do not know how to properly call it. I have logic:iterate id=customerResults

Re: Struts Design question - followup

2001-12-07 Thread Matt Goodall
On Fri, 2001-12-07 at 22:37, Jon Wall wrote: Hi Brian - Thanks for the responses. Some more information and clarification... Well, I put data type and required field validation only in the bean. I'm doing this type of validation on the client-side in JavaScript already. I prefer

Re: lost form data when validate returns errors

2001-12-07 Thread Dan Tanner
I'm having the problem of losing form data when my action class returns errors. The error displays properly, but I lose all the form data. Maybe there is an issue with the reset method in your ActionForm? The validation error messages make sense? If they do then the data is being

RE: Can't forward to a global-Here's the code in question?

2001-12-07 Thread Michael Mok
Alex Session.isNew() only help to a certain extent. I would check for existance of objects that should exist in the Session. eg User user = session.getAttribute(user); if (user == null) return mapping.findForward(logon); Regards Michael Mok -Original Message- From: Alex Colic

Re: Disassemble Xml File

2001-12-07 Thread Craig R. McClanahan
On Fri, 7 Dec 2001, Sébastien Le Fustec wrote: Date: Fri, 7 Dec 2001 15:36:38 +0100 From: Sébastien Le Fustec [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED], struts dev [EMAIL PROTECTED] Subject: Disassemble Xml File Hello,

Struts Exception with beanutils HELP and JBoss 2.2.2Tomcat3.2.2

2001-12-07 Thread storck
Hi, I use struts from the nighly build of 04.11.200 and JBoss 2.2.2Tomcat3.2.2. In my WEB-INF/lib I have the following jars struts.jar tiles.jar commons-beanutils.jar commons-collections.jar commons-digester.jar and ant.jar xerces.jar jndi.jar jdbc2_0-stdext.jar If I start it with that

Disassemble Xml File

2001-12-07 Thread Sébastien Le Fustec
Hello, We would like to disassemble xml file (like Validation.xml, or struts-config.xml) in multiple Xml file we include through Xml tags in the validation file. It is possible ? Sincerly, Sebastien Le Fustec 05 62 74 47 23 __ Do You Yahoo!?