• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error facing when converting .jsp to .jspx

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic