• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steps to Converting HTML page to JSP

 
somshekhar rao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply change the extension from html to jsp. That's it. ur Jsp is ready to use.
 
Oliver Moore
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic