Re: [OT] Tomcat vs Resin

2004-12-07 Thread Bill Keese
With lightweight pages resins performance is double of tomcat performance (400 requests per second compared to aprox 200 requests per second) I'm just curious. What is the bottleneck with serving pages? With 400 pages/sec is your CPU pegged at 100%? Or is there a disk bottleneck? I read a re

Re: request between actions

2004-12-01 Thread Bill Keese
>I have an action that forwards to another action, and i'm loosing request parameters. If you need to pass parameters to the 2nd action (either the same parameters or different ones), AND you need to forward using redirect="true" (because you want the URL displayed in the browser URL bar to be

Re: nested tiles

2004-12-01 Thread Bill Keese
FYI, I went ahead and added a wiki page for this. Apparently this is the first wiki page on general tile use (?) http://wiki.apache.org/struts/StrutsDocTiles (if you see any mistakes please correct them. or if anyone has any other tips on tiles please add them.) Bill

Re: nested tiles

2004-11-30 Thread Bill Keese
tiles with some best practics in future. Stefan Bill Keese schrieb: Interesting. I'm not sure why your code doesn't work. Maybe the value attribute in should be /WEB-INF/pgs/startpage.jsp. Anyway, I haven't done nested tiles in the same way as you do. This is how I do nested ti

Re: nested tiles

2004-11-29 Thread Bill Keese
Interesting. I'm not sure why your code doesn't work. Maybe the value attribute in should be /WEB-INF/pgs/startpage.jsp. Anyway, I haven't done nested tiles in the same way as you do. This is how I do nested tiles. Maybe someone can comment on which way is better.

Re: Performance issues

2004-11-29 Thread Bill Keese
YS redownloads. Hard to believe though. Well, it's definitely not a Struts issue but if anyone has any idea what's going on, let me know. Thanks, Bill PS: even if the browser is sending a simple "check file last modification date" to the server, I want to avoid that also. Bill Keese wrote:

Re: Performance issues

2004-11-28 Thread Bill Keese


How do I tell the browser to cache staticJavascript.jsp rather than downloading it each time? I know the browser caches images by default, but I'm not sure whether or not it would cache files with a .jsp extension. Do I have to do

Re: server shutdown

> I am now only trying to run notepad from the exec command (B (BIf you are trying to run a GUI program, than you have to check the (B"Allow service to interact with desktop" checkbox (from the "properties" (Bpage for the service). Maybe that's the problem. (B (BBut if the same error occurs w

Re: action to action with form

(B> So, I have actioclass A and I want to call action class B witch needs (B> actionform C. (B> I will use the mappings to chain the response from B to my first (B> action class A. (B (Bhttp://wiki.apache.org/struts/ForwardingWithDifferentParameter (B (B

Re: AW: AW: AW: using multiple action forms in one action. Best practice?

, I would like to reuse the forms/action for editing already existing objects/regions, where the order enforced by a wizard is not appropriate. But I think I have learned fromthis discussion how it could be implemented reasonably. The only exception being the question of scope which is not that impo

Re: AW: AW: using multiple action forms in one action. Best practice?

it is a straightforward refactoring which can be done when need occurs. As to the question request vs. session scope I understand the problems which might occur using session scope. I do not see a solution which would also fulfil the modularization requirement. Thanks! Martin -Ursprüngliche Nac

Re: AW: using multiple action forms in one action. Best practice?

Hi Martin, From this JSP I want to access a (hopefully) generic module to get the access points. This "module" has to get some information (e. g. a region to prefilter the addresses or access points already existing) from JSP1. I think you should generate the input to the generic module, rather t

Re: AW: using multiple action forms in one action. Best practice?

Hi Martin, From this JSP I want to access a (hopefully) generic module to get the access points. This "module" has to get some information (e. g. a region to prefilter the addresses or access points already existing) from JSP1. I think you should generate the input to the generic module, rather t

Re: using multiple action forms in one action. Best practice?

Martin Kindler wrote: in my application I have a rather complex object to deal with. I have split the process in several jsps (JSP1, ..., JSPn) using different ActionForms (AF1, ..., AFm)... 2. merge all ActionForms to one big mega ActionForm Pro: works Con: no modularization; if I need to use one

Re: A new paradigm of Struts development

You shouldn't use ActionForms to pass arbitrary data from java code to JSP code, except for pre-populating form fields.) Could you please explain with example for this? I'm not sure what "pass arbitrary data from java code to JSP code" means? For example, suppose that there's a page to edi

Re: A new paradigm of Struts development

OK, that makes sense. I'm not sure what the normal struts usage pattern is. I think that it makes sense to have one ActionForm for each logical request, but maybe other people don't do that. So, I agree with your idea of OzPage. (Also, I think that ActionForms should only be used to pass in

Re: A new paradigm of Struts development

Hi Tak. (B (B>addVendor.jsp has a "submit" button to send with parameters to (B>create a Vendor, (B>and application routes to vendorDetail.jsp when it's sucsessfuly done. It also (B>routes to (B>addVendor.jsp when it's failed to add or validation errors. (B>In this multiple destination

Re: A new paradigm of Struts development

Hi Tak. I read your OzStruts documentation. It was interesting, but it was a little hard for me to understand too. Basically, your description of "normal struts" sounds strange to me: Here is an example from OzStruts sample application. VendorDetail.jsp has two source pages, one is vendorSearch

Re: [Struts-Chain] how to use another chain for preprocessing?

To chain actions, you simply return a non-redirect ActionForward which points to a Struts action path. This is chaining (where a redirect isn't) because it results in the ActionServlet triggering a second "run" through the RequestProcessor's processing flow. OK, that's what I was thinking, alo

Re: [Struts-Chain] how to use another chain for preprocessing?

Craig McClanahan wrote: * Regarding chaining of actions themselves, if you are using the standard request processing chain that remains as bad an idea as it has always been in Struts, and I don't see any reason to make it easier with chaining than it is today. Hi Craig. I was hoping you coul

Re: : pre-populating fields from the Action java code

When you click only one form submit is sent Luis Gervaso On Fri, 22 Oct 2004 15:28:16 +0900, Bill Keese <[EMAIL PROTECTED]> wrote: I have a question about pre-populating the fields of a form you display in the browser. To pre-populate fields, the Action saves a Form bean in the conte

: pre-populating fields from the Action java code

I have a question about pre-populating the fields of a form you display (Bin the browser. To pre-populate fields, the Action saves a Form bean in (Bthe context via request.setAttribute("inputForm", inputForm), and (B tag looks up the form bean. (B (B determines the form bean's name automatical