Tag Library With Default Xmlns In Jspx Causes Uninterpreted Tag Code (Doc ID 1377001.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 11.1.1.1.0 to 12.1.2.0.0 [Release 11g to 12c]
Information in this document applies to any platform.

Symptoms

A JSP page is defined as the following :

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns="http://foo.com/tag" version="2.0">
<table />
</jsp:root>

When invoking this page, the following page is returned :

<table />

The issue is that a JSP page containing the taglib defined with the uri http://foo.com/tag -
but without prefix (empty prefix as xmlns="http://foo.com/tag"), element as <table /> is not interpreted.

The expected result is that the <table /> element is interpreted as if  a prefix is defined for the taglib :

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:t="http://foo.com/tag" version="2.0">
<t:table />
</jsp:root>





Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms