Re: GenericDataSource looping

2003-06-15 Thread Adam Hardy
You've left off the "type" attribute in the tag. Try don't you get any errors? Richard Raquepo wrote: Im use to use DBCP in Struts 1.1RC1 but then mo back to GenericDataSource in Struts 1.1RC2 but it seem's im having a problem with it. According to my console it seem's generic source is loppi

Re: StrutsMonkey

2003-06-15 Thread Arron Bates
The MonkeyStruts example initiates everything in the constructor of the beans, and because they're in session memory, there's no issue with having to manage anything with regards to request scope and bean population. Result: nasty code in the constructors that shouldn't be duplicated in a real syst

RE: executing statements on subsets of actions without code duplication

2003-06-15 Thread shirishchandra.sakhare
What is inheritancde for then:-)) Make an abstract action and have this code there... All your actions will extend this action..And bingo here you go. -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 6:34 AM To: Struts Users Mailing List Subject: e

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-15 Thread Aaron Longwell
Ted, Thanks for the detailed info on .NET ports. Keep us posted on how you like Maverick! I've downloaded the docs and code and I'll be taking a look over the next few months. Not too sure what I think yet. Aaron Ted Husted wrote: > I am curious if anyone is aware of an MVC-type framework for

GenericDataSource looping

2003-06-15 Thread Richard Raquepo
Im use to use DBCP in Struts 1.1RC1 but then mo back to GenericDataSource in Struts 1.1RC2 but it seem's im having a problem with it. According to my console it seem's generic source is lopping endlessly... 429796 [tcp-accept-6802] INFO util.GenericDataSource -createConnection() 429812 [tcp-

DbBroker question

2003-06-15 Thread Richard Raquepo
Would anyone recommend this DbBroker? or does anyone has any exprience using it? Maybe anyone can give me a insight on why or why not i should this. i am planning on using is on my struts application. (Link:DbConnectionBroker found on http://www.javaexchange.com/) thanks

Re: Documentation correction

2003-06-15 Thread Rob Leland
Pedro Emanuel de Castro Faria Salgado wrote: Warning: on the struts documentation about multiple module support when it says: --> Now, to change to ModuleB, we would use a URI like this: http://localhost:8080/toModule.do?prefix=moduleB&page=index.do That's all there is to it! Happy module-swi

RE: multiple request / query parameters in struts-config.xml

2003-06-15 Thread Andrew Hill
Thats odd. Im using this technique for multiple parameters in my actionforwards without any problem. When you say its null, is that in an actionform in the action you are forwarding to or for a request.getParameter("id"). If the former, try outputting the result of the latter in your action - and

RE: OT FRIDAY: Take a break with struts users

2003-06-15 Thread Andrew Hill
Yeh yeh yeh. I make 6 figures a month mate... 7 if you count the decimal point... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 22:59 To: 'Struts Users Mailing List' Subject: RE: OT FRIDAY: Take a break with struts users I feel your pain, ma

RE: [OT] FRIDAY: HTML Checkboxes SUCK!!!

2003-06-15 Thread Andrew Hill
+1 Im thinking of doing the same. Checkboxes are evil. Another bonus to using dropdowns instead is that if you really need the user to think about whether that field should be true or false then you can add an extra empty choice that doesnt pass validation. That way they will be forced to set a v

Re: executing statements on subsets of actions without code duplication

2003-06-15 Thread Rob Leland
Rob wrote: Rob Leland wrote: Rob wrote: I have a set of statements I would like executed every time an action is executed. I would also like to only have to code these set of statements once and have them transparently executed for all actions (except for a small subset). When we were using

Re: UML diagrams in Struts source

2003-06-15 Thread Rob Leland
Aaron Longwell wrote: Rob Leland wrote: Rahul wrote: Greetings All, As for the source, it's well-documented, explained and with UML diagrams. ah ! that reminds me .. I would like to know if these UML diagrams are being generated by an open source tool. May be I could use something like

Re: tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Mohd Fadhly
try moving your tomcat folder to c:\tomcat. it should work Senthivel U S wrote: Greetings Thomas, My source files are in C:\work directory. Tomcat directory is C:\Program Files\Apache Group\jakarta-tomcat-4.1.24 . The same setup was Working till yesterday with Tomcat 4.1.12 , jdk 1.2 and windows

Re: Dates

2003-06-15 Thread Frances Aleah Z. de Guzman
use GregorianCalendar like this GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new java.util.Date()); int month=cal.get(Calendar.MONTH); int day=cal.get(Calendar.DAY_OF_MONTH); int year=cal.get(Calendar.YEAR); On Thursday 12 June 2003 11:22 pm, Ludovic Maitre wrote: > Hello, >

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-15 Thread Ted Husted
> I am curious if anyone is aware of an MVC-type framework for .NET. I > am NOT looking for a Struts port to .NET. I started doing a little > research, searching for things like "Best Practices" or ".NET > Patterns" etc. I found almost nothing... no best practices guides. > Not even a single rec

[OT] RE: Making Controllers Aware of Views' Structural Information

2003-06-15 Thread John Cavacas
The notion of a "view helper" object that is inserted by your Action into the appropriate context is something that has been around for a while. In my opinion making the Controller portion or worst the Model portion aware of the View breaks the whole idea of MVC. You are right in that most of the t

Re:

2003-06-15 Thread Sloan Bowman
I have been able to get one app working then when I tore it down and trying to start from stratch again to see if could finally figure it out I am getting the same error message. I am pasting the code below to see if you see anything I am doing wrong. Thanks for the help. I really appreciate it

Re: Validator Framework Questions

2003-06-15 Thread Dan Tran
Thomas, I have seen may developers struggling with Struts Validation (IMHO, it is a GIFT to us). The best way is to read some good book like the one from Chuck Cavaness. I read it once and my validation never fail me. Or you can view his article http://jakarta.apache.org/struts/resources/article

Documentation correction

2003-06-15 Thread Pedro Emanuel de Castro Faria Salgado
Warning: on the struts documentation about multiple module support when it says: --> Now, to change to ModuleB, we would use a URI like this: http://localhost:8080/toModule.do?prefix=moduleB&page=index.do That's all there is to it! Happy module-switching! <-- It should be: http://loc

Making Controllers Aware of Views' Structural Information

2003-06-15 Thread Vikram B Kumar
We have spent much thoughts on MVC, and very good J2EE web frameworks, Struts being the foremost, have been developed as a result. We have best practices and clean way of generating views. Yet, IMHO, the V part of MVC, especially managing views, has not been bestowed with the same amount of attent

Re: Validator Framework Questions

2003-06-15 Thread Pedro Emanuel de Castro Faria Salgado
The Validator framework (commons-validator) comes with the struts distribution. To install it you will need: jakarta-oro, commons-beanutils, commons-logging, commons-collections, commons-digester. Put these files (.jar) on your WEB-INF/lib (if you already installed struts it will only be missing

Re: Validator Framework Questions

2003-06-15 Thread Pedro Emanuel de Castro Faria Salgado
I think it is necessary to include a input property in the action element, so if the data is invalid the controller can recall the form file (or tiles action). Pedro Salgado On 15/06/2003 17:59, "Dan Tran" <[EMAIL PROTECTED]> wrote: > change your strut config to use >

Re: Validator Framework Questions

2003-06-15 Thread Thomas Miskiewicz
Dan, > change your strut config to use > org.apache.struts.validator.DynaValidatorForm That helped. Could you or someone please else answer my questions regarding the validator framework itself? Is it part of Struts framework or not (I'm using the 1.1 rc2). What steps are required to setup and use

Re: Validator Framework Questions

2003-06-15 Thread Dan Tran
change your strut config to use org.apache.struts.validator.DynaValidatorForm -Dan - Original Message - From: "Thomas Miskiewicz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 15, 2003 9:42 AM Subject: Validator Framework Questions > Hello!

Validator Framework Questions

2003-06-15 Thread Thomas Miskiewicz
Hello! Reading a Struts book I wanted to give the validator framework a whirl. Since it's poorly described in the book I checked out Struts website. I wonder if when we speak about automatic form validation, then if do we mean the validator from the website http://home.earthlink.net/~dwinterfeldt

Re: DataSource problem

2003-06-15 Thread Adam Hardy
Maarten, do you declare the JNDI resource within the context tags for your webapp in server.xml, or within the global-naming-resources tags? I'm using the same setup as you with my JNDI declared in the globalnamingresources and it wouldn't work until I put a resource-link tag in the context tag

Re: tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Benny Ng
I encountered the same problem with Tomcat 4.1.24 on Win2k and J2SE 1.4.1_03. I believe the problem lies in the CLASSPATH and \common\lib. Try to remove the duplicate JARs. - Original Message - From: "Senthivel U S" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>

html:select and html:options example?

2003-06-15 Thread Stephan Niedermeier
Hello, who can give me an example, how to use the html:select in conjunction with html:options? I had already defined an ActionForm and JSP like follows. The listing of the option-Elements works fine but not the "reshowing" of the selected elements of the list, because after I have clicked the sub

RE: tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Jonas Bjornerstedt
Hello Sen, I think it would be better if you posted your question on the Tomcat users list. This list is for Struts questions. Jonas > -Original Message- > From: Senthivel U S [mailto:[EMAIL PROTECTED] > Sent: den 15 juni 2003 14:58 > To: 'Struts Users Mailing List' > Subject: RE: tomcat

RE: tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Senthivel U S
Greetings Thomas, My source files are in C:\work directory. Tomcat directory is C:\Program Files\Apache Group\jakarta-tomcat-4.1.24 . The same setup was Working till yesterday with Tomcat 4.1.12 , jdk 1.2 and windows 2000 . Thanx Rgds, Sen -Original Message- From: Thomas Cornet [mailto

Re: tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Thomas Cornet
It seems like your java source files is behind "Program Files" directory on C:. Problem is path files should not contain any space (" ") character with in. Try to change your java files' location. At 14:36 15/06/2003, you wrote: Hi, We have installed tomcat 4.1.24 on windows xp and j2sdk1.4.1_0

Validator.xml - mask || mask1 || mask2

2003-06-15 Thread ross
Hi All, Have a set of forms in an app that can be used in multiple countries. Is there a way that I can validate a field by one of multiple masks? I.e is the field valid for mask || mask1 || mask2. Relevant fields will be zip codes and phone numbers.

tomcat 4.1.24 on windows xp and j2sdk1.4.1_01

2003-06-15 Thread Senthivel U S
Hi, We have installed tomcat 4.1.24 on windows xp and j2sdk1.4.1_01 and since then we couldn't access any jsp file. jasper always fails with the following exception reports. Rgds, Sen Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class fo

Multibox value always checked

2003-06-15 Thread Paul Wells
Hi, I've a problem with using a multibox in that when I uncheck all values and submit my form, the array of selected items is not updated. I've seen this question posted a few times before and the answer always seems to be to perform a reset in the Action class. This sounds like a logical solut

Re: DataSource problem

2003-06-15 Thread Joe @ Team345
Just a guess on my part, but the connection is probably in the JNDI namespace, not the COMP namespace. To test this you can try either "java:/env" or just "/env" (sorry, can't recall which off the top of my head) where you have: "java:comp/env" As a side point, you should probably put all such

Re: Basic CRUD

2003-06-15 Thread Jing Zhou
- Original Message - From: "Vic Cekvenich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 9:48 PM Subject: Re: Basic CRUD > Maybe in 3rd world countries this works, maybe you should spend a few $ > with IP Lawyer? > You can't make generalization because some o