<<上篇 | 首页 | 下篇>>

【卜維丰】用 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技术网站

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">  
  3. <beans>  
  4.     <bean id="baseService" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="false" abstract="true">  
  5.         <property name="lookupServiceOnStartup" value="false" />
  6.     </bean>
  7.     <bean id="echoService" parent="baseService">  
  8.         <property name="serviceClass">  
  9.             <value>com.hyw.example.Echo</value>  
  10.         </property>  
  11.         <property name="wsdlDocumentUrl">  
  12.             <value>http://localhost:8080/MyWebService/EchoService?wsdl</value>  
  13.         </property>  
  14.     </bean>  
  15.     <bean id="userService" parent="baseService">  
  16.         <property name="serviceClass">  
  17.             <value>com.hyw.example.UserService</value>  
  18.         </property>  
  19.         <property name="wsdlDocumentUrl">  
  20.             <value>http://localhost:8080/MyWebService/UserService?wsdl</value>  
  21.         </property>  
  22.     </bean>  
  23. </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,加不同的角色

阅读全文……

标签 :