JSP
xinshuguang
这个作者很懒,什么都没留下…
展开
-
第一个JSP
html> head>title>Hellotitle>head>html>body> % out.println("新曙光培训"); %>body>html> 文件名:hello.jsp放在Tomcat安装路径的webapps/root/下访问:http://localhost:8080/hel原创 2008-10-01 14:34:00 · 346 阅读 · 0 评论 -
EL function
源代码 JSP 表达式语言 函数一个简单的例子,包括web.xm 和taglib.tld原创 2009-07-01 01:04:00 · 298 阅读 · 0 评论 -
表达式语言的隐含对象
xsgparamVlues.jsp 表达式${paramValues.CanShu[0]}${paramValues.CanShu[1]} 把这份文件放在Root下访问方式http://localhost:8080/xsgparamValues.jsp?CanShu=XinShuGuang&CanShu=@WeiYa原创 2009-06-30 23:02:00 · 341 阅读 · 0 评论 -
Jsp显示中文
html>%@ page contentType="text/html;charset=gb2312" %>body>时间是:%=new java.util.Date() %>body>html>原创 2008-11-25 02:15:00 · 370 阅读 · 0 评论 -
form action中类的查找
web.xml如下: ZhengBanQiao coreservlets.ShadowedText ZhengBanQiao /yi_1 则form action应该是:不能写成 /yi_1 这个form action所在的html文件与文件夹WEB-INF同级,原创 2009-01-11 20:42:00 · 499 阅读 · 0 评论 -
web.xml必须小写
tomcat6.0 WEB-INF文件夹名必须大写,但是其下的web.xml必须小写原创 2008-10-30 20:41:00 · 609 阅读 · 0 评论 -
tomcat查找类的过程
tomcat查找类的过程:把类文件放在:D:/JspTry/one1/WEB-INF/classes下面,这个类必须是不带有包名的,如果有,要在classes下面建立相应的文件夹.注意上述的WEB-INF必须大写.在Tomcat 6.0/conf/server.xml中: unpackWARs="true" autoDeploy="true"原创 2008-10-23 19:53:00 · 535 阅读 · 0 评论 -
include指令
HuanYing.jsp %@ page contentType="text/html;charset=gb2312" %>html> head>title>新曙光培训title>head>html>body> 北京欢迎你,现在的时间是: %@ include file="RiQi.jsp" %>原创 2008-10-01 15:48:00 · 316 阅读 · 0 评论 -
在JSP中插入Applet
jsp文件和.class文件都放在C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/ROOT中 jsp文件 %@ page contentType="text/html;charset=gb2312" %>jsp:plugin type="applet" code="xsgTry.cla原创 2008-10-01 22:10:00 · 515 阅读 · 0 评论 -
test line number
javadaima public class Student implements java.io.Serializable { private String name; public static void main(String[] args) { //java.io.Serializable s = new Senior(); //s.name="未央华迪"; //原创 2013-03-22 23:51:05 · 494 阅读 · 0 评论