• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comments on the fly

 
dhriti joshi
Ranch Hand
Posts: 82
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to generate comments on the fly in java.
I have a String variable(containing xml code) that I want to include in the comments(for some external tool that wants to read xml from the comments or hidden text)
kindly suggest.

Thanks,
Dhriti.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huh?
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Can you please be more clear, If you want comments in your java class documentation then have a look at javadoc.
Do you mean to say the comments are in a xml file , you need a tool that parses the xml & update your soure code accordingly?
 
dhriti joshi
Ranch Hand
Posts: 82
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I want is that say in my jsp i have a String variable

<%
String str="?xml version....>
<a>gfgf</a>
<b>jkjk<b>
..
.. ";
%>
<!--

Here I want the value of str

-->
Hopes this makes it clear
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. It would have been helpful if you let us know you were talking about JSPs!

What's wrong with



Works fine.

I'm going to move this to our "JSP" forum for any follow-up.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic