In the jsp page this code works fine :
While same code when moved to .jspx page gives follwing
And if i remove the '<' characters from href attribute's value i am getting
Please let me know what shall be the reason behind this...
[ January 24, 2007: Message edited by: Jignesh Gohel ]
jspx document uses xhtml. and xhtml is very strict language uses xml. check out whether you closing all your tag exactly.
i think below link will helps you out
[ January 28, 2007: Message edited by: Milan Jagatiya ]
Originally posted by Jignesh Gohel:
but i am talking about the JSP documents which have a .jspx extension.
So am I.
The JSP document format is intended for use as an intermediary format for JSP containers to use, and for JSPs that are created under code control.
It is not meant to be a format that is hand coded. There is so much markup necessary that you end up with an unreadable pile of goo that's difficult to extend and maintain.
So I ask again, why would you be trying to write in this format?
[ January 28, 2007: Message edited by: Bear Bibeault ]
Also included in JSP 2.0 are improvements to the handling of XML content, which allow developers to write their dynamic XML content as JSP content. The specification has numerous clarifications since version 1.2, and the file extensions .jspx and .tagx have been added. This feature isn't exclusive to Tomcat 5--other servlet container implementations are free to implement JSP 2.0--but this is a feature that Tomcat 4 does not have because it only implements JSP 1.2.
Taken from here. Though I can't really tell if this is what the OP is trying to do.