WEB开发网      婵犻潧鍊婚弲顐︽偟椤栨稓闄勯柦妯侯槸閻庤霉濠婂骸浜剧紒杈ㄥ笚閹峰懘鎮╅崹顐ゆ殸婵炴垶鎸撮崑鎾趁归悩鐑橆棄闁搞劌瀛╃粋宥夘敃閿濆柊锕傛煙鐎涙ê鐏f繝濠冨灴閹啴宕熼鍡╀紘婵炲濮惧Λ鍕叏閳哄懎绀夋繛鎴濈-楠炪垽鎮归崶褍妲婚柛銊ュ缁傚秹鏁撻敓锟� ---闂佹寧娲╅幏锟�
开发学院软件开发Java struts-2.1.8.1+jquery-1.3.2+spring-framework-2... 阅读

struts-2.1.8.1+jquery-1.3.2+spring-framework-2.5.6集成

 2009-12-23 00:00:00 来源:WEB开发网 闂侀潧妫撮幏锟�闂佸憡鍨电换鎰版儍椤掑倵鍋撳☉娆嶄沪缂傚稄鎷�婵犫拃鍛粶闁靛洤娲ㄩ埀顒佺⊕閵囩偟绱為敓锟�闂侀潧妫撮幏锟�  闂佺ǹ绻楀▍鏇㈠极閻愬搫绾ч柕濠忕細閼割亜顪冪€n剙浠ф繛鍫熷灥椤曘儵顢欓悡搴ば�
核心提示: 没有与数据库交互,直接判断了一下字符串.呵呵 .留作Hibernate来完成吧.5.接下来当然要看下web.xml是怎么配置struts和spring的:代码1<?xmlversion="1.0"encoding="UTF-8"?>2<w

没有与数据库交互,直接判断了一下字符串.呵呵 .留作Hibernate来完成吧.

5.接下来当然要看下web.xml是怎么配置struts和spring的:

代码

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
 3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 5     <!-- 配置struts2拦截器 -->
 6     <filter>
 7         <filter-name>struts2</filter-name>
 8         <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
 9     </filter>
10     <filter-mapping>
11         <filter-name>struts2</filter-name>
12         <url-pattern>/*</url-pattern>
13     </filter-mapping>
14     <!-- 配置默认首页 -->
15     <welcome-file-list>
16         <welcome-file>index.jsp</welcome-file>
17     </welcome-file-list>
18     <login-config>
19         <auth-method>BASIC</auth-method>
20     </login-config>
21     <!-- 配置spring监听 -->
22     <listener>
23         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
24     </listener>
25     <context-param>
26         <param-name>contextConfigLocation</param-name>
27         <param-value>classpath:applicationContext.xml</param-value>
28     </context-param>
29 </web-app>

上一页  1 2 3 4 5 6  下一页

Tags:struts jquery spring

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接