2010-04-19

Sybase问题(转)

在使用Sybase时,如果出现The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'tempdb' database.错误时,
可以在tempbd上选中以下两个选项。

sp_dboption tempdb, 'ddl in tran', true

sp_dboption tempdb, 'allow nulls by default', true


原贴:
http://darmee.itpub.net/post/12147/495080

2010-04-03

在JSP中使用${xxx}没有效果

在学习Struts2过程中,使用例子中的

<s:url action="hello" var="helloLink">
<s:param name="userName">Bruce Phillips</s:param>
</s:url>
<p><a href="${helloLink}">Hello Bruce Phillips</a></p>

可是在结果中,总是
<a href="view-source:http://localhost:8080/struts2/${helloLink}">${helloLink}</a>
以为是Struts2配置或其它问题,找了好久都没有找到原因,后来才搞清楚,因为我使用Maven的maven-archetype-webapp生成的web项目,这个项目生成web.xml使用的是2.3web配置,换成2.4就没有问题了。原因2.3一般是不支持EL表达式的。