Page 1 of 1

JSPs

Posted: Wed Jul 21, 2004 8:04 pm
by bkbonner
I was curious if it was possible for Oxygen to reference TLDs in a similar way to how it uses Schemas for content assist.

Posted: Fri Jul 23, 2004 12:11 pm
by Dan
At this time Oxygen does not parse the tag library descriptors, so it cannot offer content assist on the custom tags.

However, you could write a stylesheet that applied over the TLD file creates an XML Schema. You can add a reference to this schema from your JSP files like this:

Code: Select all


<jsp:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/JSP/Page file:/C:/current%20projects/eXml/samples/jsp/jspxsd.xsd http://www.example.com/TLD test/tld.xsd"
xmlns:jsp="http://java.sun.com/JSP/Page">

</jsp:root>
The content assist will offer the possibility to insert the tags defined in the tld.xsd in any point where the JSP schema allows it, for example just after the jsp:root.