• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

!DOCTYPE taglib url question

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have following lines in the .tld file:
<!DOCTYPE taglib
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

it runs in tomcat.

question 1. will "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> realy cause tomcat to get this file from sun.com ? what happens when sun.com is down, many jsps will not run?

question 2. if tomcat is behind a http proxy server which requires authentification, how do I make it work, setting something in tomcat?


Thanks in advance.

Eric
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope this may clear your doubt:---


Valid XML Output:

Including DOCTYPE Declarations
A valid XML document is one that has a document type (or "DOCTYPE") declaration and conforms to the DTD in that document type declaration. (Remember, an XML document with no DOCTYPE declaration isn't valid, but it can still be a legal XML document as long as it's well-formed. "Valid" is a technical term referring to the presence of and conformance to a DOCTYPE declaration.)

A DOCTYPE declaration can include DTD declarations as an internal DTD subset between square brackets, like this,

<!DOCTYPE chapter [
<!ELEMENT chapter (title,para+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT para (#PCDATA)>
]>
or it can point to DTD declaration stored in a separate file like this:

<!DOCTYPE chapter SYSTEM "../dtds/chapter.dtd">
The SYSTEM identifier tells the XML parser where to find the DTD file on the system. An optional PUBLIC identifier can specify another string for the parser to use when locating a DTD file. These usually use a string similar to the following, which avoids any system-specific information to make the document more portable across different systems:

<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML//EN"
"../dtds/chapter.dtd">

The XML parser should look up this PUBLIC identifier somewhere to find the exact location of the local copy of the DTD file. (There have been proposals for the format and location of the lookup table, but none has caught on enough to be a widespread standard in the XML world, so that "somewhere" has never been completely resolved. In fact, people are using PUBLIC identifiers less and less anyway.) If it can't find it, the parser uses the SYSTEM identifier following the PUBLIC identifier. In the example above, the SYSTEM identifier doesn't need the word "SYSTEM" -- because it's a required parameter, the XML parser knows what it is.


http://www.xml.com/lpt/a/2002/09/04/xslt.html
 
eric he
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Anil Kumar, that cleared some of my cloud, my quess is that we should be able to setup tomcat with taglibs to run for local users, without internet connection. is that true?

for my second question, tomcat behind a http proxy server which need authentification, I still can't find solution after searching for hours, one said we could setup proxy host/port in conf\catalina.properties, then what about authentification?

Eric
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic