![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web应用
pyjfoot
这个作者很懒,什么都没留下…
展开
-
struts1 action线程安全问题
Struts1的action是单例的,也就是线程不安全的。假设在理想的状态下,如果,两个人同时访问了某个action的同一个方法,是不是会出错呢?1. 全局变量会有影响2. 局部变量没有影响struts user guide里有: Only Use Local Variables - The most important principle that aids in thr原创 2012-12-15 12:27:18 · 963 阅读 · 0 评论 -
java web的转发与重定向
转发和重定向的区别一、使用方法转发:request.getRequestDispatcher("success.jsp").forward(request,response);重定向:response.sendRedirect("success.jsp");二、区别1.转发在服务器端完成的;重定向是在客户端完成的2.转发的速度快;重定向速度慢3.转发的是同一次请求;重定向原创 2012-12-15 11:51:39 · 25091 阅读 · 0 评论 -
Unresolved compilation problem
今天使用MyEclipse做Java web的项目,出现了未解析的编译错误。错误如下Servlet.service() for servlet [jsp] in context with path [/CityInfor1.2] threw exception [An exception occurred processing JSP page /GetBuildingInfor.jsp at原创 2012-12-18 21:06:28 · 44149 阅读 · 1 评论 -
cannot be resolved to a type
在JSP页面出现下面的问题An error occurred at line: 210 in the jsp file: /AddBuildingAction.jspAddBuilding cannot be resolved207: building.setVariableInfolNumber(variableNumberInt);208: building.setVari原创 2012-12-18 21:15:34 · 5793 阅读 · 0 评论