OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Marco Mistroni
Hello, First of all, I apologize for the off topic issue.. I know this is not the list, but I tried hibernate forums, and Searched the web with no solution.. hopefully some of u had the Same problem and solved it.. I m experiencing problems with Hibernate in tomcat, talking to mysql.

RE: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Joe Hertz
Hibernate's internal connection pooling isn't meant for production because it does things just like that. Suggest you use c3p0 for the pooling. From my hibernate.cfg.xml, I only had to add this: property name=c3p0.minPoolSize5/property property name=c3p0.maxPoolSize20/property

Re: IE5.0 and CSS import

2004-07-30 Thread Nicolas De Loof
Having this, you need all your action path to have same number of directory levels, so that ../.. points to the application context root. We use modules and structured path with up to 3 levels, so using html:rewrite is usefull to assume URI to static resources (css or images) are valid. Nico.

Re: IE5.0 and CSS import

2004-07-30 Thread Mark Lowe
Yeah there is a cost.. in which case i'd get the context path and use that, but makes moving a template into the app a little more work. Mark On 30 Jul 2004, at 11:57, Nicolas De Loof wrote: Having this, you need all your action path to have same number of directory levels, so that ../.. points

Re: OT/ Tomcat, Hibernate and MYSQL problem ( byte to blob )

2004-07-30 Thread Bryan Hunt
My app is able to do it no problem, back and forth. You can get the source code from http://jestate.revoltingdigits.com/ ie.jestate.struts.action.ImageUploadAction My code is a mess at the moment but that code is working. --b Mark Lowe wrote: I've had the same thing happen using DBCP and C3PO, I

RE: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Marco Mistroni
Hello, Marco, please tell us what winds up happening with your app. I'm now very curious. Well, I m using, as I said, mysql connector 3.0.11, with mysql 4.1 alpha hibernate together. My app is running on tomcat 5.0 I m using hibernate 2.1. I haven't configured any connection pools on

[OT] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
I spent a while yesterday Googling around for an XSD for Tiles and simply couldn't find one, so as a result I've generated one up for anyone else that needs it... http://www.groundside.com/blog/resources/DuncanMills/tiles-config_1_1.xsd Enjoy... (For a discussion on installing this in

Re: [OT] XML Schema for Tiles

2004-07-30 Thread Mark Lowe
sorry i just read the blog and seen that its not what you want at all. In fact you didn't want anything in the first place :) On 30 Jul 2004, at 14:42, Mark Lowe wrote: Is downloading this what you want to do? http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd Mark On 30 Jul 2004, at

Re: [OT] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
Nope - I needed an XML schema not a DTD to register with JDeveloper's XML editor - The XSD I've created is generated out of the DTD so they are consistent. Regards Duncan Mills Mark Lowe wrote: Is downloading this what you want to do? http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd

RE: Struts Live Sites

2004-07-30 Thread Chappell, Simon P
Just to let folks know that I have updated the Struts page on my website. Many thanks to the folks that emailed me with new candidates for inclusion. http://www.simonpeter.com/techie/java/struts/sites.html The evidence seems to suggest that Struts is doing fine out in the big wide world! :-)

Help on Validator MASK needed

2004-07-30 Thread Thomas Vogt
Hi, I would appreciate some help, My DynaValidator Form doesn't get validated, I need a signed value (the field is an Integer). But the Mask doesn't seem to get the meaning in the plus or minus in front. Thats why whenever the form gets validated i get the mask error. Below is my actual

Re: Struts Live Sites

2004-07-30 Thread Vic Cekvenich
Ziff Davis used to be ASP in Jan of this year: http://uptime.netcraft.com/up/graph/?host=1up.com But now 10MM members on 5 magazines are on Struts. .V Chappell, Simon P wrote: Just to let folks know that I have updated the Struts page on my website. Many thanks to the folks that emailed me with

RE: Help on Validator MASK needed

2004-07-30 Thread Jarnot Voytek Contr AU/SC
have you tried escaping the + and -? [\+\-] -Original Message- From: Thomas Vogt [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 8:10 AM To: [EMAIL PROTECTED] Subject: Help on Validator MASK needed Hi, I would appreciate some help, My DynaValidator Form doesn't get

AW: RE: Help on Validator MASK needed

2004-07-30 Thread Thomas Vogt
Seems like the Slashes got lost, yes I tried that, but merely had any effect, the resulting error was the same. - Original-Nachricht Von: Struts Users Mailing List [EMAIL PROTECTED] An: 'Struts Users Mailing List' [EMAIL PROTECTED] Betreff: RE: Help on Validator MASK needed

Re: [OT] XML Schema for Tiles

2004-07-30 Thread Duncan Mills
Just giving back to the community... Regards Duncan Mills Mark Lowe wrote: sorry i just read the blog and seen that its not what you want at all. In fact you didn't want anything in the first place :) On 30 Jul 2004, at 14:42, Mark Lowe wrote: Is downloading this what you want to do?

Forwarding to another struts application

2004-07-30 Thread Mulligan, Scott H
I have two distinct Struts applications running in Tomcat. I would like to forward a request from one application to the other and still be able to access the request attributes. Is this possible to do in the Struts framework without customizing the Controller? It seems that Struts can only

Re: taglibs: how can i rewrite an action uri without rendering a html link tag?

2004-07-30 Thread Ruth, Brice
alu, artifex wrote: i need to rewrite an action uri for use in a javascript function, something like this: -- function foo() { document.location.href=html:link action=/foo/bar paramId=blah paramName=blah/; } -- however the html:link renders html code which i can't use in my

Re: Newbie - DataBase

2004-07-30 Thread Peng Tuck Kwok
On Fri, 30 Jul 2004 09:07:36 -0400, Bussie, Andre D [EMAIL PROTECTED] wrote: Is there a way in the Jakarta Struts framework to perform a database query in an Action class w/o using a Action Form Class? It sure is. The next question would be: why would you want to do that in the action ? :D

Re: Newbie - DataBase

2004-07-30 Thread Paul Barry
I think why you would want to do it is pretty obvious, you need to get data from the database to display on your page, such as a list of items. A better question is why would you not want to. That answer to that question is that it would be better to encapsulate your database query in a Data

RE: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Gupta, Sahil
Yup. You should be using your session object as implementing the sessionbindinglistener...and from the session binding event, you can find out the session information and for an unbound event, implement your business logic. sahil -Original Message- From: Geeta Ramani [mailto:[EMAIL

RE: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Geeta Ramani
Thank you, Sahil. This error kind of threw me - two days ago i would have sworn I knew all I needed to know about the HttpSessionlistener (teach me to be to so sanguine!) - so I am glad to hear confirmation about my proposed solution. Thanks again! Geeta -Original Message- From:

RE: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Geeta Ramani
Hmm.. Today must be my day to get stumped.. So how do you explain the javadocs which says: Notification that a session **was** invalidated. Geeta -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 8:04 PM To: Struts Users Mailing List

concurrency management

2004-07-30 Thread Jignesh Patel
Hi, How do we will manage concurrency if suppose we have connection pool which is managed with struts1.1 on tomcat. And then we have two we server now suppose two connection from two server try to access the database at the same time. How we can handle? I know from my previous posting

DAO Resource Suggestions

2004-07-30 Thread Bussie, Andre D
Does anyone know of good resources on implementing a DAO and service within a struts application Andre' D. Bussie Sourcing Rotational Program MAC-MAR 532 Fellowship Rd Moorestown, NJ 08057 856.787.3273 856.952.7325 - Cell [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

RE: DAO Resource Suggestions

2004-07-30 Thread Geeta Ramani
You mean something like this? http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html Geeta -Original Message- From: Bussie, Andre D [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 10:48 AM To: [EMAIL PROTECTED] Subject: DAO Resource Suggestions

RE: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Geeta Ramani
Ah. You mean session.getId() would not bomb on me after the session is invalidated, is that right? In which case, that's a good idea too.. Thanks! Geeta -Original Message- From: K. Citron [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 10:57 AM To: Struts Users Mailing List

Re: DAO Resource Suggestions

2004-07-30 Thread Paul Barry
Here is another one: http://www.javapractices.com/Topic66.cjp Bussie, Andre D wrote: Does anyone know of good resources on implementing a DAO and service within a struts application Andre' D. Bussie Sourcing Rotational Program MAC-MAR 532 Fellowship Rd Moorestown, NJ 08057 856.787.3273

jstl indexes within html tags?

2004-07-30 Thread Woodchuck
hello, i don't have the option of using struts-el, nor am i using Tomcat 5. how can i get jstl and struts to work in harmony? c:forEach var=foobar begin=0 end=5 html:select name=mybean property=??? html:optionsCollection name=mybean property=myoptions/ /html:select /c:forEach i need the

Re: Indentation using html:messages tag

2004-07-30 Thread Nathan Maves
So you are looking for something like this First Name Required Max Length Last Name Required Hard to help unless we know what you are looking for? Nathan On Jul 30, 2004, at 3:08 AM, Suresh S wrote: Hi, OK, i got what you r trying to say .But the problem is the errors

redirect to login page with error message on the jsp page

2004-07-30 Thread Asim Ghosh
hello, can anybody tell me how to redirect to login page with error message on the jsp page. It should display error message You session has timed out on the login page. in web.xml session-config session-timeout30/session-timeout /session-config

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Asim Ghosh
Are u sure that this will work because i have tried this already. Asim Gupta, Sahil [EMAIL PROTECTED] wrote: If the session object is invalidated(timed out), add the action errors in the request and call the saverequest(errors, req) in the action servlet and do a mapping.findForward to the

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Gupta, Sahil
has been working for me for very long now. -Original Message- From: Asim Ghosh [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 11:33 AM To: Struts Users Mailing List Subject: RE: redirect to login page with error message on the jsp page Are u sure that this will work

RE: Help on Validator MASK needed

2004-07-30 Thread Robert Miller
Thomas, I agree with the escaping + (without escaping it is interpreted as must have one or more of the previous). Also if you wanted you could use \d instead of [0-9]. A modified version that looks good is: ^(\+|-)?\d+$ This will match x or +x or -x (where x is any series of one or more

pulling dynamic data out of a form...

2004-07-30 Thread Andrew Close
hi all, i'm having a hard time getting data from multiple textfields with similar names out of a form and into my actionform. in my JSP i'm using a [logic:iterate] tag to display (up to) ten textfields. these textfields are initially empty. the user enters data into the text fields and hits

RE: pulling dynamic data out of a form...

2004-07-30 Thread Paul McCulloch
I'd grab the struts source and use your debugger. Put a breakpoint where you get your NPE. You should then be in a pretty good position to figure what you've done wrong with your code. The Struts source is generally easy to understand and pretty well commented. HTH, Paul -Original

x:transform

2004-07-30 Thread Lokanath
hi guys I am trying to transform a xml file using x:tranforms .I my local system it's working fine.But when i moved the war file to the server it gave the following error javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException:

Re: release of struts-faces library

2004-07-30 Thread Craig McClanahan
On Thu, 29 Jul 2004 12:31:21 +0200, Krzysztof Krzak [EMAIL PROTECTED] wrote: Thanks James for information I am wandering yet, if there is planned date of release of the struts-face library Could tell something about the worse case (max date) or estimated date of the release, please? This is

RE: release of struts-faces library

2004-07-30 Thread James Holmes
Hi Chris, Please see Craig's response to the timing of the library being finalized. We just need people to use it and report back any issues. If people are using and there are no issues, then we can go ahead and finalize it. As far as modules go, I don't have a lot of experience with

GenericDataSource error?

2004-07-30 Thread Carl T. Dreher
I've been trying to follow the examples in a variety of books about using the Struts data-source configuration. data-sources data-source type = org.apache.commons.dbcp.BasicDataSource set-property property = driverClassName value = com.mysql.jdbc.Driver /

RE: GenericDataSource error?

2004-07-30 Thread Geeta Ramani
Hi Carl: Look at this link and follow it to the letter - and you should be fine.. :) http://struts.apache.org/faqs/database.html Good luck, Geeta -Original Message- From: Carl T. Dreher [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 10:38 AM To: [EMAIL PROTECTED] Subject:

Re: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread subramaniam . olaganathan
Hi Geeta, I am using HttpSessionBindingListener and its working fine. Subramaniam Olaganathan Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Geeta Ramani

Re: pulling dynamic data out of a form...

2004-07-30 Thread Andrew Close
Hubert, i had previously read the indexprops article in the faq. i think i have that part working. the second article was helpful, but i'm still a bit confused. when submitting my form. does my actionform need to have an array of beans in it for the textfields? or can i just use an array of

JBuilder X/Struts 1.2 Users heads up

2004-07-30 Thread Joe Hertz
If youre using JBuilder X (Enterprise or Developer), Struts 1.2.X, and wondering why the Struts Converter Wizard for JSP's wasn't working, here's the answer. It's dependent on *all* of the Struts taglibs, which includes the struts-template.tld that is no longer distributed with Struts