ITeye博客

yaozuodaoforfly的博客

yaozuodaoforfly · 共 139 篇文章

jQuery选择器-1

4.子选择器: $("mix>mix"),这个放在后代选择器后面是为了和它做对比.子选择器只能选择第 一代子代.不处理深层嵌套.例子: $("div>.test") <div><p class="test"></p></div>对这里的p段落标签有效.但对 <div><p><p class="test"></p></p></div>对这里的p段落标签无效,这里要用 $("div .test) 5.临近选择器: $("mix+mix"),选取下一个兄弟节点.如:$("div +#test"),id为test的的节点必 须是div的下一个兄弟节点. <div></div><p id="test"…

2014-07-18 16:12 · jQuery · 评论(0)

jQuery选择器

$的选择器部分: 凡是运用$,其返回值是一个object $选择器主要用于选择标签.基本用法是同css的选择器.但是,很让人兴奋的是,他 支持常见的浏览器,而css中很多选择器是IE6所不支持的. 1.基本选择器(3种): $("标签名"),如$("p")是选取了所有的p标签节点 $("#id名"),如$("#test")是选取了id为test的标签节点 $(".class名"),如$(".test")是选取了所有class为test的标签节点 上面的$("标签名")和$(".class名")返回的都是所有满足的节点,至于进一步筛 选可以添加一些函数,如eq,gt,lt等等. 2.组选择器:…

2014-07-18 16:10 · 评论(0)

hibernate-Property

Property name Purpose hibernate.dialect The classname of a Hibernate org.hibernate.dialect.Dialect which allows Hibernate to generate SQL optimized for a particular relational database. e.g. full.classname.of.Dialect In most cases Hibernate will actually be able to choose the correct org.hibernate.…

2014-07-17 13:03 · 评论(0)

Wildcard-5

Advanced Wildcards From 2.1.9+ regular expressions can be defined defined in the action name. To use this form of wild card, the following constants must be set: <constant name="struts.enable.SlashesInActionNames" value="true"/> <constant name="struts.mapper.alwaysSelectFullNamespace" value="false"…

2014-06-27 11:39 · strusts2 · 评论(0)

Wildcard-6

The regular expression can also be in the form {FIELD_NAME:REGULAR_EXPRESSION}. The regular expression is a normal Java regular expression. For example: <package name="books" extends="struts-default" namespace="/"> <action name="/{type}/{author:.+}/list" class="example.ListBooksAction"> <result>/bo…

2014-06-27 11:39 · strusts2 · 评论(0)

struts 动态方法调用

<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant> /project/chartInfo!getDevelopProgress.action

2014-06-27 10:22 · strusts2 · 评论(0)

Wildcard-4

Parameters after the action name To use parameters in the URL, after the action name, make sure this is set: <constant name="struts.enable.SlashesInActionNames" value="true"/> <constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/> Then the action mapping will look like: <package n…

2014-06-24 20:15 · strusts2 · 评论(0)

Wildcard-3

Parameters in namespaces From Struts 2.1+ namespace patterns can be extracted as request parameters and bound to the action. To enable this feature, set the following constant in struts.xml: <constant name="struts.patternMatcher" value="namedVariable"/> With that in place, namespace definitions can…

2014-06-24 20:15 · strusts2 · 评论(0)

Wildcard-2

Wildcard patterns can contain one or more of the following special tokens: * Matches zero or more characters excluding the slash ('/') character. ** Matches zero or more characters including the slash ('/') character. \character The backslash character is used as an escape sequence. Thus '\*' match…

2014-06-24 20:14 · strusts2 · 评论(0)

Wildcards

As an application grows in size, so will the number of action mappings. Wildcards can be used to combine similar mappings into one more generic mapping. The best way to explain wildcards is to show an example and walk through how it works. This example modifies a conventional mapping to use wildcar…

2014-06-24 20:14 · strusts2 · 评论(0)

RegexPatternMatcher

public class RegexPatternMatcher extends Object implements PatternMatcher<RegexPatternMatcherExpression> Allows regular expressions to be used in action names. The regular expressions can be in the form {FIELD_NAME} or {FIELD_NAME:REGULAR_EXPRESSION}. For example: <action name="/{bio:.+}/test/{name…

2014-06-24 19:34 · strusts2 · 评论(0)

package配置 Global Results

Global Results Most often, results are nested with the action element. But some results apply to multiple actions. In a secure application, a client might try to access a page without being authorized, and many actions may need access to a "logon" result. If actions need to share results, a set of …

2014-06-20 16:43 · strusts2 · 评论(0)

package配置

abstract 标识这个package的定义是一个抽象定义,也就是允许他仅包含声明式的定义,而不需要在package定义中包含action的定义。 extends a,b,c 通过使用extends,你可以指定本package继承另外一个package的所有的配置。当某个package继承了另外一个package的所有配置,那么你就无需对父package中已经声明过的配置定义做再次的定义。 同时,如果重复定义父package中已声明过的配置定义,那么这些重复定义声明将覆盖父package中的相关定义。 它只会把c做为父节点 public Builder addParent(PackageC…

2014-06-20 15:50 · strusts2 · 评论(0)

struts-web配置

<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5"> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> <init-param> …

2014-06-19 10:19 · strusts2 · 评论(0)

strusts 常量配置

struts.multipart.maxSize 文件上传大小

2014-04-24 20:20 · strusts2 · 评论(0)