ApplicationResources best practices

2005-01-16 Thread Nathan Coast
Hi, is it best practice to declare a different ApplicationResources.properties for each module? Is there a best practice for the naming of these? following the struts-config.xml and tiles-defs.xml pattern of placing these in a directory WEB-INF/[module-name], does this make sense: /WEB-INF/cl

Re: Divide config files

2005-01-16 Thread Kishore Senji
On Mon, 17 Jan 2005 08:34:38 +0100, COGOLUEGNES Arnaud <[EMAIL PROTECTED]> wrote: > Hi all, > > Does anyone has means of dividing Struts config files into separate files, > so that one main file can include all separate files? > > I've been working on quite big applications where some code is aut

Divide config files

2005-01-16 Thread COGOLUEGNES Arnaud
Hi all, Does anyone has means of dividing Struts config files into separate files, so that one main file can include all separate files? I've been working on quite big applications where some code is automatically generated. Sometimes Struts config files (struts-config.xml, validator.xml and tile

Re: validation syntax - decimal precision

2005-01-16 Thread Kishore Senji
how about "^\d{1,3}(\.\d{1,2})?$" Here is the testcase import org.apache.commons.validator.GenericValidator; public class TestFloat{ public static void main(String[] args) throws Exception { String[] f = new String[]{"123.23", "123", "1234.23", "1234.234", "12345.2342", "11234.123.23",

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Dakota Jack
Just to make sure people are clear about ${empty param.choice} is true only if the choice parameter was not specified on a form, e.g. there is no input field named "choice" or, with a set of check boxes, if the user did not specify a checkbox in the group named "choice"). Also, ${empty sessionScop

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Manisha Sathe
Thanks to all for helping me out, Cheers Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.

Re: [OT] validation syntax - decimal precision

2005-01-16 Thread Curtis Taylor
Hi Nathan, Two suggestions: 1.) Mastering Regular Expressions by J.E.E. Friedel (http://www.amazon.com/exec/obidos/ASIN/0596002890/qid=1105937543/sr=2-1/ref=pd_ka_b_2_1/002-6332011-0856023) 2.) Kodos (http://kodos.sourceforge.net/home.html) Good luck, Curtis Nathan Coast wrote: Hi, I have a price

Two Data Base Connections in struts-config.xml ?

2005-01-16 Thread Jay Chandran
Hi, Is it possible to connect to two databases from a struts application. ie basically is it possible two add two database connectivity in struts-config.xml? Regards, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

validation syntax - decimal precision

2005-01-16 Thread Nathan Coast
Hi, I have a price field that I want to validate as a float with these additional constraints 1-3 digits before the decimal, if the decimal exists, 1-2 digits after the decimal. anyone know the regexp that describes this? cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Eddie Bush
Or ... you could create an error for that circumstance and have that displayed on the same page ... not probably how I'd do it, but it's certainly a way. Personally, since you're probably displaying the data in a tabular format, I would prefer to display a row that spans all columns and simply dis

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Wendy Smoak
From: "Manisha Sathe" <[EMAIL PROTECTED]> For data bean empty -> what i mean is -> i select one particular record depending on ID given, and put in bean. if i do not find any record then can i check it at front end and display 'No record found' But i think u mean to say i can check for (MyBean.My

Re: exception frustrations - solved

2005-01-16 Thread Nathan Coast
after a bit more digging... if you only have the errorPage directive in the enclosing page, the error that is reported is the error thrown by the tag that calls the errant (included / inserted) sub page. So in order to get the root cause error you need the errorPage directive in every jsp. Na

Re: Still PLZ Help with Cannot find message resources under key org.apache.struts.action.MESSAGE

2005-01-16 Thread Curtis Taylor
Hello, This error implies Digester has a problem with your struts-config.xml file. If you post your struts-config.xml in its entirety it may help the group determine what that problem is. HTH, Curtis Avinash Sridhar wrote: Hi, Thanks for the suggestionsAfter I add to the struts-config.

Stuck again at Validation

2005-01-16 Thread Manisha Sathe
Hi all, 1) I am having a form with some normal text fields - in formbean stored as normal private variables. 2)some display fields coming from one another databean - and hv stored the object of this data bean inside my formbean. 3)Few text boxes with identical name (like bookers_id (hidden form

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Manisha Sathe
Thanks Wendy, For data bean empty -> what i mean is -> i select one particular record depending on ID given, and put in bean. if i do not find any record then can i check it at front end and display 'No record found' But i think u mean to say i can check for (MyBean.MyPropert == null ) ? rig

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Yen
Hi, I am new to struts.. I saw people using the for the validation checking. But how to use it..? For each attributes in the form are different..? rgds, - Original Message - From: "Kishore Senji" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, January 17, 2005 8:35 AM

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Vic
likey that any "decsions' you shound do in Controller/Action. .V Manisha Sathe wrote: I am putting one arraylist and one javabean object with request.setAttribute.. I can access this in JSP. But how i can detect that Arraylist and/or Bean is empty ? regards Manisha -

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Kishore Senji
If you are not using JSTL, you can do the same thing using On Sun, 16 Jan 2005 16:04:51 -0800 (PST), Manisha Sathe <[EMAIL PROTECTED]> wrote: > I am putting one arraylist and one javabean object with > request.setAttribute.. > > I can access this in JSP. But how i can detect that Arraylist

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Wendy Smoak
From: "Manisha Sathe" <[EMAIL PROTECTED]> I am putting one arraylist and one javabean object with request.setAttribute.. I can access this in JSP. But how i can detect that Arraylist and/or Bean is empty ? With JSTL, assuming you have done request.setAttribute( "myList", list ); <%@ taglib ur

How to detect empty array list / databean on JSP?

2005-01-16 Thread Manisha Sathe
I am putting one arraylist and one javabean object with request.setAttribute.. I can access this in JSP. But how i can detect that Arraylist and/or Bean is empty ? regards Manisha - Do you Yahoo!? The all-new My Yahoo! – Get yours free!

Re: problem submiting List-Backed Indexed ActionForm

2005-01-16 Thread Richard Yee
Why don't you send the code in your reset() method so we can see if it is correct. -Richard At 05:51 PM 1/15/2005, you wrote: I am initializing ArrayList fields in reset(), but code is ommited. I wish it was that easy :) On Sat, 15 Jan 2005 19:17:09 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote:

RE: problem submiting List-Backed Indexed ActionForm

2005-01-16 Thread Karr, David
If you don't understand how the code works, there's no better solution than running the application in your debugger and stepping through the Struts and Commons source code. When you get to the line that throws the NPE, you'll have the first clue about what's going wrong. You'll need to make sure

RE: Tags rewrite wrong action url

2005-01-16 Thread Yufan Shi
Hi, The application that is ok is running on the server configured with mod_jk and the os is linux. and the one with problem is running on my windows xp notebook without mod_jk/jk2. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailt

RE: Tags rewrite wrong action url

2005-01-16 Thread Yufan Shi
Hi, The application that is ok is running on the server configured with mod_jk and the os is linux. and the one with problem is running on my windows xp notebook without mod_jk/jk2. Yufan Shi We are Online! http://www.ivanshi.com/blog/ -Original Message- From: David G. Friedman [mailt

Re: exception frustrations - solved

2005-01-16 Thread Nathan Coast
if enclosing page (e.g. tiles layout) forwards to or includes a jsp that throws an error (compile or otherwise) and the enclosing page doesn't have the errorPage directive, the sub-page processing of the error page causes an IllegalStateException (see bottom of email) result being the enclosin

Re: exception frustrations - solved

2005-01-16 Thread Kishore Senji
On Sun, 16 Jan 2005 12:10:37 +0800, Nathan Coast <[EMAIL PROTECTED]> wrote: > Hi, > > I've been strugling for a while with exception handling. I've been > trying to ensure: > 1) all exceptions are displayed consistently regardless of where / how > the exception is raised. > 2) the root cause exce