You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/17 01:57:17 UTC

DO NOT REPLY [Bug 19097] - JSP Pages that are designated as is-xml give an exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19097>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19097

JSP Pages  that are designated as is-xml give an exception

kin-man.chung@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From kin-man.chung@sun.com  2003-04-16 23:57 -------
In xml syntax, all namespace, including "jsp", used as prefix in an xml element
must be defined and in scope.  The error message is clear on this.

To fix the problem, you can place the definition of "jsp" at the xml root:

	<HTML xmlns:jsp="http://java.sun.com/JSP/Page">

Or you can do it at each of the jsp elements, such as

	<jsp:useBean id="foo" class="my.FooBean"
xmlns:jsp="http://java.sun.com/JSP/Page"/>

and similarily for <jsp:setProperty>

You can even use a different prefix, such as

	<wombat:useBean id="foo" class="my.FooBean"
xmlns:wombat="http://java.sun.com/JSP/Page"/>

as long as you specify the correct uri for JSP.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org