If they used new HashMap(89) instead of just new HashMap(), the lookup
would not change for 2000 objects at all because the HashMap growth
beyond the initial size is ((2 times initial size) plus 1) which with
89 as the starting point keeps the size of the HashMap with a prime
number well over 2000
-
From: "Laurie Harper"
To: user@struts.apache.org
Subject: Re: long struts-config.xml file
Date: Sat, 18 Jun 2005 23:20:35 -0400
>
> Craig McClanahan wrote:
> > Validation against the DTD requires two things:
> >
> > * Using the DOCTYPE declara
Good catch Laurie ... through at least today's version of the 1.3 DTD,
it is indeed sensitive to the order of the elements. For example, all
the elements need to be before the
element that contains all the elements. Therefore, if you're
going to use the XML entities approach, you'll need to cr
Craig McClanahan wrote:
Validation against the DTD requires two things:
* Using the DOCTYPE declaration (as shown above) in the outer configuration file
* Setting the servlet init parameter "validating" to "true" in /WEB-INF/web.xml
for the Struts ActionServlet
It doesn't matter whether you
aig,
Thank you for the link of Struts Console program. It looks better than
the XML editor I used for struts before. Struts is a nice system.
- Original Message -
From: "Frank W. Zammetti"
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
.
- Original Message -
From: "Craig McClanahan"
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
Date: Sat, 18 Jun 2005 12:13:56 -0700
On 6/18/05, John Henry Xu wrote:
Craig wrote:
"-//Apache Software Foundation//DTD Struts Confi
Craig, I had XML editors to do that. I will try the Struts Console you
mentioned.
- Original Message -
From: "Craig McClanahan"
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
Date: Sat, 18 Jun 2005 12:13:56 -0700
>
> On 6/18/05, John
On 6/18/05, John Henry Xu <[EMAIL PROTECTED]> wrote:
> Craig wrote:
>
> > > "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
> > "http://struts.apache.org/dtds/struts-config_1_2.dtd"; [
> >
> >
> >
> > ...
> > ]>
> >
> >
> >
> > &package-a;
> > &package-b;
> > ...
> >
> >
> >
> >
th
struts in this large project.
Jack H. Xu
Technology columnist and author
http://www.usanalyst.com
http://www.getusjobs.com
(Both sites are developed in java and on open source).
----- Original Message -
From: "Craig McClanahan"
To: "Struts Users Mailing List"
Subject: Re: l
Craig McClanahan wrote:
Of course, there's also an XML level solution to this problem,
something that works even if the program that is reading the document
doesn't support multiple configuration files -- XML entities.
Now *THAT* I was totally unaware of... very cool!
I love it... just woke u
On 6/17/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Good info Craig... So do I understand correctly then that you can specify
> multiple config files for an app regardless of module usage (well, one with
> just the "default" module really)?
Yep.
> I thought I saw someone mention a CSV li
it?... If so, I don't
think I was aware of that, definitely not fully anyway, and thank you for
pointing it out :)
Frank
-Original Message-
From: "Craig McClanahan"<[EMAIL PROTECTED]>
Sent: 6/18/05 1:05:17 AM
To: "Struts Users Mailing List"
it?... If so, I don't
think I was aware of that, definitely not fully anyway, and thank you for
pointing it out :)
Frank
-Original Message-
From: "Craig McClanahan"<[EMAIL PROTECTED]>
Sent: 6/18/05 1:05:17 AM
To: "Struts Users Mailing List"
On 6/17/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> The longest I have is 173 action mappings. I haven't noticed any
> performance problems with it. Struts basically loads it once at startup
> and from then on it's in-memory, so the only potential problem I could
> imagine is lookup speed,
than phps.
>
> Jack H. Xu
> Technology columnist and author
>
> http://www.usanalyst.com
>
> http://www.getusjobs.com
>
>
> - Original Message -
> From: Nitesh
> To: "Struts Users Mailing List"
> Subject: Re: long struts-config.xml file
&g
author
http://www.usanalyst.com
http://www.getusjobs.com
- Original Message -
From: Nitesh
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
Date: Fri, 17 Jun 2005 13:10:16 +0530
>
> There may not be a performance issue...
> proba
Yuniar and Nitesh,
Thank you for your thinking about the problem.
Do you have web link of web sites that has used struts for 200+ jsp
pages?
Thanks.
- Original Message -
From: Nitesh
To: "Struts Users Mailing List"
Subject: Re: long struts-config.xml file
Date: F
r whatever parameters that could separate/group
actions/jsps/etc together.
Nitesh
- Original Message -
From: "Yuniar Setiawan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 17, 2005 11:55 AM
Subject: Re: long struts-config.xml file
Is
Is there any performance issue when you have very long struts-config.xml?
I'm having about 200+ action either but so far everything is running well,
or perhaps not yet?
On 6/17/05, Nitesh <[EMAIL PROTECTED]> wrote:
>
> You could also think about using multiple struts-config files... say one
>
You could also think about using multiple struts-config files... say one for
each module and use them (in the web.xml for action param-value give the
comma separated config file list.)
Nitesh
- Original Message -
From: "John Henry Xu" <[EMAIL PROTECTED]>
To:
Sent: Friday, June 17, 2
/B.xml etc.
Hope this helps you
Regards,
Venkat
-Original Message-
From: Yen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 11:03 AM
To: Struts Users Mailing List
Subject: Re: long struts-config.xml file
Is that possible, seperate the actions into modules and use the modules
struts
Is that possible, seperate the actions into modules and use the modules
struts-config?
- Original Message -
From: "John Henry Xu" <[EMAIL PROTECTED]>
To:
Sent: Friday, June 17, 2005 12:04 PM
Subject: long struts-config.xml file
Hi all,
In a project I am working on, we have a very l
depends on what version of struts u're working on.
(i have never worked with 200 or so actions). :)
1) i reduced the number of actions using wildcards in action mapping,
and a couple of hidden parameters that i pass to actions. kind of
genericised the actions.
2) use "extends" where possibl
23 matches
Mail list logo