Issue Details (XML | Word | Printable)

Key: MAVENTAGLIB-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Fabrizio Giustina
Reporter: Maria Elena Milani
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven taglib plugin

SimpleTag is required, but not available on JSP version <2

Created: 18/Jan/10 13:49   Updated: 31/Jan/10 16:57   Resolved: 30/Jan/10 17:53
Component/s: None
Affects Version/s: 2.3.1
Fix Version/s: 2.4

File Attachments: 1. File ValidateRenderer.diff (4 kB) 18/Jan/10 23:55 - Fabrizio Giustina



 Description  « Hide

migrated from sourceforge tracker https://sourceforge.net/tracker/?func=detail&aid=1797126&group_id=93991&atid=606303

Hello,

there are still projects out there, which do not depend on JSP v2.

Those taglibs wont have any class deriving from the SimpleTag-Class.

But the current version (2.3.1) of the plugin depends on being able to load
the SimpleTag-Class.

I have attached a fix for the ValidateRenderer, which makes a distinction
between jsp < 2 and jsp >= 2.

It assumes, if it can not load the SimpleTag, that the taglib will only
have tags with jsp < 2.

An error will be thrown anyways, if a tag is instantiated from the tld,
which derives from SimpleTag class, but the SimpleTag class can not be
found.

So the renderer does still validates.



Fabrizio Giustina added a comment - 30/Jan/10 17:53

Committed a slightly revised patch for version 2.4, thanks!