摘要: <a href="@Url.Action("方法","类名", new {参数名 = 参数值 })"><img id="ID" src=链接URL width="宽" height="高" /></a> 阅读全文
posted @ 2013-05-17 00:39 RattanyiXu 阅读(8105) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2013-05-17 00:35 RattanyiXu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一 Html.ActionLink("linkText","actionName")该重载的第一个参数是该链接要显示的文字,第二个参数是对应的控制器的方法,默认控制器为当前页面的控制器,如果当前页面的控制器为Products,则 Html.ActionLink("detail","Detail")则会生成 <a href="/Products/Detail">all</a>二 Html.ActionLink("linkText","actio 阅读全文
posted @ 2013-05-16 15:17 RattanyiXu 阅读(20377) 评论(1) 推荐(3) 编辑
摘要: 一、Include指令 <jsp:include>标签表示包含一个静态的或者动态的文件。 语法: <jsp:include page="path" flush="true" /> or <jsp:include page="path" flush="true"> <jsp:param name="paramName" value="paramValue" /> </jsp:include> 注: 1、page=&qu 阅读全文
posted @ 2013-01-28 16:57 RattanyiXu 阅读(13831) 评论(1) 推荐(0) 编辑
摘要: <jsp:include page="file/A.txt"></jsp:include>等于<%@include file="file/A.txt"%> 阅读全文
posted @ 2013-01-28 16:46 RattanyiXu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <%String fileName = application.getRealPath(request.getRequestURI());String fileResPath = new File(new File(fileName).getParent()).getParent();File f = new File(fileResPath, "/file/MyPromise.txt");out.print(f.getAbsolutePath());FileReader in = new FileReader(f);BufferedReader buffer = n 阅读全文
posted @ 2013-01-28 16:28 RattanyiXu 阅读(802) 评论(0) 推荐(0) 编辑
摘要: commom.jsp<%@page import="java.io.*" %><%String fileName = application.getRealPath(request.getRequestURI());String rootPath = new File(new File(fileName).getParent()).getParent();%> 阅读全文
posted @ 2013-01-28 16:24 RattanyiXu 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 自从Tomcat5.x开始,GET和POST方法提交的信息,Tomcat采用了不同的方式来处理编码,对于POST请求,Tomcat会仍然使用request.setCharacterEncoding方法所设置的编码来处理,如果未设置,则使用默认的iso-8859-1编码。而GET请求则不同,Tomcat对于GET请求并不会考虑使用request.setCharacterEncoding方法设置的编码,而会永远使用iso-8859-1编码。解决办法如下:1.配置tomcat的配置文件server.xml里这句:<Connector URIEncoding="GB2312" 阅读全文
posted @ 2013-01-13 12:50 RattanyiXu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <?phpsession_start();$width=50;$height=22;$img=imagecreatetruecolor($width,$height);$times=4;//$arr1=range("a","z");$arr2=range(0,9);//$arr3=range("A","Z");//$arr=array_merge($arr1,$arr2,$arr3);$arr=array_merge($arr2);$keys=array_rand($arr,$times);$str=&quo 阅读全文
posted @ 2012-10-18 12:10 RattanyiXu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 表达式中的transition参数的参数值有24中,以代号0-23来表示,分别代表24中显示类型,具体的参数值列表如下所示:同时还可以参考一下以下的页面转换特效:网页变换效果(Trans)共分四大类: "进入网页"(Page-Enter)、 "离开网页"(Page-Exit)、 "进入站点"(Site-Enter)、 "离开站点"(Site-Exit)。 每一大类又分为25个小类,先用进入网页效果来举例说明:进入网页时的效果 1.混合效果 代码如下: <meta http-equiv="Page-E 阅读全文
posted @ 2012-10-18 00:26 RattanyiXu 阅读(2954) 评论(1) 推荐(0) 编辑