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.
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
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.
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
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
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
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
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
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
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! :-)
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
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
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
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
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?
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
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
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
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
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
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:
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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 /
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:
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
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
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
43 matches
Mail list logo