Re: RequestProcessor handling http requests

2004-04-06 Thread Niall Pemberton
Its all in the RequestProcessor http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java The main process(request, response) method in RequestProcessor calls processMapping(request, response, path) which calls findActionConfig(path) in ModuleConf

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread Freddy Villalba Arias
Hello, Since you're already discussing this (and it is not the first time, from what I've seen on the ml)... I've used ORM tools (OJB, 2 in-house implementations) but it has always been in small-sized projects (70- tables). It has always been a "good" choice. Has anybody worked in a project that

AW: AW: SV: validation with struts 1.2

2004-04-06 Thread Otto, Frank
Hi Adam, I use the validation.xml in this way: http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> Regards, Frank

SV: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread hermod . opstvedt
Hi Use Middlegen-Hibernate to do this for you - It makes life a whole lot easier Hermod -Opprinnelig melding- Fra: John McGrath [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 20:47 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: RE: ORM Tools (Ibatis, Hibernate, OJB) Lik

Help: logic:iterate error : Cannot find bean ... in any scope

2004-04-06 Thread Prasad, Kamakshya
HI, I have these lines in my jsp when the jsp is executed, it throws an error "Cannot find bean courseDetailsLocal in any scope." Why is it happening so? I have imported taglib in my jsp. The setter/getter methods for courseDetails in EmployeeDetails

SV: Connection Pooling (How i use...)

2004-04-06 Thread hermod . opstvedt
Hi First of all - You have a memory leak in your application - Because : you do not close your resultset !! This may eventually lead to awkward situations. Hermod -Opprinnelig melding- Fra: Marcelo Epstein [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 18:31 Til: Struts Users Mailing Lis

FW:

2004-04-06 Thread kavitac
Hi,   I'm encountering the following error: My JSP page has tag. The JSP is invoked on a button click from another main page. It displays the number of layers (vectors) in the parent object. Now the page has an 'add layer' button that adds an object to the vector and displays the fields/pr

RE: Connection Pooling (How i use...)

2004-04-06 Thread Navjot Singh
See this Connection conn = null; try{ conn = ds.getConnection(); ...whatever you wish to do with conn.. catch(SQLException sqle) { action of exception } finally{ try{ if(nul != conn) conn.close(); } catch(SQLException sqle){ action of except

tile String Buffer bug?

2004-04-06 Thread Scott Johnson
When sending an empty tiles:put, struts displays an uncleared string buffer from a previous request (not necessarily even the same application)! This can be replicated with two simple files: testLayout.jsp and testPage.jsp. Just paste these two code samples into corresponding pages and drop into y

Help: logic:iterate error : Cannot find bean ... in any scope

2004-04-06 Thread Prasad, Kamakshya
HI, I have these lines in my jsp when the jsp is executed, it throws an error "Cannot find bean courseDetailsLocal in any scope." Why is it happening so? I have imported taglib in my jsp. The setter/getter methods for courseDetails in EmployeeDetails

Best practice: when to convert message resources to actual strings?

2004-04-06 Thread bOOyah
Hi again Like a good little girl, I have located all my app's GUI strings in a message resource bundle for I18N purposes. This includes the strings that appear in drop-down select fields that I use as options menus. There are several of these menus in my pages and their contents are, for all

RequestProcessor handling http requests

2004-04-06 Thread Chang Ming Chye
Hi, How does struts handle incoming request and routes it to the correct action? For example, if I declare my web.xml as: action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml action *.do and in my struts-config.xml file I

Re: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Curtis Taylor
Sandeep's correct; from the W3C website: "Every form must be enclosed within a FORM element. There can be several forms in a single document, but the FORM element can't be nested." Curtis -- c dot tee at verizon dot net Takhar, Sandeep wrote: something about having forms in forms that I don't th

tiles confusion

2004-04-06 Thread Dean A. Hoover
I've been using (and loving) tiles for a few weeks now, but I guess I am still missing something fundamental. I have several definitions I am using for layouts. Then I have specific definitions that use those layouts to piece everything together. I mostly use to insert content into a given layout.

Entity/Catalog resolver - Digester - Custom tiles-config.dtd

2004-04-06 Thread alin04
I've customized tiles_config.dtd and modified my DOCTYPE declaration to point to the new DTD located on my build machine. My production environment can't resolve the location because it doesn't have access to the build machine. Hence at runtime, Struts is giving me a DefinitionsFactoryException.

resource file configuration

2004-04-06 Thread Martin, Jose (Exchange)
I'm having a problem with using : tag. the message from the resource file is not displayed. In the log file I see: [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.

how to nest a taglib in another taglib?

2004-04-06 Thread Ricky Lee
hi, thanks for reading.. i have a problem about nest a taglib in another taglib, just like this, what should i do? the "attribute" in the page context. "> i know that has a way to do like this: but there is another way to do it? please help methanks! __

Problem with DynaValidatorForm

2004-04-06 Thread MARU, SOHIL (SBCSI)
Hi, I am a newbie to using the struts framework and am trying to get Validation framework to work. It seems to be working fine,ie if error checks fail it redirects me to the page where it should but does not display the errors. I have read over the archives and corrected couple of things I was d

Slightly OT How to set a request header using JSTL

2004-04-06 Thread Jim Collins
Hi, I know how I can read request headers using c:out and the header object. Does anyone know how I can set a response header using c:set? Can it be done without using the response tag? I don't want to use scriptlets. Thanks Jim.

Re: How to convert struts FormFile to oracle blob Object?

2004-04-06 Thread Bill Siggelkow
Basically, from the FormFile you can get an input Stream for reading -- the hardpart is writing to the Oracle Blob -- here are some links that should help: http://otn.oracle.com/ultrasearch/wwws_otn/searchotn.jsp?p_Action=Search&p_Query=jdbc+blob&Advanced.x=0&Advanced.y=0 [EMAIL PROTECTED] wrot

Re: Problem with custom ActionMapping and

2004-04-06 Thread bOOyah
chris wrote: MUST NOT implement a "public boolean is{ParamName}()" method - doing so will prohibit the set{ParamName} method's invocation via the Worked that out the hard way myself two days ago. I thought the convention was to name the getter for a boolean 'isFlag()'. But not on P

How to convert struts FormFile to oracle blob Object?

2004-04-06 Thread Julie . Huang
Hi, I use upload a file in FormFile format, anyone has any idea about how to set the file into the oracle database as a Blob object using JDBC? Thank you very much. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain conf

Re: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Adam Hardy
I just thought up one solution that depends on having a dummy field in your beans, the collection of which you are iterating over. Adam Light the touch paper & stand clear - it might blow up in your face! On 04/06/2004 08:45 PM Eric Hodges wrote: I have both cases. Some of my forms a

Re: How can I display a table in two columns?

2004-04-06 Thread bOOyah
Axel Stahlhut wrote: Is there a straightforward way to iterate my List so as to render my table as two columns (four columns really) of 8 rows each? Like this: x item-1x item-9 x item-2x item-10 . . . . . . x item-8x item-16 There are a lot of ways to reach

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread Andrew Shirk
I agree. It only takes a few hours to learn, and you can still use SQL to write your updates and queries. At 02:27 PM 4/6/2004, you wrote: Having used both, I would take iBATIS any day (and twice on sunday) because of the simplicity - especially if you are coming from a JDBC world. It is non-intr

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread Larry Meadors
Having used both, I would take iBATIS any day (and twice on sunday) because of the simplicity - especially if you are coming from a JDBC world. It is non-intrusive, very easy to set up, the source is super easy to look at, and Clinton (the owner) is very responsive to changes. Larry >>> [EMAIL

Re: Connection Pooling (How i use...)

2004-04-06 Thread Larry Meadors
Uhh, yeah, I never did that, no, I just heard about it...yeah, that's it... ;-) >>> [EMAIL PROTECTED] 04/06/04 11:45 AM >>> *Quite* right: there was one time we had set the autoCommit on the connection object to false, forgotten to change it back before releasing it to the pool andwell,all

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Frank Nguyen
I didn't use submit, but URL encode submission for every record should work as well, try this: ' > where index of the vector B is passed to another C.do bean to process assuming C bean can access B bean. -Frank Nguyen > -Original Message- > From: Eric Hodges [mailto:

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread MARU, SOHIL (SBCSI)
Actually if you already have your database in place, you can use a tool called middlegen(open source) to generate the intermediate hibernate mapping files from the database and then use hbm2java to create the hibernate java code needed to access the database. I am also in the initial phase and lear

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Takhar, Sandeep
something about having forms in forms that I don't think is correct, but I may be completely wrong. sandeep -Original Message- From: Eric Hodges [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 2:47 PM To: 'Richard Yee'; Struts Users Mailing List Subject: RE: Question about logic:

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread John McGrath
Likewise, I don't know much about iBatis, but from looking at their docs, it seems closer to traditional JDBC. We use Hibernate and have been very happy with it, but there was bit of a learning curve involved, especially in understanding how to write the xml mapping files that Hibernate uses to cre

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Eric Hodges
I have both cases: 1. A single form containing lists. Each element in the list has a submit button to edit that element. 2. Lists in which each element contains a form. Each form has a submit button to edit that element. -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Se

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Eric Hodges
I have both cases. Some of my forms are outside the iterator, others inside. The common factor is that each iteration produces its own tag. I have lists of things. Each thing has a button that lets the user edit that particular thing. Am I missing an obvious pattern here? Surely lots of stru

Re: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread Paul Barry
I don't know much about ORM toools, but I can say that iBatis SQL Maps is not an ORM tool. As I understand it, ORM tools map java object to database tables, whereas SQL Maps map java objects to SQL statements. iBatis just makes using JDBC much easier, whereas ORM tools hide the JDBC from you,

Re: failure notice

2004-04-06 Thread Niall Pemberton
To unsubscribe, e-mail: [EMAIL PROTECTED] - Original Message - From: "Murray, Christopher" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 6:37 PM Subject: FW: failure notice > > Does anyone know how to un-subscribe from this list?

Re: Action Class - No of instances

2004-04-06 Thread Niall Pemberton
I think it is per Struts module rather than webapp (in Struts 1.1) - actions are cached in the RequestProcessor and each Struts module has its own RequestProcessor. Do you have the same Action class in use in different Struts modules? Niall - Original Message - From: "Craig R. McClanah

Re: Connection Pooling - Monitor

2004-04-06 Thread Marcelo Epstein
Richard, I am already setting autoReconnect=true. I just want to know if exists any method that returns the # of opened connections are in the pool. Thanks. On Tue, 6 Apr 2004 10:54:06 -0700 (PDT), Richard Yee <[EMAIL PROTECTED]> escreveu: > De: Richard Yee <[EMAIL PROTECTED]> > Data: Tue,

Re: R: struts-faces integration

2004-04-06 Thread Craig R. McClanahan
Manganotti Francesco (USI) wrote: Using struts-faces integration library I have a "tag nesting error" with a component. Any suggestion? cheers, F. It's pretty hard to diagnose things like this without seeing the JSP source of your problem page. Craig -

Re: Action Class - No of instances

2004-04-06 Thread Craig R. McClanahan
Senthivel U S wrote: Greetings, Programming Jakarta Struts by Chuck Cavaness book says always there will be only one instance of Action Class but we have checked with the application and found that there are more than one instance of same action class even though the same instance is serving simu

Re: Connection Pooling - Monitor

2004-04-06 Thread Richard Yee
Marcelo, The # of connections is determined by the value you set when you defined your datasource. What is the URL that you are using? You should set autoReconnect=true in the URL. -Richard --- Marcelo Epstein <[EMAIL PROTECTED]> wrote: > > Is it possible to know how many connection are in > t

re: Problem with custom ActionMapping and

2004-04-06 Thread chris
Martin, Thanks for your reply. I actually had the get and set methods for my properties (2), but could not get the properties set. Even on Tomcat. No How. No Way. Until... I fell back and punted. - Started with a blank custom ActionMapping class. - Put in a "private String paramOne" fi

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Butash, Bob
Here is a sample: Some HTML Stuff here Hope this helps -Original Message- From: Eric Hodges [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:30 PM To: Struts Users Mailing List Subject: RE: Question about logic:iterator, indexId and hidden fields Does anyone know

Re: Connection Pooling (How i use...)

2004-04-06 Thread Geeta Ramani
*Quite* right: there was one time we had set the autoCommit on the connection object to false, forgotten to change it back before releasing it to the pool andwell,all I can say is we spent some "interesting" hours trying to debug that one! Geeta Larry Meadors wrote: > Yes. > > So be careful

Re: How can I display a table in two columns?

2004-04-06 Thread Axel Stahlhut
bOOyah wrote: Hi all I have a 2-column table containing 16 row items, each with an associated checkbox. Right now I'm iterating over a List to render each row of the table. Column 1 contains the checkboxes; column 2 contains the items. So my table currently looks like this (x == a checkbox)

FW: failure notice

2004-04-06 Thread Murray, Christopher
Does anyone know how to un-subscribe from this list? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 06 April 2004 18:33 To: [EMAIL PROTECTED] Subject: failure notice Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your m

ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-06 Thread Marcelo Epstein
Hi, Thanks everybody! Now I am convinced to use an ORM tool. The big problem is whitch one? Hibernate? Ibatis ?OJB? Whitch one is preferable to use with Struts?? Macelo Epstein On Tue, 06 Apr 2004 11:29:21 -0600, "Larry Meadors" <[EMAIL PROTECTED]> escreveu: > De: "Larry Meadors" <[EMAIL PRO

Re: Creating value objects using reflection class

2004-04-06 Thread Craig R. McClanahan
walkrustin wrote: Hi, After receiving the form, I have to copy the value of each field to a value object. I wrote a small reflection utility class to server the purpose. Now I need more functionalities to that utility class. I was wondering if there is any utility package already out there w

Re: integer validation problem

2004-04-06 Thread Craig R. McClanahan
Joe Hertz wrote: Craig R. McClanahan writes: What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to automatically regis

Re: Connection Pooling (How i use...)

2004-04-06 Thread Larry Meadors
Oh yeah, that reminds me: Be careful not to double close your connections - with some implementations, that closes the pool. So do not close the connectionin the try *and* in the finally - do it *only* in the finally! Larry >>> [EMAIL PROTECTED] 04/06/04 11:25 AM >>> well, you are right...! Wh

Re: Connection Pooling (How i use...)

2004-04-06 Thread Geeta Ramani
Ah, well, you didn't read the fine print: -->>Note: this code isn't anywhere near production ready - it's only supposed to be used as a simple test :-) Believe me, you should close connections/return them to the pool in a finally block if you want to avoid major problems.. As I said before, thi

Re: Connection Pooling (How i use...)

2004-04-06 Thread Larry Meadors
I have yet to see a *good* example of how to do jdbc on the net. Most are very simple one-off "throws SQLException" examples that don't seem to take into consideration little things like stability and releasing resources. :) That is why I think tools like iBATIS are so powerful - you get all the

RE: Connection Pooling (How i use...)

2004-04-06 Thread Larry Meadors
Yes. So be careful if you tweak the connection (like changing transaction isolation, etc) because that connection may be used elsewhere, and your change will persist. :) Larry >>> [EMAIL PROTECTED] 04/06/04 11:17 AM >>> What happens when i do conn.close()? does it go back to the pool? ---

Re: Connection Pooling (How i use...)

2004-04-06 Thread Geeta Ramani
well, you are right...! What i meant was the main thing is to make sure that closing/.returning the connection to the pool is done in a "finally" block and not as part of the try block. [EMAIL PROTECTED] wrote: > While using conn.close() does it return the connection to the pool?? > Its not a

Re: Connection Pooling (How i use...)

2004-04-06 Thread Mark Lowe
Marcelo Could you do me the huge favor of keeping the version 3 drivers for another 20 hours but with the changes you've made (finally block stuff).. And tell us what happens in 20 or so hours. I'd be very interested in what you find. On 6 Apr 2004, at 19:15, Marcelo Epstein wrote: Now I

RE: Filters..

2004-04-06 Thread Dhaliwal, Pritpal (HQP)
I use them for authentication.. Filter is mainly a pre-processor or a post-processor however you want to use it.. It is pretty good for taking code out code that is in EACH one or most of your servlets or jsps. By using filter, you can do *those* tasks before the request gets to them. I think fi

Connection Pooling - Monitor

2004-04-06 Thread Marcelo Epstein
Is it possible to know how many connection are in the pool ? Is there any monitor available? On Tue, 6 Apr 2004 14:15:34 -0300, "Marcelo Epstein" <[EMAIL PROTECTED]> escreveu: > De: "Marcelo Epstein" <[EMAIL PROTECTED]> > Data: Tue, 6 Apr 2004 14:15:34 -0300 > Para: "Struts Users Mailing Lis

Re: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Richard Yee
This logic isn't going to help the problem. > > > > "/> All it is going to do is create a bunch of input parameters with type="hidden" and having values of 0,1,2,3 What does your form really look like? Do you have multiple submit buttons, links? What items are you indexing? Are you tryin

Re: Connection Pooling (How i use...)

2004-04-06 Thread Marcelo Epstein
Now I am closing the connection in the finally block. The exemple provided by: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html doesn´t do that: package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest { String foo = "Not

RE: Connection Pooling (How i use...)

2004-04-06 Thread Vijay.Nair
While using conn.close() does it return the connection to the pool?? Its not a driver connection rather a data source connection...so waht happens when i do conn.close()? does it go back to the pool? -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED]

Re: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Adam Hardy
Actually you might need a name attribute on that hidden field as well ... which could get complicated. It depends on where you form is. Inside or outside the logic:iterate? On 04/06/2004 06:43 PM Adam Hardy wrote: This is pseudo-code, so before use it'll need corrections! For JSP2 & JSTL "/>

Re: Connection Pooling (How i use...)

2004-04-06 Thread Geeta Ramani
This your problem: closing the connection in your try block. Move it to a finally block.. Marcelo Epstein wrote: > I use the pool like this: (IS IT WRONG??) I think the connection is being closed.. > > try { > Context ctx = new InitialContext(); > if (ctx == null) >

Re: Connection Pooling (How i use...)

2004-04-06 Thread Paul Barry
Looks like he is not re-inventing the wheel because he is already using DBCP. His question is just about how to use the pool properly. But if are we are talking about re-inventing the wheel, I would recommnd that you take a look a SQLMaps http://www.ibatis.com/common/sqlmaps.html. This takes a

Re: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Adam Hardy
This is pseudo-code, so before use it'll need corrections! For JSP2 & JSTL "/> On 04/06/2004 06:30 PM Eric Hodges wrote: Does anyone know of a simple way to send a logic:iterate's indexId back as a form bean property on submit? -Original Message- From: Eric Hodges Sent: Friday, April

Re: Connection Pooling (How i use...)

2004-04-06 Thread Larry Meadors
Yes. You really might want to consider a tool like iBATIS, but if you want to do it yourself, here is the pattern: Connection c = null; try{ //get connection try{ // get statement try{ // get result set // process result set }finally{ // close result set if not

RE: Connection Pooling (How i use...)

2004-04-06 Thread McClung, Brian
Marcelo, While what you are doing is technically correct, it is safer to place all of your closing statements in a finally block. This way they are guaranteed to run in the event of an exception being thrown. I have also found that you should always close everything ResultSets, Statements, Prepa

Re: Connection Pooling

2004-04-06 Thread Mark Lowe
I had the same.. I ditched version 2 and haven't had any problems since. On 6 Apr 2004, at 18:34, Marcelo Epstein wrote: Mark, I am using Mysql Driver version 3. What´s the problem of this "stable" driver. ?? I will give a try version 2. But I really cant understand why.. Thanks... On Tue,

RE: Connection Pooling (How i use...)

2004-04-06 Thread Avinash Gangadharan
Marcelo, If you do not want to reinvent the wheel and save some time, there is a great opensource DB Conn pool package available on SF. Check it out. It takes out all the extra efforts you need to put in and has great features and flexibilities. It's called proxool. http://proxool.sourceforg

Re: Connection Pooling (How i use...)

2004-04-06 Thread Paul Barry
Yes, you need to put the conn.close() in a finally, something like this Connection conn = null; try { ... conn = ds.getConnection(); ... } catch(Exception ex) { } finally { try { conn.close(); } catch(Exception ex) { System.err.println(ex); } } In your way, if

Re: Connection Pooling

2004-04-06 Thread Marcelo Epstein
Mark, I am using Mysql Driver version 3. What´s the problem of this "stable" driver. ?? I will give a try version 2. But I really cant understand why.. Thanks... On Tue, 6 Apr 2004 18:20:29 +0200, Mark Lowe <[EMAIL PROTECTED]> escreveu: > De: Mark Lowe <[EMAIL PROTECTED]> > Data: Tue, 6 A

Re: Connection Pooling (How i use...)

2004-04-06 Thread Marcelo Epstein
I use the pool like this: (IS IT WRONG??) I think the connection is being closed.. try { Context ctx = new InitialContext(); if (ctx == null) throw new Exception("Boom - No Context"); DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/EasyDB");

Re: AW: SV: validation with struts 1.2

2004-04-06 Thread Adam Hardy
Frank, which xml nodes are you talking about? The msg and arg nodes in the validation.xml fields? I am getting SAXParseExceptions saying that bundle is not accepted here. Adam On 04/06/2004 01:59 PM Otto, Frank wrote: Hi, The bundle attribute of msg and arg tag works fine in your application?

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Eric Hodges
Does anyone know of a simple way to send a logic:iterate's indexId back as a form bean property on submit? -Original Message- From: Eric Hodges Sent: Friday, April 02, 2004 7:24 AM To: Struts Users Mailing List Subject: RE: Question about logic:iterator, indexId and hidden fields I mea

Re: Connection Pooling

2004-04-06 Thread Mark Lowe
If your using the version 3 mysql driver don't.. Use version 2 and never look back. There also a ?autoReconnect=true parameter to pass through with the url, but i think thats bollocks or at least didn't work with version3 mysql drivers. On 6 Apr 2004, at 18:08, Marcelo Epstein wrote: Hi, I h

Re: Connection Pooling

2004-04-06 Thread Larry Meadors
My bet is on a connection leak - you open one in a try block and don't close it in the finally block. >>> [EMAIL PROTECTED] 04/06/04 10:08 AM >>> Hi, I have just started using Connection Pooling in my app (Tomcat, Struts, DBCP, Mysql) . It woks for about 20 hours and stop working until tomcat r

RE: Connection Pooling

2004-04-06 Thread Freddy Villalba Arias
These are the main 2 reasons that come to me: (1) You are not "closing" the connection once you've finished using it. This signals the pool's manager when to re-assign that connection (i.e. you've finished, so it can be used by someone else). (2) Your connection pool is not big enough. HTH, Fred

Re: Connection Pooling

2004-04-06 Thread Geeta Ramani
Marcelo; You are probably exhausting all your connections in the pool. Make sure all your connections are returned back to the pool at the end of a "finally" block. That way the connection is returned to the pool regardless of whether your database work was a success or not. Also, while you ar

Connection Pooling

2004-04-06 Thread Marcelo Epstein
Hi, I have just started using Connection Pooling in my app (Tomcat, Struts, DBCP, Mysql) . It woks for about 20 hours and stop working until tomcat restart. I get this exception: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause: java.util.NoSuchElemen

[FRIDAY] Re: Filters..

2004-04-06 Thread Niall Pemberton
So if you can get your webapp smoking with filters then no worries. I'm ready for friday - are we nearly there yet? - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 3:37 PM Subject: Re: Filters.

RE: Filters..

2004-04-06 Thread Navjot Singh
yes. feel free to use them if you have a need. They are really good at handle some problems. >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] >Sent: Tuesday, April 06, 2004 7:53 PM >To: [EMAIL PROTECTED] >Subject: Filters.. > > >Hello All, > >I know this is an off t

RE: Filters..

2004-04-06 Thread Freddy Villalba Arias
Hi Vijay, I'm no guru, yet can give you my personal opinion on this matter: Yes, they have an impact. The heavier (execution time, resources consumption, etc...) the filter is, the greater the impact (and so the opposite :) ). I suppose that there is also a small overhead associated to the forwa

Re: Problem with DynaValidatorForm

2004-04-06 Thread Skip Hollowell
Not specifically. A lot of the examples I found over the past few days deal with Validator in realtion to Actions and Forms, but not DynaValidator stuff. 'Strutting with Struts' had some great information, but didn't explain it's examples completely, and even had inaccuracies, especially with reg

Token Processor

2004-04-06 Thread jbalaji
HI Vijay,EVERY TIME IT WILL BE REPLACEthe value of TRANSACTION_TOKEN_KEY WHEN MOVES FROM PAGE TO PAGE . BYE, JBALAJI - Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today

Re: Token Processor

2004-04-06 Thread jbalaji
HI Vijay, EVERY TIME IT WILL BE REPLACEthe value of TRANSACTION_TOKEN_KEY WHEN MOVES FROM PAGE TO PAGE . BYE, JBALAJI [EMAIL PROTECTED] wrote: Hello All, Is there only one token id genereated per session per page. I mean does the Token Processor replace the value for TRANSACTION_TO

Re: Filters..

2004-04-06 Thread Adolfo Miguelez
Filters require servlets 2.3+ From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: Filters.. Date: Tue, 6 Apr 2004 10:23:51 -0400 VJ, Filters are a good way of extending an existin

Re: Filters..

2004-04-06 Thread Adam Hardy
I always use filters when programming. Unfiltered cigarettes are twice as likely to give you cancer. ;) On 04/06/2004 04:23 PM [EMAIL PROTECTED] wrote: VJ, Filters are a good way of extending an existing application without having to recompile or rewrite code. I often use them. <[EMAIL

Re: Problem with DynaValidatorForm

2004-04-06 Thread Adam Hardy
Good point. I'll put some up there when I get a moment later. What do you mean about 'path relate to bean'? Are you talking ValidatorActionForm? On 04/06/2004 03:03 PM Skip Hollowell wrote: Adam, I like seeing all the steps listed in there, but some examples are what the new user like myself ne

RE: Filters..

2004-04-06 Thread Vijay.Nair
Apologies...for the generality of the question Our Web Application primarily consists of satellite applications interfacing with a core systemI primarily want to implement them for access checks as well as a Session Manager for each request of the application... Is there any overhead in th

Re: SV: SV: validation with struts 1.2

2004-04-06 Thread Adam Hardy
Have you checked out the latest nightly build? I've seen threads recently titled something along the lines of "validator with multiple forms" and I've seen bugzilla reports too. It might be fixed already. Did you not see them? If not, then check bugzilla and the archives for the struts dev list

RE: Filters..

2004-04-06 Thread shirishchandra.sakhare
Filters are part of Servlet specs..This means they are supposed to be used in web app:-)) The only reason they are not part of Struts implementation is that Struts was developed way before the Filters were introduced. But surely struts future implementations will start using filters whereever

Re: integer validation problem

2004-04-06 Thread Adam Hardy
On 04/06/2004 11:47 AM Joe Hertz wrote: Craig R. McClanahan writes: What you're basically asking for is user interface components, instead of simple input fields. Fortunately, you can have that today with things like JavaServer Faces. The user interface components there have the ability to autom

How can I display a table in two columns?

2004-04-06 Thread bOOyah
Hi all I have a 2-column table containing 16 row items, each with an associated checkbox. Right now I'm iterating over a List to render each row of the table. Column 1 contains the checkboxes; column 2 contains the items. So my table currently looks like this (x == a checkbox): x item-1

Re: Filters..

2004-04-06 Thread Kevin_Gutch
VJ, Filters are a good way of extending an existing application without having to recompile or rewrite code. I often use them. <[EMAIL PROTECTED]> 04/06/2004 10:22 AM Please respond to "Struts Users Mailing List" To: <[EMAIL PROTECTED]> cc: Subject:

RE: Filters..

2004-04-06 Thread Freddy Villalba Arias
Whoa, talk about general questions!!! :) I suppose it depends on what you want them for and the overall context... Could you be more specific? Cheers, Freddy. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: martes, 06 de abril de 2004 16:23 Para: [EMAIL

RE: Filters..

2004-04-06 Thread Slattery, Tim - BLS
> I know this is an off topic but is it advisable to use > Filters in a Web Application? We do routinely, to try to keep users on the approved path through the application. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e

tlib-version and tlibversion;jsp-version and jspversion

2004-04-06 Thread Zhang, Larry \(L.\)
When you write your own tablibrary descriptor file, you need to supply several mandatory elements. While a lot of articles saying they use tlib-version and jsp-version, our application uses tlibversion and jspversion. And also struts taglibrary also uses tlibversion and jspversion(example struts

Filters..

2004-04-06 Thread Vijay.Nair
Hello All, I know this is an off topic but is it advisable to use Filters in a Web Application? Any kind of input wud be appreciated.. Thanks, VJ DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intende

RE: Token Processor

2004-04-06 Thread shirishchandra.sakhare
There is an article in java world about the token processor.That should help you to get more idea about how it works. http://www.javaworld.com/javaworld/javatips/jw-javatip136.html#resources To answer your question , yes.I am not sure what you mean by Token processor.The token_id is generated b

RE: Best Practices in

2004-04-06 Thread shirishchandra.sakhare
Why not create the id so that id itself is a concatnated string(id::description).This will mean that you will get both Id and description of selected item. the only thing you have to do is Parse the id::description string to seperate the Id and Description.This will mean u dont need even javascri

RE: Problem

2004-04-06 Thread Jay Glanville
> > On a side note, why isn't there any reference to mailing > lists on the > > struts pages? I'm used to seeing something mentioned in > the navigation > > panel for all the other apache projects. > > > > Its here ... http://jakarta.apache.org/struts/mail.html > > I think the Struts pages ar

Re: Problem with DynaValidatorForm

2004-04-06 Thread Skip Hollowell
Adam, I like seeing all the steps listed in there, but some examples are what the new user like myself needs. Specificially, what is the path and the input. Can they be a mapping, or do they have to be a physical file. What if I am using tiles, can the path or input be a Tile definition? How d

  1   2   >