• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there an automated tool that converts HTML to JSP?

 
John Bennet
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I'm looking for a tool to automate the HTML to JSP conversion. I have a huge number of HTML containing flash tags which needs to be converted to JSP.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rename the files from .html to .jsp. Now they are JSP files. Beyond that, what are you looking for?
 
John Bennet
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Automated way to add tags such as <% or %>
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But, why do you want to add the <% %> tags. Wont the HTML page work as it is? or do you want your HTML content to be generated from a backend database?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That makes no sense. What would one put into such "tags"?
 
John Bennet
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, exactly! I want your HTML content to be generated from a backend database
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Repeat: how would any automated tool know how to go about replacing random HTML text with database access tags?

The bad news: you're really going to have to dig in and do it by hand.

The good news: it's not that hard.

Step 1: Write backend code (not in a JSP) that obtains the values you want to display.

Step 2: In a servlet controller, call this code to get the data and place it on the request as scoped variable(s).

Step 3: On the JSP page use JSP technology (preferably the JSTL) to display the values.
[ November 23, 2004: Message edited by: Bear Bibeault ]
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Potentially problematic response removed.]
[ November 23, 2004: Message edited by: Bear Bibeault ]
 
Barbara Norway
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Potentially problematic response removed.]
[ November 23, 2004: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!