Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   A program to replace all JS comments with JSP comments in jsp files (http://www.velocityreviews.com/forums/t296141-a-program-to-replace-all-js-comments-with-jsp-comments-in-jsp-files.html)

tungchau81@yahoo.com 06-02-2006 06:35 AM

A program to replace all JS comments with JSP comments in jsp files
 
Hi,
I have a lot of JSP files that serve as pure JavaScript code. I need to

convert all JavaScript comments inside these JSP files to JSP comments
which use <%-- // --%> tags. Instead of doing it manually, I would
like to write a script/program that can detect the JS declarative
comment structure and replace it with the equivalent JSP comment.
However, I do not know how to start writing such kind of
script/program. I would appreciate alot if you can suggest me some
tool/program, Linux shell command or programming language (Perl,
JavaScript, ...) that I can use. Is there any available program out
there that is doing this task ?

Thanks in advance,
Tung Chau



All times are GMT. The time now is 04:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.