users@glassfish.java.net

RE: Glassfish 2.2.2.v201205150955 and JSPs

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 8 Apr 2014 13:24:42 -0400

Glassfish core taglib c-1_0.tld contains:

<!DOCTYPE taglib
  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
  "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

if you have the DTD located on local path you could use

<!DOCTYPE taglib SYSTEM "web-jsptaglibrary_1.2.dtd">

OR declare the DTD internally inlined as:

<!DOCTYPE taglib [
<!ELEMENT ....>
]>

 

newer schema based taglibs such as struts-dojo.tld (seen below) do not suffer antiquated DTD restrictions e.g:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
  <tlib-version>2.2.3</tlib-version>
  <short-name>sx</short-name>
  <uri>/struts-dojo-tags</uri>


HTH
Martin Gainty
______________________________________________
do not alter this transmission..Thank You

  





Date: Tue, 8 Apr 2014 08:41:22 -0400
Subject: Glassfish 2.2.2.v201205150955 and JSPs
From: stonebaj_at_gmail.com
To: users_at_glassfish.java.net


I am working with the Glassfish jar included in the 4.2.2 SDK of Eclipse. I am trying to build a simple Plugin Project that renders some arbitrary text on the screen using the standard 'c' taglib.


I get the following error:

PWC6181: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd not found



I can resolve the issue by hacking the Glassfish MANIFEST.MF and adding an Import-Package declaration for javax.servlet.jsp.resources. It seems the MANIFEST imports everything from javax.servlet.jsp EXCEPT this package.


I would prefer to not used a hacked bundle if possible - can anyone explain what I am doing wrong - or a better way to resolve this issue?


Thanks!


Andy