Click to See Complete Forum and Search --> : how to convet a htmlpage in to jsp page


urraaz
04-22-2009, 12:28 AM
hai 2 all..

i have an index.html page iwant to convetthe index.html into index.jsp
any one help me please......

forEx:...
..............in index.htm..............l
<select name="s">
<option >.....
<option >.........
<option >.........
<option >.........
<option >.........
</select>

i want to get the above code like
.................................in index.jsp...................
<select name="s1">
<%
for(int i=0;i<5;i++){
%>
<option>..........
<%
}
%>
</select>


plz plz plz plz help me.....................

thqs

dingbat
04-24-2009, 04:30 PM
Just naming the file .jsp is all you should need to do.

urraaz
04-25-2009, 06:06 AM
thq mr dingbat,

not i need the file name extensions change i need to change the entire code of html to
jsp code dynamically

means my input is html page i want output as jsp

thanq

dingbat
04-25-2009, 09:28 AM
I'm not following exactly what you're talking about. I doubt anything exists that will look through an html page and replace stuff with loops. You'll have to do it manually. You can just change the html file to a jsp and it will run fine, then you can add java as you expand it.