File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Steps to Converting HTML page to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Steps to Converting HTML page to JSP" Watch "Steps to Converting HTML page to JSP" New topic
Author

Steps to Converting HTML page to JSP

somshekhar rao
Greenhorn

Joined: Mar 18, 2004
Posts: 1
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

Joined: Nov 22, 2008
Posts: 18944
Simply change the extension from html to jsp. That's it. ur Jsp is ready to use.
Oliver Moore
Ranch Hand

Joined: Mar 04, 2003
Posts: 44
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...


Regards,<p>Ols
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
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


42
 
Don't get me started about those stupid light bulbs.
 
subject: Steps to Converting HTML page to JSP
 
Similar Threads
Converting String to HTML
HTML to Struts 2 JSP Page / UI
Include HTML files?
Spring 3 and XSLT
converting html to jsp