
jsp
caoyongjunjava
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
增加和删除
无标题文档 function add() { var table=document.getElementById('mytable'); var tr=document.createElement('tr'); var td1=document.createElement('td'); var myfile=document.createEl原创 2012-10-08 20:28:01 · 586 阅读 · 0 评论 -
跳出IFAMI
Response.Write("top.location=\"../Admin/SYProcessLineManage.aspx\";"); Response.Write(" Response.Write("/"); Response.Write("script>");原创 2012-10-08 20:25:25 · 400 阅读 · 0 评论 -
jsp中全选按钮代码
http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题文档 function selectall() { var mycheckbox=document.getElementById('select1'); va原创 2012-10-08 20:10:07 · 6182 阅读 · 1 评论 -
jsp解析中文字符,其中两编一解
get提交 String str=request.getParameter("a"); String s=new String(str.getBytes("ISO8859-1"),"UTF-8"); String s=new String(str.getBytes(),"ISO8859-1"); post 提交 request.setCharaterEncoding("utf-8")原创 2012-10-08 20:14:20 · 636 阅读 · 0 评论 -
jsp中上传文件
1.创建JSP页面 form action="UploadServlet" method="post" enctype="multipart/form-data"> 用 户 名: input type="text" name="username"/> 上传文件: input type="file" name="file"/>br/> input type="submit" va原创 2012-10-08 20:26:58 · 713 阅读 · 0 评论 -
js验证上传的文件是否为JPEG,PNG,JPG,GIF格式
function checkPhoto(){ var type=""; if(document.getElementById("newphoto").value!=''){ type=document.getElementById("newphoto").value.match(/^(.*)(\.)(.{1,8})$/)[3]; type原创 2012-10-13 21:05:02 · 7878 阅读 · 0 评论 -
分页技术
//显示会员 public String vipquery() throws Exception { HttpServletRequest request=ServletActionContext.getRequest(); String hql="from User order by userID desc"; int nowpage=1; int pageS原创 2012-11-15 20:47:31 · 442 阅读 · 0 评论