File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes MS Conditional comments with jspx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "MS Conditional comments with jspx" Watch "MS Conditional comments with jspx" New topic
Author

MS Conditional comments with jspx

Josean Delgado
Greenhorn

Joined: Sep 01, 2010
Posts: 7
Hi,

I am currently working in a project that uses jsp documents on tomcat 6.026. In other words jspx type of jsp.

I would like the to use "conditional comments" as stated by MS to handle its browsers . The referred cc uses
<!-- --> coding to enable the conditionals in a page. However this the the same syntax for enabling
comments in an xml document. For some reason jasper compiler is not preserving the comments when the document is
translated into a servlet. Consequently the cc are not making in to the final page.

I wonder if there is way to deal with the situation that I just previously described

Thanks in advance
jD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

This is one of the very many reasons that jspx format is rarely used for real-world applications. Why are you using it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Josean Delgado
Greenhorn

Joined: Sep 01, 2010
Posts: 7

Hi there,

It is not bad at all...
When I started on this project; I was -as well- regretting having to use it.

After a short period of adjustment I started to like it.

Is this only wrinkle that I need somehow to iron it

I wonder why jasper is yanking the comments from the page??

Any idea?

Thanks again
jD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

No. I would rather stick toothpicks under my fingernails that be hampered by the Draconian formatting required by jspx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MS Conditional comments with jspx