Hi all,
by the way last night I wrote down the DTDs for validation.xml
and validator-rules.xml

Hope it might help (well I'm not even sure I've written down right...)

bye,
d.rizzi


-----Messaggio originale-----
Da: Emaho, Ghoot [mailto:[EMAIL PROTECTED]]
Inviato: venerd́ 31 maggio 2002 12.03
A: Struts Users Mailing List
Oggetto: RE: DTD Question - SIMPLE SOLUTION


A simple way of bypassing the need to access the DTD externally (as the
Struts 'automatic' resolution within the jar does NOT always work - see mail
archives) is to change the DOCTYPE def to something like the following:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "dtds/web-app_2_2.dtd">

where the dtd directory is a subdirectory of your WEB-INF directory. Copy
the web_app dtd into that directory and it will be found there. Nice and
simple.

NOTE it is still defined as 'PUBLIC'. There have been other posts about
using the 'SYSTEM' definition and looking locally, but this doesnt always
work - depending on which server/setup you have.

However, the suggested method works all the time and on as many different
environments as I've tried it.

Cheers

Ghoot Emaho

Lead Architect
Petrotechnics Ltd

> -----Original Message-----
> From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
> Sent: 30 May 2002 20:40
> To: [EMAIL PROTECTED]
> Subject: DTD Question
>
>
> Subject: DTD Question
> From: "Adam Cohen" <[EMAIL PROTECTED]>
>  ===
> I'm working on a web-app that is on a server that has no
> access to the web
> on port 80.
> When web.xml tries to get the dtd:
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> The server waits for a long time for the request to time out.
> I don't want to hard code a local path to the dtd and the
> server can't get
> accss to the web.
> Is there a better way to do?
> Thanks, Adam
>
>
>
> --
> 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]>

Attachment: xml.zip
Description: Zip compressed data

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

Reply via email to