Question about multiple Validation XML files?

2002-09-10 Thread Declan O'Shanahan (CAPE)

Hi there,

I am slowly trying to migrate my application to use the Struts Validation
framework. As part of this validation I need to be able to create separate
validation XML files. I have seen that there is an existing bug against the
commons-validator package
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10584 that prevents
multiple validation xml files being used. I was wondering if anybody knows
when this problem will be fixed or if anybody else has come up with a way to
get around it (other than lumping everything in to a single XML file). Your
help would be appreciated.

Regards,

Declan.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Handling runtime exceptions in Struts?

2002-09-09 Thread Declan O'Shanahan (CAPE)

Hi Juraj,

Thanks for that it worked a treat :-)

Regards,

Declan

-Original Message-
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2002 13:25
To: 'Struts Users Mailing List'
Subject: AW: Handling runtime exceptions in Struts?


Hi Declan,

there are some new tags (since servlet api 2.3):


  
java.sql.SQLException
/ausnahmen/sqlException.jsp
  

  
java.io.IOException
/ausnahmen/ioException.jsp
  

Here you can create error pages for different kinds of errors. An another
possibility would be to catch the exceptions in the action servlet and
forward to the errorpage.

Juraj



-Ursprüngliche Nachricht-
Von: Declan O'Shanahan (CAPE)
[mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. September 2002 14:19
An: [EMAIL PROTECTED]
Betreff: Handling runtime exceptions in Struts?


Hi there,

I was wondering if there a way with Struts to catch runtime exceptions by
default and have them displayed by an error page? I am trying to handle a
Servlet Exception that is thrown because of a missing key in the Application
Resources properties file.

Regards,

Declan O'Shanahan.



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Handling runtime exceptions in Struts?

2002-09-09 Thread Declan O'Shanahan (CAPE)

Hi there,

I was wondering if there a way with Struts to catch runtime exceptions by
default and have them displayed by an error page? I am trying to handle a
Servlet Exception that is thrown because of a missing key in the Application
Resources properties file.

Regards,

Declan O'Shanahan.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Multiple ApplicationResource Properties file with Struts

2002-09-05 Thread Declan O'Shanahan (CAPE)

Hi there,

I have searched the list for information on multiple message resources
properties files with Struts1-1b2. I have looked at the dtd for the
struts-config.xml
(http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd) and it says
that there can be multiple message-resources elements. Yet when I include a
second message-resources element in the struts-config.xml the application
does not recognoise the new values.

Does struts1.1b2 support multiple message resources properties files? Any
hints or help on this would be appreciated.

Regards,

Declan O'Shanahan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Does anybody know how to use Javascript Version 1.2 with the struts tag

2002-07-18 Thread Declan O'Shanahan (CAPE)

Hi there,

I am using Javascript with Struts for validation of input fields and I need
to be able to use Javascript version 1.2. I have checked the struts-html.tld
and there is no attribute to set the Javascript version. In the html that
gets generated the Javascript version is set to 1.1.

I have checked the class
org.apache.struts.taglib.html.JavascriptValidatorTag and the method
getJavascriptBegin sets the Javascript version to 1.1. If anybody knows of a
way to change the Javascript version to 1.2 without changing the struts code
base I would like to know how to do it.

Regards,

Declan.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: