Re: Displaytag

2007-05-17 Thread Balazs Michnay
Thanks for all the replies. If I place the tld file, I get no errors when inserting the "<%@ taglib uri="/WEB-INF/displaytag-el-12.tld" prefix="display" %>" line in the jsp. And the code completion features also works when I start writing To: Struts Users Mailing List Sent: Thursday, May 17, 20

Connection Pooling

2007-05-21 Thread Balazs Michnay
Hi there, This post might not be struts-related, but I read so many posts on this issue, that I thought I might ask... Having read all the posts, I still cannot estabilish database connection using connection pooling. I think I made all the settings I need, but still nothing... 1) I have a tag

Re: [OT] Connection Pooling

2007-05-21 Thread Balazs Michnay
Regards, BM - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 21, 2007 2:33:11 PM Subject: Re: [OT] Connection Pooling -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > I still c

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
3306 but should be like: jdbc:mysql://localhost:3306/akr_db Thanks, Nuwan - Original Message - From: "Balazs Michnay" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 6:39 AM Subject: Re: [OT] Connection Pooling > Th

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Thanks, Nuwan - Original Message - From: "Balazs Michnay" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 6:39 AM Subject: Re: [OT] Connection Pooling > Thanks for helping. > Sure, here are all my settings. > I use MySQL

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
To: Struts Users Mailing List Sent: Tuesday, May 22, 2007 3:38:54 PM Subject: Re: [OT] Connection Pooling Hi, Sorry mate, i think you should ask this from another group like tomcat.., hope this link would give you some help http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto

Serious memory leak

2007-05-22 Thread Balazs Michnay
Hi, I have just downloaded NetBeans Profiler to see how my web-app performs and realized that it produces serious memory leaks... The interesting part is that I have nothing on my JSP but static struts tags (no dynamic content at all) and it turned out that the leaks are not made by my applicat

Re: Serious memory leak

2007-05-23 Thread Balazs Michnay
>> What I discovered was that >> a simple page reload leads to eating up my memory and - according to >> the profiler - the memory leak is produced by the constructor of >> java.util.zip.InflaterInputStream allocating more and more byte[] >> objects that cannot be garbage-collected. >Are you sure

Re: Serious memory leak

2007-05-23 Thread Balazs Michnay
ng? I have the latest Java installed (Version 6 Update 1). Any hey, thanks so much for taking a look at my code, and helping at all, I appreciate it. Regards, BM - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, Ma

Re: Serious memory leak

2007-05-24 Thread Balazs Michnay
code can affect memory load. I appreciate every bits of help. Regards, BM - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, May 23, 2007 4:27:50 PM Subject: Re: Serious memory leak -BEGIN PGP SIGNED MESSAGE-

Re: Serious memory leak

2007-05-30 Thread Balazs Michnay
>I meant filters defined in web.xml, not scriptlets. It's /possible/ that >your tags are using a whole lot of memory, but probably not >(you'd have to be creating randomly-named session attributes over and >over, and never freeing them... I'm guessing you're not doing that). No, I'm not doing tha

Re: [OT] Serious memory leak

2007-06-19 Thread Balazs Michnay
PM Subject: Re: [OT] Serious memory leak -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, I just realized that we're talking about approximately 1MB of char[] data... what's the big deal about that? ;) Balazs Michnay wrote: >> Can you expand the "+" next to Arr

Re: [OT] Serious memory leak

2007-06-19 Thread Balazs Michnay
I forgot to include the link to the image. Here it is: http://www.inf.u-szeged.hu/~michnay/db/db_connections.jpg - Original Message From: Balazs Michnay <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, June 19, 2007 2:16:06 PM Subject: Re: [OT] Serious memor

Re: [OT] Serious memory leak

2007-06-20 Thread Balazs Michnay
uesday, June 19, 2007 7:10:49 PM Subject: Re: [OT] Serious memory leak Balazs, Balazs Michnay wrote: > recently I found > out that my memory consumption of my > application is nothing compared to the memory consumption of my database > server (MySQL). > > I'm theoretically

Re: [OT] Serious memory leak

2007-06-24 Thread Balazs Michnay
ewrite my code and see what happens. Thanks a lot, MB. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, June 20, 2007 2:29:29 PM Subject: Re: [OT] Serious memory leak -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bala

Re: [OT] Serious memory leak

2007-06-25 Thread Balazs Michnay
ewrite my code and see what happens. Thanks a lot, MB. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, June 20, 2007 2:29:29 PM Subject: Re: [OT] Serious memory leak -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bala

Validation framework... weird...

2007-07-24 Thread Balazs Michnay
Dear Struts Users, I have a form with 13 form controls on it. I'd like to use the Struts Validation Framework to validate it, but it's acting weird. What I'd like to do is to have AT LEAST ONE of the controls filled, but the test of "validWhen" only allows simple boolean expressions. I used a si

Chart generator servlet

2007-07-26 Thread Balazs Michnay
Hi there, I wanted to generate charts from my web-app and I found jCharts (http://jcharts.sourceforge.net/) as one good choice. I deployed the example war, so I saw how to set up a simple "chart generator" servlet. It works just fine. If my chart is generated from a servlet, only the resulting c

Validation Framework

2007-03-13 Thread Balazs Michnay
Dear Struts Users, I'm relatively new to Struts and am trying to get the Validation Framework working without success. I've read several tutorials and articles on using it, but it just doesn't want to work. I'm using NetBeans 5.5, so that I can use Struts 1.2.9. Having set everything, I get no

Re: Validation Framework

2007-03-13 Thread Balazs Michnay
- Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, March 13, 2007 4:24:09 PM Subject: Re: Validation Framework --- Balazs Michnay <[

Re: Validation Framework

2007-03-13 Thread Balazs Michnay
Thanks guys, now it perfectly works. As a conclusion, most of the online articles on how to use the validation framework work just fine, but they all missed the validate="true" attribute. Besides this, I had a wrong value of my action's input attribute. Thanks again, you are very helpful. Regard

Bean access from several pages in request scope

2007-03-14 Thread Balazs Michnay
Dear Struts users, I have a form bean with request scope. When submitting the form, the bean can be accessed from the "next page" as expected. On the next page I'd like to show a "Modify" button that goes back to the previous page with all the values entered, so the bean must accessed again. If

Re: Bean access from several pages in request scope

2007-03-14 Thread Balazs Michnay
Sure; use the id to retrieve the bean (just like you would for a normal 'edit' CRUD-type action) and pre-populate the form. Could you please provide a concrete example? I don't really understand what an "'edit' CRUD-type action" is. > use the id to retrieve the bean How do I retrieve it? Should I

MySQL under App server 9 with NetBeans 5.5

2007-03-23 Thread Balazs Michnay
Hi, I've been trying to get MySQL working in my Struts app with NetBeans 5.5 and Sun Java System Application Server 9. I think I'm almost there, because NetBeans can succsesfully connect to MySQL, but my app can't. I read tons of posts in the mailing list archive but I couldn't solve the proble

Memory leak when using DB connection ??

2007-04-06 Thread Balazs Michnay
Dear Struts users, Finally I managed to get DB-handling working, but I'm experiencing problems. When I query the database for about the 10th time, I get the following error message: "java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at

JMap, jsp

2007-04-06 Thread Balazs Michnay
Hi there, Is there a way to get the process ID of a web application? I'd like to use "jmap" to see the "memory state" of my app, but I don't know which pid identifies my web app. When deploying and launching my app, "jps" doesn't show my app... How can I use "jmap" (or any other "memory-watch" t

Form data to Vector

2007-04-13 Thread Balazs Michnay
Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be appreciated.

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
n confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
time. >> >> JSTL has a that sometimes comes in handy where you >> provide a comma separated list of Strings and iterate through the >> elements. >> >> Balazs Michnay wrote: >>> Thanks for the reply. >>> Yes, I know how to use the to display the elements

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
e you a bit >> more help if you need. >> >> Lance. >> >> >> Lance wrote: >> >>> Only way to get data into a Vector is by a scriptlet or in your action. >>> Struts 2's OGNL has a nice way of doing this but unfortunately with >

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
empty record will be created before struts populates it. Balazs Michnay wrote: > This is how I need to do it: I > have a form with two submit buttons. One should add the content of a text > field to a Vector (which is therefore in the form bean) without leaving the > page, and the ot

Displaytag

2007-05-16 Thread Balazs Michnay
Dear Struts users, I've recently downloaded displaytag-1.1 and followed all the instructions on how to install it. It would have been too nice if it had worked immediately, but I get this annoying error message all the time. I ask you guys how to solve this, because I found no posts on this spec