关于eclipse建立struts框架中的jsp页面问题

来源:百度知道 编辑:UC知道 时间:2024/05/18 18:10:00
建立页面分1.1struts和1.2这两种
不知道他们的区别在什么地方
还有生成页面有些代码不是很懂
<html:html locale="true">
<head>
<html:base />

<title>main.jsp</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>
******************************************
上面这些代码是什么
<html:html locale="true">这是什么意思、用在什么地方
还有下面<meta 这里面各个是什么意思

struts1.2比1.1多了很多得附加功能。
支持得功能比1.1更适合struts
其实看他们得不同,可以参考他们得api不同去看...
个人感觉没有什么不同...只要注意高版本兼容低版本
只要知道这些就可以了

struts是J2EE的一种架构方法,其中老的版本有1.0,1.1,1.2,这些只是版本问题,并且新版本兼容了旧版本.其中1.2增加了一些标签库什么的.上面这些2都是http的标准语句,具体可以查看http用于介绍.比如<title>main.jsp</title> 就是生成页面的标题就是main.jsp,<meta http-equiv等都是一些引用页面,标签等.link rel="stylesheet" type="text/css" href="styles.css">指定采用何种CSS样式

这是ISP框架基本构成.