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
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
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
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",
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
Thanks to all for helping me out,
Cheers
Manisha
-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
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
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
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
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
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
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
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.
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
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
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
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
-
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
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
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!
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:
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
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
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
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
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
26 matches
Mail list logo