html 转换成 JSP ,怎么转?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>用户登录</TITLE><LINK
href="images/Default.css" type=text/css rel=stylesheet><LINK
href="images/xtree.css" type=text/css rel=stylesheet><LINK
href="images/User_Login.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY id=userlogin_body>
<DIV></DIV>

<DIV id=user_login>
<DL>
<DD id=user_top>
<UL>
<LI class=user_top_l></LI>
<LI class=user_top_c></LI>
<LI class=user_top_r></LI></UL>
<DD id=user_main>
<UL>
<LI class=user_main_l></LI>
<LI class=user_main_c>
<DIV class=user_main_box>
<UL>
<LI class=user_main_text>用户名: </LI>
<LI class=user_main_input><INPUT class=TxtUserNameCssClass id=TxtUserName
maxLength=20 name=TxtUserName> </LI></UL>
<UL>
<LI class=user_main_text>密 码: </LI>
<LI class=user_main_input><INPUT class=TxtPasswordCssClass id=TxtPassword
type=password name=TxtPassword> </LI></UL>
<UL>
<LI class=user_main_text>Cookie: </LI>
<LI class=user_main_input><SELECT id=DropExpiration name=DropExpiration>
<OPTION value=None selected>不保存</OPTION> <OPTION value=Day>保存一天</OPTION>
<OPTION value=Month>保存一月</OPTION> <OPTION
value=Year>保存一年</OPTION></SELECT> </LI></UL></DIV></LI>
<LI class=user_main_r><INPUT class=IbtnEnterCssClass id=IbtnEnter
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("IbtnEnter", "", true, "", "", false, false))'
type=image src="images/user_botton.gif" name=IbtnEnter> </LI></UL>
<DD id=user_bottom>
<UL>
<LI class=user_bottom_l></LI>
<LI class=user_bottom_c></LI>
<LI class=user_bottom_r></LI></UL></DD></DL></DIV><SPAN id=ValrUserName
style="DISPLAY: none; COLOR: red"></SPAN><SPAN id=ValrPassword
style="DISPLAY: none; COLOR: red"></SPAN><SPAN id=ValrValidateCode
style="DISPLAY: none; COLOR: red"></SPAN>
<DIV id=ValidationSummary1 style="DISPLAY: none; COLOR: red"></DIV>

<DIV></DIV>

</FORM></BODY></HTML>

求高手帮我转成JSP代码,刚学的不太会。我自己转的CSS和图片都显示不出来,不知道为什么,而且排版也有问题了

你就把jsp当做html就行了嘛。
不用做其它的操作啊。。

css样式和图片显示不出来,你看一下css和图片的引用的路径。。

只要是对的,就不会有问题
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-04-22
html完全可以当jsp也面用啊。CSS和图片显示不出来应该是路径不对。你页面中用的是相对路径,jsp页面和html是在一起放着吗,如果不是,把css和图片路径改一下就好了。