摘要:
我也刚遇到这个问题,自己修改注册表解决了,原创方法,很简单,你试试吧:(两种方法)开始→运行→输入regedit,点确认→找到下面这个目录HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pd 阅读全文
摘要:
$("#shi").find("option:[text='成都市']").attr("selected", true);//该方法不行,原因不明,可能是因为自我不理解吧。(在chrome下) $("#shi option:contains('成都市') ").attr("selected", "s 阅读全文
摘要:
1.JS文件的相对路径,相对于html。 如: 1.html引用a.js文件,a.js文件中有 url(1.jpg), 则1.jpg相对于1.html的。(即: 1.html与1.jpg处于同一个文件夹下) 2.CSS的相对路径,相对于CSS文件。 如: 1.html调用a.css,a.css中有u 阅读全文
摘要:
第一种,利用HttpServletRequest 阅读全文
摘要:
<package name="default" extends="struts-default"> <action name="HelloWorld" class="com.zxm.action.HelloWorld"> <result name="success">/WEB-INF/HelloWo 阅读全文
摘要:
There is no Action mapped for namespace [/] and action name [helloworld] associated with context path [/JavaWeb]. 1. 检查struts.xml文件名是否写错 2.检查struts.xm 阅读全文
摘要:
jsp里面,将D.equal("male")改为"male).equals(D),能防止D=null的情况。 另外,在jsp中,session使用方法如上。 在java中,只需创建session以及setAttribute即可。 阅读全文
摘要:
创建servlet,在后台进行跳转 RequestDispatcher rd = request.getRequestDispatcher("./WEB-INF/view/a.jsp"); rd.forward(request, response); 利用web.xml配置文件进行配置 如,我需要将 阅读全文