You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ri...@socgen.com on 2002/04/03 11:08:46 UTC

Re[2]: ApplicationResources searchs


If you load in memory it would take some time the first times
I suggest you to load just a part of the file in memory
Rizvan

______________________________ Reply Separator _________________________________



pelly69@hotmail.com
03/04/2002 11:02:00



|-----------------------------------------------------------+------------------|
|                                                           |Return Receipt: No|
| To:    struts-user@jakarta.apache.org                     |Importance: Normal|
| cc:     (bcc: Rizvan KATCHERA/fr/socgen)                  |                  |
|                                                           |                  |
|-----------------------------------------------------------+------------------|




SUBJECT: Re: ApplicationResources searchs


Thanks for your fast response. We are planing development of large
internacionalized web applications and we are considering this issue just in
case.

Anyhow would be interesting since our applications could hold a large amount
of multilanguage keys.

Right to say that loading in memory would speed up searchs.

Any other advice related?

Adolfo

>From: âAâôâgâjü[ âXâeâCâX <s4...@yahoo.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>Subject: Re: ApplicationResources searchs
>Date: Wed, 3 Apr 2002 17:46:48 +0900
>
> > Hi guys,
> >
> > just a question about ApplicationResources file. Is there any chance to
> > speed up key searchs in resource files by alphabetically ordering of the
> > keys within the file. Could be helpful for long keyed files.
> >
> > Any other way to improve performance in fetching the right value for a
>key?
>
>I am curious to know if you are having performance problems with reading
>the ApplicationResources file, do
>you have so many entries in it that it is slow to access?
>
>You might consider writting the values in the ApplicationResources file to
>a bean and getting the properties from
>the bean each time you want them.  Then again, if your ApplicationResources
>file is that big, maybe this bean
>will be VERY large.
>
>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Don't anderstand jsp:usebean mecanism :sory, I'm realy stupid

Posted by Nicolas De Loof <ni...@cgey.com>.
Sorry, I found I've to use jsp:useBean (with uppercase "B") !




----- Original Message -----
From: "Nicolas De Loof" <ni...@cgey.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, April 03, 2002 3:09 PM
Subject: Don't anderstand jsp:usebean mecanism


> On tomcat 3.3.1 I tried the following JSP code:
>
> <jsp:usebean id="logonForm" class="java.lang.String"/>
>
> <%
>  Object toto = pageContext.getAttribute("logonForm");
>  Object titi = pageContext.getRequest().getAttribute("logonForm");
>  Object tutu = pageContext.getSession().getAttribute("logonForm");
> %>
> <%= toto %>
> <%= titi %>
> <%= tutu %>
>
> JSP 1.1 spec says this jsp:usebean syntax would instanciate a new bean
(here
> a simple String). Where is it ?
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Don't anderstand jsp:usebean mecanism

Posted by Nicolas De Loof <ni...@cgey.com>.
On tomcat 3.3.1 I tried the following JSP code:

<jsp:usebean id="logonForm" class="java.lang.String"/>

<%
 Object toto = pageContext.getAttribute("logonForm");
 Object titi = pageContext.getRequest().getAttribute("logonForm");
 Object tutu = pageContext.getSession().getAttribute("logonForm");
%>
<%= toto %>
<%= titi %>
<%= tutu %>

JSP 1.1 spec says this jsp:usebean syntax would instanciate a new bean (here
a simple String). Where is it ?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Re[2]: ApplicationResources searchs

Posted by アントニー ステイス <s4...@yahoo.com>.
Its a design question - where do you want to speed up things.  I think a little extra time starting up the application is OK.  When the application I have starts up it loads lots of reasonabally static information from a database into beans.  It may take a little longer for the application to start up.  But it pays off later when I want to access that data since I don't have to hit the database, same would go for the ApplicationResources file.



On Wed, 3 Apr 2002 11:08:46 +0200
rizvan.katchera@socgen.com wrote:

> 
> 
> If you load in memory it would take some time the first times
> I suggest you to load just a part of the file in memory

How would you work out which part of the file to load into memory?

> Rizvan
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>