Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MS Conditional comments with jspx

 
Josean Delgado
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is one of the very many reasons that jspx format is rarely used for real-world applications. Why are you using it?
 
Josean Delgado
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. I would rather stick toothpicks under my fingernails that be hampered by the Draconian formatting required by jspx.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic