- 博客(6)
- 资源 (7)
- 收藏
- 关注

原创 java.lang.IllegalStateException: getWriter() has already been called for this response
对于getOutputStream(),api里是这样说的:Either this method or getWriter() may be called to write the body, not both. 也就是getOutputStream()和getWriter()只能使用一个,我把代码里的response.getOutputStream()全部删之后,统一使用response.getWriter()作为输出流,问题解决。全部代码如下response.setContentTy
2011-03-31 01:02:00
6347

原创 VC下获得显卡信息
主要通过Direct 3D的几个函数完成的,包括Direct3DCreate9(),GetAdapterCount(),GetAdapterIdentifier(). 其中GetAdapterIdentifier()的描述如下IDirect3D9::GetAdapterIdentifierDescribes the physical display adapters pres
2009-02-22 19:58:00
6720
1
原创 需要学习的java知识
<br />多线程:<br /><br />1:关键词:volatile、synchronized<br /><br />2:传统的线程 API:java.lang.Thread, java.lang.Runnable, java.lang.ThreadGroup, Object#wait, Object#notify, Object#notifyAll<br /><br />3:JDK 5 并发包(java.util.concurrent)API:线程池、执行器、信号量、倒计数门闩、并发集
2010-08-29 20:56:00
550
原创 welcome-file-list报404错误的解决办法
<br />现在的框架越来越多了;<br />这也使我们的<welcome-file-list/>配置变的不是那么尽如人意了;<br />如struts需要*.do,JSF需要*.face等等<br />大多数的情况下,我们一般都会有<welcome-file>index.jsp</welcome-file>这么一个欢迎页面;<br />通过index.jsp进行一次跳转;<br />之后才能跳转到需要的页面上;<br />如果我们直接将*.do,或者*.face等配置到<welcome-file>中又会导
2010-07-02 00:17:00
3000
转载 火狐下返回与键盘回车响应的实现
返回链接返回 响应回车键document.onkeydown = function(e){ var theEvent = window.event || e; var code = theEvent.keyCode || theEvent.which; if(code == 13) { checkLogin();
2009-10-08 11:30:00
569
原创 SHFileOperation删除和拷贝文件(夹)
BOOL DeleteFolder(LPCTSTR lpszPath) { SHFILEOPSTRUCT FileOp; ZeroMemory((void*)&FileOp,sizeof(SHFILEOPSTRUCT)); FileOp.fFlags = FOF_NOCONFIRMATION; FileOp.hNameMappings = NULL; FileOp
2009-04-19 12:53:00
692
vc通过webservice获取公网ip
2010-05-27
VC获取外网IP VC获取公网IP
2008-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人