JSPs

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

JSPs

Post 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.
-- Brian
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Post 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.
Post Reply