ASP.NETMVCView页面内判断是否登录直接写这个判断即可@if (Request.IsAuthenticated) { 你好,@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: n...
分类:
Web程序 时间:
2014-06-18 22:30:21
阅读次数:
393
晚上review了下grunt-inline的issues,看到有个兄弟pull request,修正了0.3.0版本的一个bug。于是就merge了下,然后发布了0.3.1版本(这里)。npm publish后,突然想到一个问题,发布了这么多个版本了,但好像都没有打过tag,这个不利于版本回溯以及...
分类:
其他好文 时间:
2014-06-18 21:33:43
阅读次数:
252
项目是使用spring MVC(1)在浏览器中访问,后台总报错:Java代码NomappingfoundforHTTPrequestwithURI[/exam3/welcome]inDispatcherServletwithname'spring2'查了好半天,才发现是controller没有扫描到...
分类:
移动开发 时间:
2014-06-17 20:04:22
阅读次数:
494
使用File类的listFiles()来遍历指定路径下的所有文件信息。在tomcat的conf/web.xml中通过可查看支持的MIME类型,也可修改。可在dos中调用netstat -ab来查看对应的端口应用程序。filter:在web.xml中配置,将请求的request、返回的response提前过滤掉一些信息或者设置一些参数,如设置字符编码,权限过滤器等等;而interceptor是在st...
分类:
其他好文 时间:
2014-06-16 20:18:04
阅读次数:
250
Request.ServerVariables("Url")返回服务器地址Request.ServerVariables("Path_Info")客户端提供的路径信息Request.ServerVariables("Appl_Physical_Path")与应用程序元数据库路径相应的物理路径Requ...
分类:
其他好文 时间:
2014-06-15 22:28:53
阅读次数:
265
第一种:
在页面前加上
errorPage=""%>
第一行说明你的页面用的是中文编码
第二行声明你的页面传值也用中文编码
第二种
tomcat4.x支持中文传码,但5.x不支持,如果用5.0以上的版本就得转码了,
就是这种格式
String strKeyWords=new String(request.getParameter("key_words").get...
分类:
数据库 时间:
2014-06-15 14:17:32
阅读次数:
216
function createXHR() { var request; if (typeof (XMLHttpRequest) == 'undefined') { request = new ActiveXObject('Microsoft.XMLHTTP'); } ...
分类:
其他好文 时间:
2014-06-15 07:58:05
阅读次数:
196
if (Request["name"] != null) { try { string FileName = MyCrypt.Decrypt(Request["name"]); //string FilePath = Server.MapPath(string.Format("UploadFile....
分类:
其他好文 时间:
2014-06-14 23:47:24
阅读次数:
352
完整代码 :Struts12AccessWebElement.rar第一种也是最常用的一种方法实现这几个接口RequestAware,SessionAware,ApplicationAwarestruts以依赖注入方式把request,session和application赋上值,看一下完整的代码p...
分类:
Web程序 时间:
2014-06-14 19:36:02
阅读次数:
277
EBS 里面的 concurrent request: RTP log 记录的机制...
分类:
其他好文 时间:
2014-06-14 11:02:39
阅读次数:
218