Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Comments on the fly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Comments on the fly" Watch "Comments on the fly" New topic
Author

Comments on the fly

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

Huh?


[Jess in Action][AskingGoodQuestions]
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
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?


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comments on the fly
 
Similar Threads
Use XML or Annotation to configure Spring?
Is Microsoft .NET "he" or "she"?
question about jsp expression
Have the power to become invisible, to mind-read, or to fly?
Interaction of XML and XSD on the fly