Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error facing when converting .jsp to .jspx  RSS feed

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSP2.0 compilant container and jstl 1.1.2 version/

In the jsp page this code works fine :



While same code when moved to .jspx page gives follwing

[B][/B]

And if i remove the '<' characters from href attribute's value i am getting
exception

[B][/B]

Please let me know what shall be the reason behind this...

Thanks
[ January 24, 2007: Message edited by: Jignesh Gohel ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why on earth would you be trying to write a jspx file by hand?
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

I think you are taking it as a xyz_jspx.class file,but i am talking about the JSP documents which have a .jspx extension.Please help me if you can to solve the problem mentioned in the above post.

Thanks.
 
Milan Jagatiya
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPX3.html


milan.
[ January 28, 2007: Message edited by: Milan Jagatiya ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think maybe he is talking about this?


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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!