<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>曾华水的博客 &#187; Jsp</title>
	<atom:link href="http://www.mrzeng.com/tag/jsp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mrzeng.com</link>
	<description>NO.1 or Nothing</description>
	<lastBuildDate>Wed, 07 Sep 2011 12:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>从tomcat移植到jboss发生的jsp错误</title>
		<link>http://www.mrzeng.com/post/difference-between-jboss-and-tomcat.html</link>
		<comments>http://www.mrzeng.com/post/difference-between-jboss-and-tomcat.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 12:26:34 +0000</pubDate>
		<dc:creator>zenghuashui</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Jboss]]></category>
		<category><![CDATA[Jsp]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.mrzeng.com/?p=116</guid>
		<description><![CDATA[最近发现从tomcat移植到jboss会有一点差别，尽管jboss的web用的tomcat，但还是有一点差别的。 1、list的问题 jboss的list不能使用泛型，即list不能写成list，否则会报错； 2、pageContent.setAttribute(String,Object)的问题。 jboss除了String类型，例如int，boolean等类型不能写入，不然会出现类似的错误 The method setAttribute(String, Object, int) in the type JspContext is not applicable for the arguments (String, int) 而要把Object写成new Boolean（boolean），new Integer（int）。这样就不会报错。 随机日志jqGrid基础学习：1认识jqGrid1、在项目中，使用一款合适的表格软件会让开发事半功倍，jqGrid提供搜索、分页功能，添加、编辑、删除和搜索表中记录等，是一款优秀的Grid的。 2、jqGrid是基于jQuery，作为jQuery的插件存在的，所以，使用前必须先导入jQuery包,同时，它支持Query的UI theme（from3.6）。 3、支持数组、json、xml、本地等格式作为数据源，一般情况下均使用jso...写在感恩节前夕这是个西方的节日，无论是什么节日，都是一种提醒。 每天要感谢父母，感谢给自己生命： 每天要感谢家人，感谢给自己快乐； 每天要感谢同事，感谢给自己帮助。 最近看了一部电影《love actually》，中文翻译真爱至上，里面的那段话说得很好： 每当我对世界的现状感到担忧，我就会想到希思罗机场的接机厅。很多人都开始觉得我们生活在仇恨与贪婪中，但我并不这么认为。在我看来，爱无处...IE8下表单输入框及其输入的字很小的解决办法前段时间，一位朋友出现在表单填写中发现输入框变形，并且输入的字很小。一般出现这种情况的有以下2种： 1、windows使用了第三方主题。将主题设置为windows默认，重启IE，再看下是否还会出现这种情况。 2、检查ie的Internet选项中的辅助工具中是否使用了第三方样式。 ...jqGrid基础学习：2第一个jqGrid上一节已经将jqGrid的框架架了起来。这一节将进行jqGrid的配置文件的编写。 接下来，我们先将属性写好，再来说明下个属性的意思。 jQuery(document).ready(function(){ jQuery("#list").jqGrid({ url:'admin/json/jsondata.action', datatype: 'jso...Vista中无法使用localhost访问本机的解决方法最近，买了个笔记本，装的是vista，奇怪的是，装上服务器套件后，死活不能用localhost访问，但127.0.0.1可以。搜索了一下，解决办法如下： 找到WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS 文件。HOSTS是文件名，这个文件没有扩展名。 用记事本打开它，发现多了一个 ::1 localhost 删了它，保存。问题...]]></description>
			<content:encoded><![CDATA[<p>最近发现从tomcat移植到jboss会有一点差别，尽管jboss的web用的tomcat，但还是有一点差别的。<br />
 1、list的问题<br />
jboss的list不能使用泛型，即list不能写成list，否则会报错；<br />
 2、pageContent.setAttribute(String,Object)的问题。<br />
jboss除了String类型，例如int，boolean等类型不能写入，不然会出现类似的错误</p>
<pre class="prettyprint">
The method setAttribute(String, Object, int) in the type JspContext is not applicable for the arguments (String, int)
 </pre>
<p>而要把Object写成new Boolean（boolean），new Integer（int）。这样就不会报错。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://www.mrzeng.com/post/nginx-rewrite-in-common-systems.html" title="常用的PHP系统在nginx下的伪静态规则">常用的PHP系统在nginx下的伪静态规则</a><br /><small>常用的系统在nginx下的伪静态规则。


CMS系统
 
PHPCMS： 
location / { 
###以下为PHPCMS 伪静态化rewrite规则 
rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3; 
rewrite ^(.*)list-([0-9]+)-([0-9]+)...</small></li><li><a href="http://www.mrzeng.com/post/windows-nginx-php.html" title="在windows上安装nginx+php环境">在windows上安装nginx+php环境</a><br /><small>目前，nginx以其独特的性能越来越博得喜爱，LNMP环境逐步代替了LAMP环境。Nginx从v0.7.52也开始支持windows环境。接下来简要介绍些安装方法。

1、准备好安装软件
    Nginx ：我们选用最新的稳定版本0.7.65。http://nginx.org/download/nginx-0.7.65.zip
      PHP:http://www.php.net/g...</small></li><li><a href="http://www.mrzeng.com/post/jqgrid_base_study_8.html" title="jqGrid基础学习：8jqGrid中在导航条使用按钮">jqGrid基础学习：8jqGrid中在导航条使用按钮</a><br /><small>jqGrid中可以再导航条上设置按钮，其中jqGrid已经默认设置了一些按钮，此外，用户也可以自定义自己的按钮。

使用默认的方法
系统中默认的按钮主要是对数据进行CRUD的操作的按钮。方法如下

jQuery("#list").jqGrid('navGrid','#pager',{edit:true,add:true,del:true,view:true},{
//这里可以指定edi...</small></li><li><a href="http://www.mrzeng.com/post/linux-change-ip-solution.html" title="Linux中修改ip的办法">Linux中修改ip的办法</a><br /><small>切换到root账户下

切换到/etc/sysconfig/network-scripts/目录下；

编辑网卡编码：vi ifcfg-ethX X为第X-1个网卡。

DEVICE=ethX                                        设备名称
ONBOOT=yes                                        计算...</small></li><li><a href="http://www.mrzeng.com/post/json-utils.html" title="Json工具类">Json工具类</a><br /><small>jqGrid在处理多字段查询的时候要使用json数据，于是，参考了网上的一些写法，写了一个json工具类。其中那个时间格式化，是为了解决json在处理java的java.util.Date出现的问题。

代码如下：

@SuppressWarnings("unchecked")
public class JsonUtils {

	

	/**
	 * 从一个JSON 对象字符...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mrzeng.com/post/difference-between-jboss-and-tomcat.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

