404.html /view/index.jsp解决方法:1、spring.3.0.4以后版本提供的(推荐使用此方式) a)首先,允许静态资源放在任何地方,如WEB-INF目录下、类路径下等,你甚至可以将JavaScript等静态文件打到JAR包中。通过location属性指定静态资...
分类:
其他好文 时间:
2015-08-11 17:38:47
阅读次数:
112
每个javaEE工程中都有web.xml文件,那么它的作用是什么呢?它是每个web.xml工程都必须的吗?一个web中可以没有web.xml文件,也就是说,web.xml文件并不是web工程必须的。web.xml文件是用来初始化配置信息:比如Welcome页面、servlet、servlet-map...
分类:
Web程序 时间:
2015-08-10 23:40:16
阅读次数:
133
这节来讨论一下当程序出现错误的时候是怎样的?
1.还是以上一章节的代码作为例子
print("hello world")
print("i am ray")
print("i love China \n" * 8)
print("welcome to my class")
print(over")
最后一句那里,明显少了一个双引号,点击F5或者Run Module之后,会出现下面情...
分类:
编程语言 时间:
2015-08-10 09:30:01
阅读次数:
125
题目链接:http://poj.org/problem?id=2449题目描述: 其实题目的大意就是求 第k短路, 存在就输出, 不存在就输出-1。 注意当起点和终点一致的时候,需要k++, 因为在OUTPUT时提到the length (time required) to welcome Pri....
分类:
其他好文 时间:
2015-08-09 22:01:38
阅读次数:
181
C4D创建面之后,无法进行自动化法线对齐,尝试用python去写一个。import c4d#Welcome to the world of Pythondef main(): state=c4d.BaseContainer() inputState = c4d.gui.GetInputS...
分类:
编程语言 时间:
2015-08-09 13:55:37
阅读次数:
252
二:response.sendRedirect(request.getContextPath() + "/welcome.jsp"); //response.sendRedirect()和request.getRequestDispatcher().forward()均可以实现跳转,并且也存在一些区别,其中一点就是在sendRedirect()中必须通过request.getContextPath()来获取项目的跟目录,不然会出现The requested resource is not available...
分类:
其他好文 时间:
2015-08-08 19:58:18
阅读次数:
103
1. standalone.xml中修改: enable-welcome-root="true" 改为 false <socket-binding name="http" port="80"/> 2. 在第一个项目中添加jboss-web.xml(和web.xml一个目录)。 <?xml version=‘1.0‘ encoding=‘UTF-...
分类:
其他好文 时间:
2015-08-08 10:37:23
阅读次数:
184
可能原因:1.index.html不存在2.文件目录权限问题解决方法root /Users/wangxianxi/html; index index.html;将index.html文件放入workspace根目录下Welcome to nginx!.....homebrew...
分类:
其他好文 时间:
2015-08-07 00:19:57
阅读次数:
90
需要的jar包文件:
index.jsp源码:
请输入您的注册信息
请输入您的注册信息
welcome.jsp源码:
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServ...
分类:
其他好文 时间:
2015-08-06 22:26:35
阅读次数:
169
JapanTime Limit:1000MSMemory Limit:65536KTotal Submissions:23111Accepted:6232DescriptionJapan plans to welcome the ACM ICPC World Finals and a lot of ...
分类:
编程语言 时间:
2015-08-04 13:23:49
阅读次数:
208