27;,
you can leverage:
String origin = ...
String result = origin.replaceAll("create","create");
I am not sure whether this operation should result in the same problem.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> The only difference between StringBuilder and Stri
tried,
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#replaceAll(java.lang.String,%20java.lang.String)
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> The only difference between StringBuilder and StringBuffer is that
> StringBuffer is synchronized...from what I rea
ut is it supposed to work to replace
a.{2}b.{2}c by d.{2}b.{2}c? I tried something like that before and it didn't
work.
--
have you tried,
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#replaceAll(java.lang.String,%20java.lang.String)
On 11/2
tions?
Instead of using StringBuilder, did you consider using StringBuffer as an
alternative? Have you check all the available method within String class
itself?
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> Because I need to insert a tag in front of every letters o
s terrible.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> It wasn't there but I added it and whatever I used -Xmx or -XX, it didn't
> work. I wrote 100m for the -XX...
>
> I also checked again where I could optimized and where I could find memory
> leakage.
d of using
StringBuilder, did you consider using StringBuffer as an alternative? Have
you check all the available method within String class itself?
This is the checklist I can think of for now, hope it helps.
On 11/29/05, Eric Plante <[EMAIL PROTECTED]> wrote:
>
> It wasn't there
; wrote:
>
> I found in my catalina.bat:
> set JAVA_OPTS=
> Instead of that, use:
> set JAVA_OPTS=-XX:MaxPermSize=10m
>
> -Xmx512m seems only increase max size of heap rather than perm division.
>
> 2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> > I found th
PTS=
Instead of that, use:
set JAVA_OPTS=-XX:MaxPermSize=10m
-Xmx512m seems only increase max size of heap rather than perm division.
2005/11/29, Eric Plante <[EMAIL PROTECTED]>:
> I found the required catalina files and I see 4 lines with the JAVA_OPTS
> variable. I tried replacing
t; <[EMAIL PROTECTED]>
To:
Sent: Sunday, November 27, 2005 10:09 PM
Subject: Re: OT: OutOfMemory
>
> http://tomcat.apache.org/faq/memory.html#adjust
>
>
> Eric Plante wrote:
> > I'm on windows XP and the only catalina files that might serve for
> > configura
> > ratio, etc., according to requirement. Did you try customizing memory
> > model of Hotspot at application startup? I suppose your problem can be
> > solved by increase the maximal size of perm division at startup.
> > You can start up as follows, but I am not sure:
>
sion at startup.
You can start up as follows, but I am not sure:
java -XX:MaxPermSize=10m
2005/11/28, Eric Plante <[EMAIL PROTECTED]>:
> It uses hotspot.
>
> I don't append litteral strings but I append substrings of a String object
> in my StringBuilders.
>
> By HD
e the
physical memory when the heap overload.
Thanks
2005/11/28, Eric Plante <[EMAIL PROTECTED]>:
> Thanks
>
> 1-How do I know if I use hotspot or not?
$ java -version
> 2-Is StringBuilder using the same heap as String?
"xxx" is regard as permniant object. does your Strin
generation to solve the problem by
specifying some -X option. I am sorry to say that I lose my notebook
the day before yesterday, so I cannot give any further tip.
Regards,
Jerry
2005/11/28, Eric Plante <[EMAIL PROTECTED]>:
> Hi,
>
> I have a struts application(1.1) using Eclipse an
Hi,
I have a struts application(1.1) using Eclipse and Exadel Studio with tomcat
5.5.9 using Jave 5.0
I have to deal with a huge String in memory, about 5-6M and every time I run
my web application, I get java.OutOfMemoryError: java heap space...always at
the same place(I fill a StringBuilder wit
Thanks, it worked.
Sorry of the out of topic post.
> Eric Plante wrote:
> > hi,
> >
> > I have a div on autoscroll that contains multibox. Here's the code
> >
> >
> >
> >
> >
> >
> >
>
hi,
I have a div on autoscroll that contains multibox. Here's the code
It works fine when the vertical scroll bar is needed but instead of applying
the horizontal, the text change line which is annoying.
Any ide
false print the text in red but textarea doesn't
have a filter attribute so I was wondering if there was a way to print the
text in red in a textarea taglib.
> Sounds like you are missing your taglib definition for "html"? Can you
post your JSP
> file?
>
> mc
>
>
Hi,
I'd like to use a html:textarea tag but my html tags in the text aren't
parsed and there is no filter like bean:write has, Is there a way to make
that tag parse html tags?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
ompile but not sure if that is tied to the jstl as
well(anyone knows?)
How can I know which jstl.jar version I'm using? it's property doesn't say.
I'm using servlet 2.3(I started my project with an olded version by mistake)
Thanks
> From: "Eric Plante" <[EMAI
Well, I do have a jstl.jar in the lib of my project already.
> From: "Laurie Harper" <[EMAIL PROTECTED]>
>
> > Yes, you need to add the implementation jars to your application
> > classpath. Which version you need to install will depend on your servlet
> > container.
>
> This might help you sort
Can it explain why custom taglibs I made don'T work too?
Thanks
> Yes, you need to add the implementation jars to your application
> classpath. Which version you need to install will depend on your servlet
> container.
>
> L.
>
> Eric Plante wrote:
> > Is there
Is there more to add than <%@ taglib uri="http://java.sun.com/jsp/jstl/core";
prefix="c" %>
in my jsp page?
Eric
> Sounds like you didn't add JSTL to your application (that's why the JSTL
> expression isn't being evaluated).
>
> L.
Hi,
Wendy, I tried:
That's a test to output every key in the Map which contain 10 items.
the tags are recognized but what's output is ${mot.key} once litteraly, the
strings aren't recognized as data. I tried without the c:out but the reszult
is the same.
> So your form has two Maps th
3.0 in Struts application
Your url do not work Eric
- Original Message -
From: Eric Plante
To: Struts Users Mailing List
Sent: Tuesday, October 25, 2005 12:48 AM
Subject: Re: Integrating Hibernate 3.0 in Struts application
The tutorial on hibernate's site does the
The tutorial on hibernate's site does the job, that's what I used.
http://www.hibernate.org/hib_doc/v3/reference/en/html/totorial.html#tutorial-firstapp
- Original Message -
From: "Gaet" <[EMAIL PROTECTED]>
To: "Mailing List Struts"
Sent: Monday, October 24, 2005 10:12 AM
Subject: Inte
Sorry about this, my files do not seem to reach the list, I will send them
directly to you Mr. Gainty.
Thanks
- Original Message -
From: Eric Plante
To: user@struts.apache.org
Sent: Sunday, October 23, 2005 6:48 PM
Subject: Re: Problems with custom tags
Another attempt
Another attempt at sending
files.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Original Message -
From: Eric Plante
To: [EMAIL PROTECTED]
Sent: Sunday, October 23, 2005 6:43 PM
Subject: Re: Problems with custom tags
That'S strange, I sent 4 files and only 2 made
it.
I hope those 3 will make
it.
Thanks
> I didnt see your Tag source
code>
I've put the files you needed in attachement.
I have a question that is not really about struts but maybe someone can
answer.
I wanted to use .css and .js files but my js file was acting wierd when I
added and not at
all when I added
If I add the code directly into the jsp file, it works
version 2.3 and I'm using tomcat 5.5.9
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Sunday, October 23, 2005 3:05 PM
Subject: Re: Problems with custom taglibs
> From: "Eric Plante" <[EMAIL P
I tried with the c:out tag within the iterate:iterate tag and it simply
print out the string, same thing if I just write the variable itself.
is the c:foreach the only way to do it? I'd rather not make a drstic change
to my site and I want to practice doing my own tag too.
> From: &quo
> I don't know what this
ogic" %>
<%@ taglib uri="/WEB-INF/fetch.tld" prefix="fetch" %>
...
...
I get this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
Thanks
From: "Eric Plante" <[EMAIL PROTECTED]>
> I have a logic:iterate on a Ma
Hi,
After reading about how to make taglibs, I can't fathom how I can make what I
want to do even afer consulting some tutorials.
I have a logic:iterate on a Map. let say that the object name obj is taken out
of the Map. I use obj inside the logic:iterate to get the key and value of each
obj w
>It is very usual that we open a connection to the database at the beginning
>of the Action class and then close it at the end. When an >exception
occurs,
>an exception-handler outside of our Action class (in which >the exception
is
>thrown) handles the exception. Then, what happens to the >connect
ot; in it? If so, you might have just
> > forgot the bean taglib reference (<%@ taglib ...%>)
> >
> > On 10/10/05, Eric Plante <[EMAIL PROTECTED]> wrote:
> >
> >>Hi,
> >>
> >>When I hardcode something like hello between
> >>
> >
is it within and tags?
here's the header of my own jsp page concerning the taglibs just in cast it
works for you since it works well for me.
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.
8 AM
Subject: Re: html tags not parsed by taglibs
When you say "bean:write is not parsed", you mean that in the html source
that's generated you see "bean:write" in it? If so, you might have just
forgot the bean taglib reference (<%@ taglib ...%>)
On 10/10/05, Eric
Hi,
When I hardcode something like hello between
and in my jsp page, it works.
if I put the same string in a property and use it in a bean:write, it's not
parsed, the page shows the whole string which is not what I need.
Is there a way to make the bean:write parse the string in the jsp? And ca
39 matches
Mail list logo