【卜維丰】用 CSS3 美化表單分組(fieldset)
fieldset { |
02 |
border : 0 ; |
03 |
padding : 10px ; |
04 |
margin-bottom : |
05 |
10px ; background : #EEE ; |
06 |
07 |
border-radius: 8px ; |
08 |
-moz-border-radius: 8px ; |
09 |
-webkit-border-radius: 8px ; |
10 |
11 |
background :-webkit-liner-gradient( top , #EEEEEE , #FFFFFF ); |
12 |
background :linear-gradient( top , #EFEFEF , #FFFFFF ); |
13 |
14 |
box-shadow: 3px 3px 10px #666 ; |
15 |
-moz-box-shadow: 3px 3px 10px #666 ; |
16 |
-webkit-box-shadow: 3px 3px 10px #666 ; |
17 |
18 |
position : relative ; |
19 |
} |
20 |
21 |
legend { |
22 |
padding : 5px 10px ; |
23 |
background-color : #4F709F ; |
24 |
color : #FFF ; |
25 |
26 |
border-radius: 3px ; |
27 |
-moz-border-radius: 3px ; |
28 |
-webkit-border-radius: 3px ; |
29 |
30 |
box-shadow: 2px 2px 4px #666 ; |
31 |
-moz-box-shadow: 2px 2px 4px #666 ; |
32 |
-webkit-box-shadow: 2px 2px 4px #666 ; |
33 |
34 |
position : absolute ; |
35 |
left : 10px ; top : -11px ; |
36 |
} |
spring + XFire 构建webservic 客户端根据服务地址创建客户端调用 - yanwenhan - ITeye技术网站
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
- <beans>
- <bean id="baseService" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="false" abstract="true">
- <property name="lookupServiceOnStartup" value="false" />
- </bean>
- <bean id="echoService" parent="baseService">
- <property name="serviceClass">
- <value>com.hyw.example.Echo</value>
- </property>
- <property name="wsdlDocumentUrl">
- <value>http://localhost:8080/MyWebService/EchoService?wsdl</value>
- </property>
- </bean>
- <bean id="userService" parent="baseService">
- <property name="serviceClass">
- <value>com.hyw.example.UserService</value>
- </property>
- <property name="wsdlDocumentUrl">
- <value>http://localhost:8080/MyWebService/UserService?wsdl</value>
- </property>
- </bean>
- </beans>
多个dwr.xml文件的配置 - imticg - ITeye技术网站
多个dwr.xml文件的配置分为如下的几种情况:
一个servlet对多个dwr.xml文件
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>config-1</param-name>
<param-value>WEB-INF/dwr1.xml</param-value>
</init-param>
<init-param>
<param-name>config-2</param-name>
<param-value>WEB-INF/dwr2.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
在这种配置下,param-name的值必须以config开头。
多个servlet对多个dwr.xml文件的情况
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>dwr-invoker1</servlet-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>config-admin</param-name>
<param-value>WEB-INF/dwr1.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>dwr-invoker1</servlet-name>
<url-pattern>/dwr1/*</url-pattern>
</servlet-mapping>
在这种情况下,我们可以根据J2EE security来控制权限,针对不同url,加不同的角色