05 2010 档案
摘要:水平的滚动条没有了,现在也想把垂直的滚动条也去掉。搞了很久了一直没找到好的解决方法。这是基于JWebBrowser 的swing小程序。Java codeimport java.awt.BorderLayout;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JScrollPane;import javax.swing.ScrollPaneConstants;import javax.swing.SwingUtilities;import chrriis.common.UIUtils;import c
阅读全文
摘要:Solving Tomcat OutOfMemoryError: Heap space and PermGen spaceTomcat March 12th, 2009It’s quite common to run In memory problems when running some big Java EE application on a Tomcat server.Some of the most commmon errors are like the following ones.This is about a full Heap space:SEVERE: Servlet.ser
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23
阅读全文
摘要:在《Pragmatic Ajax A Web 2.0 Primer 》中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下:0: (Uninitialized) the send( ) method has not yet been invoked.1: (Loading) the send( ) method has been invoked, request in progress.2: (Loaded) the send( ) method has completed, entire response received.3: (Interactive) the resp
阅读全文
摘要:在JSP里,获取客户端的IP地址的方法是:request.getRemoteAddr(),这种方法在大部分情况下都是有效的。但是在通过了Apache,Squid等反向代理软件就不能获取到客户端的真实IP地址了。 Tag:Java 客户端 真实IP地址 在JSP里,获取客户端的IP地址的方法是:request.getRemoteAddr(),这种方法在大部分情况下都是有效的。但是在通过了Apache,Squid等反向代理软件就不能获取到客户端的真实IP地址了。 如果使用了反向代理软件,将http://192.168.1.110:2046/ 的URL反向代理为 http:...
阅读全文
摘要:下面是网络流行的两种方式,推荐使用IOC这种。package com.alpha.test; import java.util.Map; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.in...
阅读全文

浙公网安备 33010602011771号