Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Steps to Converting HTML page to JSP

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,
I am somashekhar , newly joined in this grpup .
I need information regarding what are the steps which are required to convert the HTML page to JSP .
What are the precautions we need to take care of ?
and finally , are there any tools available which can be used to convert HTML to JSP .
Thanks in advance ,
Som
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simply change the extension from html to jsp. That's it. ur Jsp is ready to use.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Somshekhar,
I'm not really sure you're asking the right question here...
HTML is static, i.e. you write a pge once, and every time a user views it, it will look the same.
JSP is dynamic, i.e. it allows you to perform actions and generate data using java embedded in either the jsp page or an external class file. These actions are carried out by the JSP websever application (Tomcat, JBoss etc) to generate HTML code, which is then sent to the client browser for interpretation and display.
A very quick example of how HTML and JSP co-exist is below. The starting point is an html page with a form on, one single textbox called nameIn for the user to enter their name, and a submit button to submit the form to the jsp page below. I assume you've read some of the basics of how JSP tags work...

I would strongly suggest getting a book on the subject (search for JSP on amazon, and javaranch for book reccomendations).
If I was going from a static HTML page to JSP, I'd want to think about where any dynamic data is coming from (xml, DB, user input), the types of operations you want to perform on it, whether a framwork is suitable rather than JSP pages, are there different type of user accessing your site, does it require security, what web server are you using etc... I'm sure others can think of far longer lists...
I hope this is of some help...
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nirant:
Simply change the extension from html to jsp. That's it. ur Jsp is ready to use.


Or tell the application server to pass all files with extension html and htm to the JSP processor
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic