Re: OT: OutOfMemory
I found the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
I'm using the internal Eclipse/Exadel Studio tomcat 5.5 but I think it uses the same installed tomcat server since I should havelinked Eclipse to it but it uses it own ser of xml files. I added 1024M to maximum memory but it changed nothing. I couldn't find that 1024 in any xml files in the tomcat directory... - From Taskbar, right click Tomcat5 Service Icon, click Configure. On configure window, choose java tab, enter Initial Memory Pool Maximum Memory Pool. Regards On 11/29/05, Chen Jerry [EMAIL PROTECTED] 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
Because I need to insert a font ... tag in front of every letters of every found given word and a closing/font. The word tested is 'create'(6 letters) and it appears something like 830 times. After using a RegEx, I got the positions of those letters so I need substrings of the main string to fill a StringBuilder with the parts not containing the letters of the words. This loop is not there just to be fancy. --- Well, if I wrote a recursive call which never returns, I could bring down any system. Can you tell us why you need loop 5000 times? Instead 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 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
for (Integer posLetter: positions){ String subText = fullText.substring(start, posLetter); textFormat.append(subText); subText = null; //not required start = posLetter + 1; } with fullText = 5M and textFormat that's even bigger it crashes. An friend tried with a 15M file using Lingo language and it worked without problems and I bet .NET would have no problem either but I'll know tomorrow. Sorry to hear that. Would you please show some source code relative to the problem? Well, 5000 loops of substring with a big string is 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
The only difference between StringBuilder and StringBuffer is that StringBuffer is synchronized...from what I read at least and yes I considered every other methods of String but I don't see any other ways to quickly grab substrings do you have suggestions? 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 font ... tag in front of every letters of every found given word and a closing/font. The word tested is 'create'(6 letters) and it appears something like 830 times. After using a RegEx, I got the positions of those letters so I need substrings of the main string to fill a StringBuilder with the parts not containing the letters of the words. This loop is not there just to be fancy. --- Well, if I wrote a recursive call which never returns, I could bring down any system. Can you tell us why you need loop 5000 times? Instead 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 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
I've considered it but the letters of the word are not necessarily adjacent to one another, there can be letters in between and those letters aren't known so replaceAll doesn't work..or at least it didn't when I tried for something else. replacing abc by def is no problem but 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/29/05, Eric Plante [EMAIL PROTECTED] wrote: The only difference between StringBuilder and StringBuffer is that StringBuffer is synchronized...from what I read at least and yes I considered every other methods of String but I don't see any other ways to quickly grab substrings do you have suggestions? 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 font ... tag in front of every letters of every found given word and a closing/font. The word tested is 'create'(6 letters) and it appears something like 830 times. After using a RegEx, I got the positions of those letters so I need substrings of the main string to fill a StringBuilder with the parts not containing the letters of the words. This loop is not there just to be fancy. --- Well, if I wrote a recursive call which never returns, I could bring down any system. Can you tell us why you need loop 5000 times? Instead 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 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: OT: OutOfMemory
I guess I could try grabbing whole groups instead of their individual letters then I'll have to modify each to add the tags and than do a replacement for each...sounds like a slow process but I have nothing to lose by trying that. Thanks -- 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/29/05, Eric Plante [EMAIL PROTECTED] wrote: The only difference between StringBuilder and StringBuffer is that StringBuffer is synchronized...from what I read at least and yes I considered every other methods of String but I don't see any other ways to quickly grab substrings do you have suggestions? 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 font ... tag in front of every letters of every found given word and a closing/font. The word tested is 'create'(6 letters) and it appears something like 830 times. After using a RegEx, I got the positions of those letters so I need substrings of the main string to fill a StringBuilder with the parts not containing the letters of the words. This loop is not there just to be fancy. --- Well, if I wrote a recursive call which never returns, I could bring down any system. Can you tell us why you need loop 5000 times? Instead 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 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED
Re: OT: OutOfMemory
if it was only that, it wouldn't be a problem but it's create, c*r*e*a*t*e, c**r**e**a**t**e, etc * represents any letters and it stops when the interval between letters is reached. -- Well, to replace each 'create' with 'font color=redcreate/font', you can leverage: String origin = ... String result = origin.replaceAll(create,font color =readcreate/font); 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 StringBuffer is that StringBuffer is synchronized...from what I read at least and yes I considered every other methods of String but I don't see any other ways to quickly grab substrings do you have suggestions? 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 font ... tag in front of every letters of every found given word and a closing/font. The word tested is 'create'(6 letters) and it appears something like 830 times. After using a RegEx, I got the positions of those letters so I need substrings of the main string to fill a StringBuilder with the parts not containing the letters of the words. This loop is not there just to be fancy. --- Well, if I wrote a recursive call which never returns, I could bring down any system. Can you tell us why you need loop 5000 times? Instead 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 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. Reducing the number of string meant using StringBuilder's insertthe slowness of that command makes it not an option. I couldn't find any memory leakage. Where the program systematicaly crash is a loop where I do a substring of the big string everytime(about 5000 loops).I then fill a StringBuilder which will eventualy be bigger than the main string. That's the fastest way I can do what need to be done and it needs to be fast. I'm starting to loose faith in Java...I'll ask a friend that isa.NETspecialist to see if.NET has that problem too...a problem Java shouldn't have... --- 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 the required catalina files and I see 4 lines with the JAVA_OPTS variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in the catalina.bat file but I still get the error message, what am I suppose to do in that file? - Original Message - From: netsql [EMAIL PROTECTED] To: user@struts.apache.org 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 configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yujun Liang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
OT: OutOfMemory
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 with the main String + other strings so I am effectively dealing with 2 huge strings at that point). When I run my application with a smaller string, it works fine so I checked for potential memory leak or bust but it seems to run just the minimum strings and stringbuilder object the application requires and all the objects should be destroyed properly. I checked the web and all I could find was to try raising the heap space exept that java -server -Xmx512m doesn't see any server and it doesn't seem to be a good idea to raise the heap stack anyway but I saw a post saying that Java 5.0 was using a proper heap size(1G although I don't have 1G RAM, I suppose it uses what it can.) I always thought that if there wasn't enough space in memory, applications would use the HD as memory slowing down the application but at least it wouldn't explode. Any idea how my problem could be solved? Are there any memory obscure restrictions to String and StringBuilder I should know that books doesn't say? I just can't see how 2 5M String in memory could be that much of a problem in 2005. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
Thanks 1-How do I know if I use hotspot or not? 2-Is StringBuilder using the same heap as String? 3-What if I can't control the size of the Strings since they come from files that can be as big as the HD memory? 4-Is there a way to use the Hard Drive memory instead of the stack? -- Well, I suppose I can offer some tip that may help. Let me suppose you use Hotspot VM. Sun's Hotspot VM 's heap space consists of three divisions for young generation, old generation and perminant generation. Young generation refers to objects that are created and usually it died in a short time. The corresponding division leverages copying to collect garbage. When some object survives after several gc, It is moved to old generation division, where mark-and-sweep is leveraged. And the perminant gereration is where class objects reside, its default size is 4M(I am not certain). Well, in case of String s = ; is put into division of perminant generation. Your String is huge enough to exceed the size limit and of course throws OutOfMemory error. You can increase only the size of division of perminant 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 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 with the main String + other strings so I am effectively dealing with 2 huge strings at that point). When I run my application with a smaller string, it works fine so I checked for potential memory leak or bust but it seems to run just the minimum strings and stringbuilder object the application requires and all the objects should be destroyed properly. I checked the web and all I could find was to try raising the heap space exept that java -server -Xmx512m doesn't see any server and it doesn't seem to be a good idea to raise the heap stack anyway but I saw a post saying that Java 5.0 was using a proper heap size(1G although I don't have 1G RAM, I suppose it uses what it can.) I always thought that if there wasn't enough space in memory, applications would use the HD as memory slowing down the application but at least it wouldn't explode. Any idea how my problem could be solved? Are there any memory obscure restrictions to String and StringBuilder I should know that books doesn't say? I just can't see how 2 5M String in memory could be that much of a problem in 2005. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
It uses hotspot. I don't append litteral strings but I append substrings of a String object in my StringBuilders. By HD memory I meant physical. If I understand well, there is no solution to my problem, I will always be limited to the heap size? That really troublesome, it should use 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 StringBuilder leverages sb.append(xxx)? If so, I suppose it is the same to String s=xxx;sb.append(s); 3-What if I can't control the size of the Strings since they come from files that can be as big as the HD memory? String loaded seems not to be deal with in the same way as String s = xxx 4-Is there a way to use the Hard Drive memory instead of the stack? I have no idea what is Hard Drive memory, sorry. and stack differs from heap, both differ from physical memory. -- Well, I suppose I can offer some tip that may help. Let me suppose you use Hotspot VM. Sun's Hotspot VM 's heap space consists of three divisions for young generation, old generation and perminant generation. Young generation refers to objects that are created and usually it died in a short time. The corresponding division leverages copying to collect garbage. When some object survives after several gc, It is moved to old generation division, where mark-and-sweep is leveraged. And the perminant gereration is where class objects reside, its default size is 4M(I am not certain). Well, in case of String s = ; is put into division of perminant generation. Your String is huge enough to exceed the size limit and of course throws OutOfMemory error. You can increase only the size of division of perminant 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 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 with the main String + other strings so I am effectively dealing with 2 huge strings at that point). When I run my application with a smaller string, it works fine so I checked for potential memory leak or bust but it seems to run just the minimum strings and stringbuilder object the application requires and all the objects should be destroyed properly. I checked the web and all I could find was to try raising the heap space exept that java -server -Xmx512m doesn't see any server and it doesn't seem to be a good idea to raise the heap stack anyway but I saw a post saying that Java 5.0 was using a proper heap size(1G although I don't have 1G RAM, I suppose it uses what it can.) I always thought that if there wasn't enough space in memory, applications would use the HD as memory slowing down the application but at least it wouldn't explode. Any idea how my problem could be solved? Are there any memory obscure restrictions to String and StringBuilder I should know that books doesn't say? I just can't see how 2 5M String in memory could be that much of a problem in 2005. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: OutOfMemory
Well, since it's a wab appliation, it starts with Tomcat server, not java but anyway, MaxPermSize doesn't seem to exist I tried adding jvm-option in server.xml but it either didn't work or didn't recognize the property. -- Well, heap size and each division has its default value. In fact, they are specified proper values, such as minimal size, maximal size, 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 app as follows, but I am not sure: java -XX:MaxPermSize=10m app 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 memory I meant physical. If I understand well, there is no solution to my problem, I will always be limited to the heap size? That really troublesome, it should use 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 StringBuilder leverages sb.append(xxx)? If so, I suppose it is the same to String s=xxx;sb.append(s); 3-What if I can't control the size of the Strings since they come from files that can be as big as the HD memory? String loaded seems not to be deal with in the same way as String s = xxx 4-Is there a way to use the Hard Drive memory instead of the stack? I have no idea what is Hard Drive memory, sorry. and stack differs from heap, both differ from physical memory. -- Well, I suppose I can offer some tip that may help. Let me suppose you use Hotspot VM. Sun's Hotspot VM 's heap space consists of three divisions for young generation, old generation and perminant generation. Young generation refers to objects that are created and usually it died in a short time. The corresponding division leverages copying to collect garbage. When some object survives after several gc, It is moved to old generation division, where mark-and-sweep is leveraged. And the perminant gereration is where class objects reside, its default size is 4M(I am not certain). Well, in case of String s = ; is put into division of perminant generation. Your String is huge enough to exceed the size limit and of course throws OutOfMemory error. You can increase only the size of division of perminant 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 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 with the main String + other strings so I am effectively dealing with 2 huge strings at that point). When I run my application with a smaller string, it works fine so I checked for potential memory leak or bust but it seems to run just the minimum strings and stringbuilder object the application requires and all the objects should be destroyed properly. I checked the web and all I could find was to try raising the heap space exept that java -server -Xmx512m doesn't see any server and it doesn't seem to be a good idea to raise the heap stack anyway but I saw a post saying that Java 5.0 was using a proper heap size(1G although I don't have 1G RAM, I suppose it uses what it can.) I always thought that if there wasn't enough space in memory, applications would use the HD as memory slowing down the application but at least it wouldn't explode. Any idea how my problem could be solved? Are there any memory obscure restrictions to String and StringBuilder I should know that books doesn't say? I just can't see how 2 5M String in memory could be that much of a problem in 2005. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: OT: OutOfMemory
I'm on windows XP and the only catalina files that might serve for configuration are Catalina.properties and catalina.policy In catalina.properties, there is those lines: tomcat.util.buf.StringCache.byte.enabled=true #tomcat.util.buf.StringCache.char.enabled=true #tomcat.util.buf.StringCache.trainThreshold=50 #tomcat.util.buf.StringCache.cacheSize=5000 Is there anything there I can modify to help? Thanks if your os is linux and like, it is bin/catalina.sh 2005/11/28, Chen Jerry [EMAIL PROTECTED]: Well, you use tomcat, right? There is bin/catalina.bat, where you can specify -XX options. 2005/11/28, Chen Jerry [EMAIL PROTECTED]: Well, heap size and each division has its default value. In fact, they are specified proper values, such as minimal size, maximal size, 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 app as follows, but I am not sure: java -XX:MaxPermSize=10m app 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 memory I meant physical. If I understand well, there is no solution to my problem, I will always be limited to the heap size? That really troublesome, it should use 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 StringBuilder leverages sb.append(xxx)? If so, I suppose it is the same to String s=xxx;sb.append(s); 3-What if I can't control the size of the Strings since they come from files that can be as big as the HD memory? String loaded seems not to be deal with in the same way as String s = xxx 4-Is there a way to use the Hard Drive memory instead of the stack? I have no idea what is Hard Drive memory, sorry. and stack differs from heap, both differ from physical memory. -- Well, I suppose I can offer some tip that may help. Let me suppose you use Hotspot VM. Sun's Hotspot VM 's heap space consists of three divisions for young generation, old generation and perminant generation. Young generation refers to objects that are created and usually it died in a short time. The corresponding division leverages copying to collect garbage. When some object survives after several gc, It is moved to old generation division, where mark-and-sweep is leveraged. And the perminant gereration is where class objects reside, its default size is 4M(I am not certain). Well, in case of String s = ; is put into division of perminant generation. Your String is huge enough to exceed the size limit and of course throws OutOfMemory error. You can increase only the size of division of perminant 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 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 with the main String + other strings so I am effectively dealing with 2 huge strings at that point). When I run my application with a smaller string, it works fine so I checked for potential memory leak or bust but it seems to run just the minimum strings and stringbuilder object the application requires and all the objects should be destroyed properly. I checked the web and all I could find was to try raising the heap space exept that java -server -Xmx512m doesn't see any server and it doesn't seem to be a good idea to raise the heap stack anyway but I saw a post saying that Java 5.0 was using a proper heap size(1G although I don't have 1G RAM, I suppose it uses what it can.) I always thought that if there wasn't enough space in memory, applications would use the HD as memory slowing down the application but at least it wouldn't explode. Any idea how my problem could be solved? Are there any memory obscure restrictions to String and StringBuilder I should know that books doesn't say? I just can't see how 2 5M
scrollbar vs multibox
hi, I have a div on autoscroll that contains multibox. Here's the code div id=motUrlLst class=motLst logic:iterate id=mot name=PandoraForm property=motTreeMap nbsp; html:multibox property=motSelectLst style=width: 10px;height: 10px onclick=autoPostBack('motSelectLst;' + this.value); bean:write name=mot property=key/ /html:multibox span class=mot onclick='remplirChampsMot(bean:write name=mot property=key/)' bean:write name=mot property=value filter=false/ /spanbr/ /logic:iterate /div It works fine when the vertical scroll bar is needed but instead of applying the horizontal, the text change line which is annoying. Any idea how the problem could be solved? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] scrollbar vs multibox
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 div id=motUrlLst class=motLst logic:iterate id=mot name=PandoraForm property=motTreeMap nbsp; html:multibox property=motSelectLst style=width: 10px;height: 10px onclick=autoPostBack('motSelectLst;' + this.value); bean:write name=mot property=key/ /html:multibox span class=mot onclick='remplirChampsMot(bean:write name=mot property=key/)' bean:write name=mot property=value filter=false/ /spanbr/ /logic:iterate /div It works fine when the vertical scroll bar is needed but instead of applying the horizontal, the text change line which is annoying. Any idea how the problem could be solved? Thanks This is nothing to do with Struts, it's just how the HTML render model works. I'm sure there are other solutions, but the two I'd look at to start would be setting nowrap or minwidth on the div in its CSS rules. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:textarea with tags
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] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:textarea with tags
Why? The taglib is fine and it shows the text; the problem is that the text that is supposed to be printed out also includes some pure html tags which aren't parsed. Ex: if I have font color='red'some text/font the textarea print that litteraly instead of printing the text in red. With bean:write, the filter=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 On 4 Nov 2005 at 19:27, Eric Plante wrote: 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] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005 FOCUS Computing - web design Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
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 out which one you need: http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsAndJSTL If it's Servlet 2.3, just copy the .jar files under the 'contrib' directory of Struts 1.2.x into your webapp. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
I have the one that comes with Exadel studio 3.0 (or eclipse3.1). it is named jstl.jar but I don'T know which version I have. All standard taglibs(bean, html and logic) works fine and core tags are recognized but the variables are seens as common strings and my personnal taglibs don't compile 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 [EMAIL PROTECTED] Well, I do have a jstl.jar in the lib of my project already. Do you also have standard.jar? (Both are in contrib/struts-el/lib of the Struts 1.2.7 distribution.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
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 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. Eric Plante wrote: Hi, Wendy, I tried: c:forEach items=${PandoraForm.motTreeMap} var=mot c:out value=${mot.key} / /c:forEach 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 that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % % java.util.TreeMap treeMap = new java.util.TreeMap(); treeMap.put( key1, value1 ); treeMap.put( key2, value2 ); request.setAttribute( treeMap, treeMap ); java.util.HashMap hashMap = new java.util.HashMap(); hashMap.put( value1, description1 ); hashMap.put( value2, description2 ); hashMap.put( key1, descByKey1 ); hashMap.put( key2, descByKey2 ); request.setAttribute( hashMap, hashMap ); % c:forEach items=${treeMap} var=obj ${hashMap[obj.value]} /c:forEach hr/ c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach If you need help adding JSTL to your webapp, just ask. (We need to know what version of the Servlet specification you're working with-- Servlet 2.4 (Tomcat 5.x) or something else?) HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integrating Hibernate 3.0 in Struts application
http://www.hibernate.org/hib_docs/v3/reference/en/html/ but someone else posted it or part of it. - Original Message - From: Gaet [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, October 25, 2005 3:27 AM Subject: Re: Integrating Hibernate 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 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 user@struts.apache.org Sent: Monday, October 24, 2005 10:12 AM Subject: Integrating Hibernate 3.0 in Struts application Hi, Is there anybody that could give me a good URL that show how to integrate Hibernate in Struts. It would be better if it is for Hibernate 3.0... Thanks for help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
Hi, Wendy, I tried: c:forEach items=${PandoraForm.motTreeMap} var=mot c:out value=${mot.key} / /c:forEach 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 that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % % java.util.TreeMap treeMap = new java.util.TreeMap(); treeMap.put( key1, value1 ); treeMap.put( key2, value2 ); request.setAttribute( treeMap, treeMap ); java.util.HashMap hashMap = new java.util.HashMap(); hashMap.put( value1, description1 ); hashMap.put( value2, description2 ); hashMap.put( key1, descByKey1 ); hashMap.put( key2, descByKey2 ); request.setAttribute( hashMap, hashMap ); % c:forEach items=${treeMap} var=obj ${hashMap[obj.value]} /c:forEach hr/ c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach If you need help adding JSTL to your webapp, just ask. (We need to know what version of the Servlet specification you're working with-- Servlet 2.4 (Tomcat 5.x) or something else?) HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
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. Eric Plante wrote: Hi, Wendy, I tried: c:forEach items=${PandoraForm.motTreeMap} var=mot c:out value=${mot.key} / /c:forEach 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 that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % % java.util.TreeMap treeMap = new java.util.TreeMap(); treeMap.put( key1, value1 ); treeMap.put( key2, value2 ); request.setAttribute( treeMap, treeMap ); java.util.HashMap hashMap = new java.util.HashMap(); hashMap.put( value1, description1 ); hashMap.put( value2, description2 ); hashMap.put( key1, descByKey1 ); hashMap.put( key2, descByKey2 ); request.setAttribute( hashMap, hashMap ); % c:forEach items=${treeMap} var=obj ${hashMap[obj.value]} /c:forEach hr/ c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach If you need help adding JSTL to your webapp, just ask. (We need to know what version of the Servlet specification you're working with-- Servlet 2.4 (Tomcat 5.x) or something else?) HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integrating Hibernate 3.0 in Struts application
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 user@struts.apache.org Sent: Monday, October 24, 2005 10:12 AM Subject: Integrating Hibernate 3.0 in Struts application Hi, Is there anybody that could give me a good URL that show how to integrate Hibernate in Struts. It would be better if it is for Hibernate 3.0... Thanks for help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with custom taglibs
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 without a problem. Now, what I need to do is to use the obj's key on another Map in the form object which would be easy if I had control over the session and request object and was using normal jsp programming but I have no idea how to do so with struts using taglibs. I had the idea of doing it by creating my own taglib but I didn't manage to do it even after consulting some tutorials. I started with this tag configuration in mind: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/fetch.tld prefix=fetch % logic:iterate id=obj name=PandoraForm property=treeMap fetch:item name=PandoraForm property=hashMap bean:write name=obj property=key/ /fetch:item /logic:iterate PandoraForm is the form object. hashMap is a property of type HashMap in PandoraForm. The tag is supposed to print out the String value for obj's key in hashMap, obj come from treeMap. I made this tld: ?xml version=1.0 encoding=UTF-8? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namefetch/short-name tag namevaleur/name tag-classFetchValueIntoMap/tag-class body-contentJSP/body-content attribute namename/name requiredtrue/required /attribute attribute nameproperty/name requiredtrue/required /attribute /tag /taglib now, assuming that it's good until now, I have trouble making my class, What I have now is this: import javax.servlet.jsp.tagext.*; import java.util.*; public class FetchValueIntoMap extends BodyTagSupport{ private ??? property; private ??? name; private static final long serialVersionUID = 1L; public int doAfterBody(){ System.out.println(property); System.out.println(name); String label = ; BodyContent body = getBodyContent(); String key = body.getString(); System.out.println(key); //will loop over the Map if I can get it try{ body.getEnclosingWriter().println(label); } catch(Exception ex){ ex.printStackTrace(); } return EVAL_PAGE; } public ??? getName(){ return name; } public void setName(??? name){ this.name = name; } public ??? getProperty(){ return property; } public void setProperty(??? property){ this.property = property; } } Any idea how I can make this freak tag to work? Thanks
Re: Problems with custom taglibs
I don't know what this c: tag is for but I'd rather make it work with bean, html, logic and this custom tag of mine. It's not just a matter of making it work, it's also a matter of learning how to make a taglib and also because the whole page is made of those taglibs. I simplified it to keep the bare minimum for what I really need now. fetch.tld is ?xml version=1.0 encoding=UTF-8? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/dtd/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamefetch/shortname tag namevaleur/name tagclassFetchValue/tagclass bodycontentJSP/bodycontent /tag /taglib I took the info from the bean tld so it should be correct the class FetchValue is: import javax.servlet.jsp.tagext.*; public class FetchValue extends BodyTagSupport{ private static final long serialVersionUID = 1L; public int doAfterBody(){ BodyContent body = getBodyContent(); String label = body.getString(); System.out.println(label); try{ body.getEnclosingWriter().println(label); } catch(Exception ex){ ex.printStackTrace(); } return EVAL_PAGE; } } the jsp page for what I need is: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/fetch.tld prefix=fetch % ... logic:iterate id=mot name=PandoraForm property=motTreeMap fetch:valeur bean:write name=mot property=value/ /fetch:valeur /logic:iterate ... 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 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 without a problem. Now, what I need to do is to use the obj's key on another Map in the form object The tag is supposed to print out the String value for obj's key in hashMap, obj come from treeMap. So your form has two Maps that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % % java.util.TreeMap treeMap = new java.util.TreeMap(); treeMap.put( key1, value1 ); treeMap.put( key2, value2 ); request.setAttribute( treeMap, treeMap ); java.util.HashMap hashMap = new java.util.HashMap(); hashMap.put( value1, description1 ); hashMap.put( value2, description2 ); hashMap.put( key1, descByKey1 ); hashMap.put( key2, descByKey2 ); request.setAttribute( hashMap, hashMap ); % c:forEach items=${treeMap} var=obj ${hashMap[obj.value]} /c:forEach hr/ c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach If you need help adding JSTL to your webapp, just ask. (We need to know what version of the Servlet specification you're working with-- Servlet 2.4 (Tomcat 5.x) or something else?) HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, October 23, 2005 12:05 PM Subject: Re: Problems with custom taglibs From: Eric Plante [EMAIL PROTECTED] 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 without a problem. Now, what I need to do is to use the obj's key on another Map in the form object The tag is supposed to print out the String value for obj's key in hashMap, obj come from treeMap. So your form has two Maps that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl
Re: Problems with custom taglibs
I don't know what this c: tag is for but I'd rather make it work with bean, I just saw that c was the name of your taglib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
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: Eric Plante [EMAIL PROTECTED] 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 without a problem. Now, what I need to do is to use the obj's key on another Map in the form object The tag is supposed to print out the String value for obj's key in hashMap, obj come from treeMap. So your form has two Maps that are keyed alike? I don't think you need a custom tag (or Struts tags) at all. This iterates over a treeMap and uses the key of each 'obj' as the key into a hashMap: c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach That's with the Maps in request scope... if they're coming from the form bean, it would be items=${formBeanName.treeMap} (assuming there is a getTreeMap method on your form bean.) The above also assumes JSTL 1.1. If you're using JSTL 1.0 you'd need a c:out value=... / in the middle rather than just the expression. Here's the JSP I was using to play with this: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % % java.util.TreeMap treeMap = new java.util.TreeMap(); treeMap.put( key1, value1 ); treeMap.put( key2, value2 ); request.setAttribute( treeMap, treeMap ); java.util.HashMap hashMap = new java.util.HashMap(); hashMap.put( value1, description1 ); hashMap.put( value2, description2 ); hashMap.put( key1, descByKey1 ); hashMap.put( key2, descByKey2 ); request.setAttribute( hashMap, hashMap ); % c:forEach items=${treeMap} var=obj ${hashMap[obj.value]} /c:forEach hr/ c:forEach items=${treeMap} var=obj ${hashMap[obj.key]} /c:forEach If you need help adding JSTL to your webapp, just ask. (We need to know what version of the Servlet specification you're working with-- Servlet 2.4 (Tomcat 5.x) or something else?) HTH, -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom taglibs
I find those core tags to look too much like a disguised version of % % tag which I prefer to avoid if I could. I'd rather want to know what's wrong with the custom tag I designed. I want to learn how to make them and this one should work but doesn't. I'm using version 2.3 and I'm using tomcat 5.5.9 - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, October 23, 2005 3:05 PM Subject: Re: Problems with custom taglibs From: Eric Plante [EMAIL PROTECTED] 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. JSTL is a standard and is the recommended way to iterate over collections. I would save the custom tags for things that aren't already available in Struts or JSTL. You'll probably find something specific to your application that you can practice on. Post the code that isn't working and someone will take a look. My guess is that you missed the ${} around the text, without that it will not be evaluated as an expression. I'm about to throw out a bunch of acronyms and version numbers, but in order to help I need to know what you're using. First, what Servlet container and version are you using? (The real question is: What version of the Servlet spec are you using?) Look at the top of your web.xml file, it should say web-app version=x.x. That's the number I need. I noticed that your tld specified JSP 1.1, so if you have to support Servlet 2.2/JSP 1.1, I don't think JSTL is an option. JSTL 1.0 requires at least Servlet 2.3/JSP 1.2 (Tomcat 4.x). http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/intro.html -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom tags
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 script language=javascript src=Pandora.js/script and not at all when I added LINK REL=STYLESHEET HREF=pages/Pandora.css content-TYPE=TEXT/CSS/ If I add the code directly into the jsp file, it works perfectly well. Both are in the same directory as the .jsp file, they are all in the /pages directory under web-content Thanks Eric-| Can you post the web.xml, struts-config.xml and the Tag source code so we can run it on our own boxes We would need to see all of these to understand whats going on.. Martin- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config data-sources/ form-beans form-bean name=PandoraForm type=PandoraForm/ /form-beans global-exceptions/ global-forwards forward name=index path=/pages/Pandora.jsp/ /global-forwards action-mappings action input=/pages/Pandora.jsp name=PandoraForm path=/Pandora scope=session type=PandoraAction forward name=pandora path=/pages/Pandora.jsp/ /action /action-mappings controller/ message-resources parameter=Pandora/ plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ /plug-in /struts-config ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-namePandora/display-name servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list taglib taglib-uri/WEB-INF/struts-bean/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/fetch/taglib-uri taglib-location/WEB-INF/fetch.tld/taglib-location /taglib /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Problems with custom tags
- 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 and I dodnt see the JSP that uses it also did you state what your TagLib declaration is I found this very helpful http://www.orionserver.com/docs/tutorials/taglibs/1.html Thanks, M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom tags
Another attempt at sending files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with custom tags
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 at sending files. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html tags not parsed by taglibs
no, it's not the taglib that isn't parsed but the html tags in the property's string to be written by the taglib. - Original Message - From: Kishore Senji [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, October 11, 2005 12:18 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 Plante [EMAIL PROTECTED] wrote: Hi, When I hardcode something like font color=redhello/font between div and /div 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 can someone explain to me why bean:write acts like that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:text not interpreted :-(
is it within html:form and /html:form 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.tld prefix=logic% The .tld are physicaly in my /WEB-INF directory. I'm using Exadel Studio which does the complex things for me. - Original Message - From: bib_lucene bib [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, October 11, 2005 2:41 AM Subject: Re: html:text not interpreted :-( no, just put a simple html:text to see if a text box appears, I thought I will get this done and then continue adding more elements adding action classes etc? Is that wrong approach? [EMAIL PROTECTED] wrote: Have u map it with form-bean. bib_lucene bib 10/11/2005 11:54 AM Please respond to Struts Users Mailing List To Struts Users Mailing List cc Subject Re: html:text not interpreted :-( ok I attached files , I access this page using http://localhost:8090/rs/tiles/example.jsp It displays header, left pane, content, footer. But does not show text box in content. Thanks for your help. bib Wendy Smoak wrote: From: bib_lucene bib I still cannot see the text field in body. This is the content of my web.xml If you're using the known URI for the taglibs, then you don't need in web.xml. (Fix the Tiles URI before removing its from web.xml though.) Are you sure your browser hasn't cached the old, incorrect page? Try holding down shift and hitting refresh/reload to make sure you're getting a new version. You can also stop your container and delete its 'work' files to force it to recompile the JSP. If you still need help, post some of the JSP code for your form and the resulting HTML. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com mands, e-mail: [EMAIL PROTECTED] Yahoo! Music Unlimited - Access over 1 million songs. Try it free.version=1.0 encoding=ISO-8859-1? RS DB Connection jdbc/mysqlDB javax.sql.DataSource Container AdminServlet com.rs.servlets.AdminServlet UserServlet UserServlet User Actions go into this one com.rs.servlets.UserServlet CandidateServlet CandidateServlet Candidate Actions go into this one com.rs.servlets.CandidateServlet action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 3 detail 3 0 AdminServlet /servlet/AdminServlet UserServlet /servlet/UserServlet CandidateServlet /Candidate.html action *.do 30 http://displaytag.sourceforge.net/ /WEB-INF/tlds/displaytag-11.tld index.jsp login.jsp 404 /error.jsp /tags/struts-bean /WEB-INF/struts-bean.tld /tags/struts-logic /WEB-INF/struts-logic.tld /tags/struts-nested /WEB-INF/struts-nested.tld /tags/struts-tiles /WEB-INF/struts-tiles.tld - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html tags not parsed by taglibs
Many thanks! It worked! try using filter=false e.g. bean:write name=myBean property=myProp filter=false / Gareth Kishore Senji wrote: 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 Plante [EMAIL PROTECTED] wrote: Hi, When I hardcode something like font color=redhello/font between div and /div 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 can someone explain to me why bean:write acts like that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gareth Evans MSoft eSolutions Limited Technology Centre Inward Way Rossmore Business Park Ellesmere Port Cheshire CH65 3EN -- Tel:+44 (0)870 0100 704 Fax:+44 (0)870 9010 705 E-Mail: [EMAIL PROTECTED] Web:www.msoft.co.uk -- Terms: Please note that any prices quoted within this e-mail are subject to VAT. All program details and code described in this e-mail are subject to copyright © of MSoft eSolutions Limited and remain the intellectual property of MSoft eSolutions Limited. Any proposal or pricing information contained within this e-mail are subject to MSoft eSolutions' Terms and Conditions -- Disclaimer: This message is intended only for use of the addressee. If this message was sent to you in error, please notify the sender and delete this message. MSoft eSolutions Limited cannot accept responsibility for viruses, so please scan attachments. Views expressed in this message do not necessarily reflect those of MSoft eSolutions Limited who will not necessarily be bound by its contents. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to sustain the sanity of the connection pool
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 connection? We weren't able to close it, so does it continue to allocate a connection from the pool? in the finally clause, check if the connection was opened, if it was, close it. IMHO, it might be better to open and close your connection in the method that make the call to the DB which would be synchronized for security sake. My other question is about the connection pooling itself. Are there any tools or ideas to monitor the sanity of the connection pool? Are we somehow able to find the classes where leakage occur? not sure what you mean by leakage but I use Hibernate so I'm not concerned anymore about inner problems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html tags not parsed by taglibs
Hi, When I hardcode something like font color=redhello/font between div and /div 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 can someone explain to me why bean:write acts like that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]