Thanks, I had thought of this workaround too. I just wanted to highlight the potential security issue when the validator rules fail to load.

Vinit Sharma wrote:
Hi,

You can store the dtd file on you local dir and refer its path from the
rules xml file.

HTH

On 5/2/06, Lance Semmens <[EMAIL PROTECTED]> wrote:

Struts is not loading validator rules if the validator dtd can not be
retrieved.
On app server startup, the following is reported:

2006-04-29 16:18:23,420 ERROR
[org.apache.struts.validator.ValidatorPlugIn] jakarta.apache.org
java.net.UnknownHostException: jakarta.apache.org
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)*
        :
        :

*Im assuming that this is exception occurs trying to retrieve
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd
After this, my app works fine except there are now no rules being
applied to my forms which poses a *slight* security issue.
**

--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London W1D 3QB, UK
t. +44 20 7297 8401
f. +44 20 7297 8427
e. [EMAIL PROTECTED]
w. www.marketpipe.com





--
Vinit Sharma
IBM



--
Lance Semmens
Marketpipe Limited
a. 7 Soho Square, London W1D 3QB, UK
t. +44 20 7297 8401
f. +44 20 7297 8427
e. [EMAIL PROTECTED]
w. www.marketpipe.com


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

Reply via email to