- 浏览: 151229 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
hx0637:
楼主!小弟要面临面试了,能否指导下小弟?
面试 深圳一家公司的 -
kljismi:
你好,我现在正在开这项目的代码,但是我不明白@Privileg ...
权限管理模块分析 -
yzhw:
终于找到了
ImageSizer.java -
sunloveny:
国
struts国际化 -
jackotty:
谢谢楼主的分享
struts validator验证框架
web.xml
struts-config.xml
validator-rules.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>encoding</filter-name> <filter-class> org.lxh.myzngt.filter.EncodingFilter </filter-class> <init-param> <param-name>charset</param-name> <param-value>gbk</param-value> </init-param> </filter> <filter-mapping> <filter-name>encoding</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter> <filter-name>userlogin</filter-name> <filter-class> org.lxh.myzngt.filter.UserLoginFilter </filter-class> </filter> <filter-mapping> <filter-name>userlogin</filter-name> <url-pattern>/jsp/user/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>userlogin</filter-name> <url-pattern>/jsp/ques/*</url-pattern> </filter-mapping> <filter> <filter-name>adminlogin</filter-name> <filter-class> org.lxh.myzngt.filter.AdminLoginFilter </filter-class> </filter> <filter-mapping> <filter-name>adminlogin</filter-name> <url-pattern>/jsp/admin/*</url-pattern> </filter-mapping> <filter> <filter-name>opensession</filter-name> <filter-class> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter </filter-class> </filter> <filter-mapping> <filter-name>opensession</filter-name> <url-pattern>*.do</url-pattern> </filter-mapping> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/classes/applicationContext.xml </param-value> </context-param> <servlet> <servlet-name>context</servlet-name> <servlet-class> org.springframework.web.context.ContextLoaderServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>action</servlet-name> <servlet-class> org.apache.struts.action.ActionServlet </servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> </web-app>
struts-config.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> <struts-config> <data-sources /> <form-beans> <form-bean name="userForm" type="org.lxh.myzngt.struts.form.UserForm" /> <form-bean name="questionForm" type="org.lxh.myzngt.struts.form.QuestionForm" /> <form-bean name="answerForm" type="org.lxh.myzngt.struts.form.AnswerForm" /> <form-bean name="itemForm" type="org.lxh.myzngt.struts.form.ItemForm" /> <form-bean name="indexForm" type="org.apache.struts.action.DynaActionForm" /> <form-bean name="showForm" type="org.apache.struts.action.DynaActionForm" /> <form-bean name="userinfoForm" type="org.apache.struts.action.DynaActionForm" /> <form-bean name="adminForm" type="org.lxh.myzngt.struts.form.AdminForm" /> <form-bean name="adminuserForm" type="org.lxh.myzngt.struts.form.AdminuserForm" /> <form-bean name="adminquestionForm" type="org.apache.struts.action.DynaActionForm" /> <form-bean name="adminitemForm" type="org.lxh.myzngt.struts.form.AdminitemForm" /> <form-bean name="adminsubitemForm" type="org.lxh.myzngt.struts.form.AdminsubitemForm" /> <form-bean name="adminloginForm" type="org.lxh.myzngt.struts.form.AdminloginForm" /> </form-beans> <global-exceptions /> <global-forwards /> <action-mappings> <action attribute="userForm" input="/jsp/errors.jsp" name="userForm" parameter="status" path="/jsp/user" scope="request" type="org.lxh.myzngt.struts.action.UserAction"> <forward name="registersuccess" path="/jsp/index.do?status=list"> </forward> <forward name="registerfailure" path="/jsp/register.jsp"></forward> <forward name="loginsuccess" path="/jsp/index.do?status=list"> </forward> <forward name="loginfailure" path="/jsp/login.jsp"></forward> <forward name="exists" path="/jsp/updatepwd.jsp"></forward> <forward name="notexists" path="/jsp/forgetpwd.jsp"></forward> <forward name="updatepwddo" path="/jsp/updatepwd_do.jsp"></forward> <forward name="userinfo" path="/jsp/user/userinfo.jsp"></forward> <forward name="updatedo" path="/jsp/user/update_do.jsp"></forward> </action> <action attribute="questionForm" input="/jsp/errors.jsp" name="questionForm" parameter="status" path="/jsp/ques/question" scope="request" type="org.lxh.myzngt.struts.action.QuestionAction"> <forward name="insertdo" path="/jsp/ques/question_do.jsp"></forward> </action> <action attribute="answerForm" input="/jsp/errors.jsp" name="answerForm" parameter="status" path="/jsp/ques/answer" scope="request" type="org.lxh.myzngt.struts.action.AnswerAction"> <forward name="insertdo" path="/jsp/ques/answer_do.jsp"></forward> </action> <action attribute="itemForm" input="/jsp/errors.jsp" name="itemForm" parameter="status" path="/jsp/ques/item" scope="request" type="org.lxh.myzngt.struts.action.ItemAction"> <forward name="question" path="/jsp/ques/question.jsp"></forward> </action> <action attribute="indexForm" input="/jsp/errors.jsp" name="indexForm" parameter="status" path="/jsp/index" scope="request" type="org.lxh.myzngt.struts.action.IndexAction"> <forward name="indexdo" path="/jsp/index.jsp"></forward> </action> <action attribute="showForm" input="/jsp/errors.jsp" name="showForm" parameter="status" path="/jsp/show" scope="request" type="org.lxh.myzngt.struts.action.ShowAction"> <forward name="showquestion" path="/jsp/question_show.jsp"> </forward> <forward name="showlist" path="/jsp/list_question.jsp"></forward> </action> <action attribute="userinfoForm" input="/jsp/errors.jsp" name="userinfoForm" parameter="status" path="/jsp/user/userinfo" scope="request" type="org.lxh.myzngt.struts.action.UserinfoAction"> <forward name="listmyquestion" path="/jsp/user/list_myquestion.jsp"> </forward> <forward name="listanswer" path="/jsp/user/list_answer.jsp"> </forward> <forward name="listmyaccept" path="/jsp/user/list_myaccept.jsp"> </forward> <forward name="listmyquestionanswer" path="/jsp/user/list_myquestionanswer.jsp"> </forward> <forward name="answerdo" path="/jsp/user/accept_answer.jsp"> </forward> <forward name="updatequestiondo" path="/jsp/user/question_update_do.jsp"> </forward> </action> <action attribute="adminForm" input="/jsp/errors.jsp" name="adminForm" parameter="status" path="/jsp/admin/admin" scope="request" type="org.lxh.myzngt.struts.action.AdminAction"> <forward name="insertdo" path="/jsp/admin/admin.do?status=list"> </forward> <forward name="updatepwddo" path="/jsp/admin/admin_updatepwd_do.jsp"> </forward> <forward name="updatepwdfailure" path="/jsp/admin/admin_updatepwd.jsp"> </forward> <forward name="deletedo" path="/jsp/admin/admin.do?status=list"> </forward> <forward name="list" path="/jsp/admin/admin_list.jsp"></forward> </action> <action attribute="adminuserForm" input="/jsp/errors.jsp" name="adminuserForm" parameter="status" path="/jsp/admin/adminuser" scope="request" type="org.lxh.myzngt.struts.action.AdminuserAction"> <forward name="userlist" path="/jsp/admin/user_list.jsp"></forward> <forward name="list" path="/jsp/admin/adminuser.do?status=list"> </forward> </action> <action attribute="adminquestionForm" input="/jsp/errors.jsp" name="adminquestionForm" parameter="status" path="/jsp/admin/adminquestion" scope="request" type="org.lxh.myzngt.struts.action.AdminquestionAction"> <forward name="questionlist" path="/jsp/admin/question_list.jsp"> </forward> <forward name="list" path="/jsp/admin/adminquestion.do?status=list"> </forward> </action> <action attribute="adminitemForm" input="/jsp/errors.jsp" name="adminitemForm" parameter="status" path="/jsp/admin/adminitem" scope="request" type="org.lxh.myzngt.struts.action.AdminitemAction"> <forward name="itemlist" path="/jsp/admin/item_list.jsp"></forward> <forward name="list" path="/jsp/admin/adminitem.do?status=list"> </forward> <forward name="subitemlist" path="/jsp/admin/subitem_list.jsp"> </forward> </action> <action attribute="adminsubitemForm" input="/jsp/errors.jsp" name="adminsubitemForm" parameter="status" path="/jsp/admin/adminsubitem" scope="request" type="org.lxh.myzngt.struts.action.AdminsubitemAction"> <forward name="subitemlist" path="/jsp/admin/subitem_list.jsp"> </forward> </action> <action attribute="adminloginForm" input="/jsp/errors.jsp" name="adminloginForm" parameter="status" path="/jsp/adminlogin" scope="request" type="org.lxh.myzngt.struts.action.AdminloginAction"> <forward name="loginsuccess" path="/jsp/goadmin.htm"> </forward> <forward name="loginfailure" path="/jsp/admin_login.jsp"> </forward> </action> </action-mappings> <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"> </controller> <message-resources parameter="org.lxh.myzngt.struts.ApplicationResources" /> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" /> </plug-in> </struts-config>
validator-rules.xml
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> <!-- $Id: validator-rules.xml,v 1.1.2.1 2006/07/01 20:50:46 eugene-proddev Exp $ This file contains the default Struts Validator pluggable validator definitions. It should be placed somewhere under /WEB-INF and referenced in the struts-config.xml under the plug-in element for the ValidatorPlugIn. <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/> </plug-in> These are the default error messages associated with each validator defined in this file. They should be added to your projects ApplicationResources.properties file or you can associate new ones by modifying the pluggable validators msg attributes in this file. # Struts Validator Error Messages errors.required={0} is required. errors.minlength={0} can not be less than {1} characters. errors.maxlength={0} can not be greater than {1} characters. errors.invalid={0} is invalid. errors.byte={0} must be a byte. errors.short={0} must be a short. errors.integer={0} must be an integer. errors.long={0} must be a long. errors.float={0} must be a float. errors.double={0} must be a double. errors.date={0} is not a date. errors.range={0} is not in the range {1} through {2}. errors.creditcard={0} is an invalid credit card number. errors.email={0} is an invalid e-mail address. Note: Starting in Struts 1.2.0 the default javascript definitions have been consolidated to commons-validator. The default can be overridden by supplying a <javascript> element with a CDATA section, just as in struts 1.1. --> <form-validation> <global> <validator name="required" classname="org.apache.struts.validator.FieldChecks" method="validateRequired" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" msg="errors.required"/> <validator name="requiredif" classname="org.apache.struts.validator.FieldChecks" method="validateRequiredIf" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" msg="errors.required"/> <validator name="validwhen" msg="errors.required" classname="org.apache.struts.validator.validwhen.ValidWhen" method="validateValidWhen" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest"/> <validator name="minlength" classname="org.apache.struts.validator.FieldChecks" method="validateMinLength" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.minlength" jsFunction="org.apache.commons.validator.javascript.validateMinLength"/> <validator name="maxlength" classname="org.apache.struts.validator.FieldChecks" method="validateMaxLength" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.maxlength" jsFunction="org.apache.commons.validator.javascript.validateMaxLength"/> <validator name="mask" classname="org.apache.struts.validator.FieldChecks" method="validateMask" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.invalid"/> <validator name="byte" classname="org.apache.struts.validator.FieldChecks" method="validateByte" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.byte" jsFunctionName="ByteValidations"/> <validator name="short" classname="org.apache.struts.validator.FieldChecks" method="validateShort" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.short" jsFunctionName="ShortValidations"/> <validator name="integer" classname="org.apache.struts.validator.FieldChecks" method="validateInteger" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.integer" jsFunctionName="IntegerValidations"/> <validator name="long" classname="org.apache.struts.validator.FieldChecks" method="validateLong" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.long"/> <validator name="float" classname="org.apache.struts.validator.FieldChecks" method="validateFloat" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.float" jsFunctionName="FloatValidations"/> <validator name="double" classname="org.apache.struts.validator.FieldChecks" method="validateDouble" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.double"/> <validator name="date" classname="org.apache.struts.validator.FieldChecks" method="validateDate" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.date" jsFunctionName="DateValidations"/> <validator name="intRange" classname="org.apache.struts.validator.FieldChecks" method="validateIntRange" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="integer" msg="errors.range"/> <validator name="floatRange" classname="org.apache.struts.validator.FieldChecks" method="validateFloatRange" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="float" msg="errors.range"/> <validator name="doubleRange" classname="org.apache.struts.validator.FieldChecks" method="validateDoubleRange" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="double" msg="errors.range"/> <validator name="creditCard" classname="org.apache.struts.validator.FieldChecks" method="validateCreditCard" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.creditcard"/> <validator name="email" classname="org.apache.struts.validator.FieldChecks" method="validateEmail" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.email"/> <validator name="url" classname="org.apache.struts.validator.FieldChecks" method="validateUrl" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest" depends="" msg="errors.url"/> <!-- This simply allows struts to include the validateUtilities into a page, it should not be used as a validation rule. --> <validator name="includeJavaScriptUtilities" classname="" method="" methodParams="" depends="" msg="" jsFunction="org.apache.commons.validator.javascript.validateUtilities"/> </global> </form-validation>
发表评论
-
WebRoot\jsp\ques
2008-12-25 23:16 938question.jsp <%@ page cont ... -
MyZhiNangTuanDemo\src\org\lxh\myzngt\vo
2008-12-25 22:42 1103User.java package org.lxh.myz ... -
org.lxh.myzngt.util
2008-12-25 21:46 962MD5Code.java package org.lxh.m ... -
ApplicationResources.properties
2008-12-25 21:41 1119# Resources for parameter 'org. ... -
org.lxh.myzngt.filter
2008-12-25 21:26 1021AdminLoginFilter.java packa ... -
\WebRoot\jsp
2008-12-25 20:09 1136index.jsp <%@ page co ... -
USER
2008-12-25 19:54 902UserForm.java /* * Generate ... -
WebRoot
2008-12-25 19:43 900temp.htm <html> <he ... -
applicationContext.xml
2008-12-25 19:39 1026<?xml version="1.0" ... -
我的智囊团—数据库创建脚本.sql
2008-12-25 17:50 1602/*============================= ...
相关推荐
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-logging-1.0.4.jar"/> <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/displaytag-1.1.jar"/> <classpathentry kind="lib" path="WebRoot/...
2. **WebRoot目录**:在标准的Java Web应用中,WebRoot目录是指包含所有Web资源的顶级目录,其具体名称可以自定义,但在部署至服务器时通常对应`/WEB-INF`目录的上级目录。例如,在Tomcat服务器中,Web应用被部署在`...
WEB-INF目录是一个安全目录,客户端不能直接通过URL访问这个目录下的内容,所有请求都需要通过服务器进行处理。WEB-INF目录下通常会有以下几个重要的文件和子目录: 1. web.xml:这个文件是Web应用程序的部署描述...
WEB-INF中的web.xml配置详解 本文将详细介绍WEB-INF中的web.xml文件中的配置,包括Context配置、Resource配置、resource-ref配置,以及对应的Java类编写。 一、Context配置 在WEB-INF中的web.xml文件中,添加以下...
标题中的“已配置好Struts2.2.1GA的WEB-INF”指的是一个已经包含了所有必要配置文件和库的WEB-INF目录,这个目录是Java web应用的核心部分,它包含了一些关键元素: 1. **web.xml**:这是web应用的部署描述符,定义...
2.在WebRoot/WEB-INF/jsp添加对应的页面Test1.jsp,把Test1Action类名的Action去掉,就是页面的名称 3.然后就可以通过http访问了:http://127.0.0.1:8080/example/Test1.jsp 4.建立文件夹需要在src/struts2.xml...
这些文件通常以`.properties`为扩展名,并且位于应用程序的`WEB-INF`或`webroot`目录下,以便于访问和管理。在本文中,我们将详细探讨如何在Java Web环境中读取`webroot`文件下的属性文件。 1. **属性文件结构** ...
首先,确保属性文件已经放置在webroot目录下,例如:`/webroot/config/app.properties`。这个文件应包含键值对,如`key=value`的格式。 步骤1:导入所需库 在Java代码中,我们需要使用`java.util.Properties`类来...
Apache+PHP+MySQL我会一同上传,一键安装,装好即用,适合初学PHPWEB 或需要运用类似环境的童鞋。 phpweb本地环境一键删除webroot和清空数据库,方便调试程序用。 部分源码如下,全套程序就要...start D:\usr\webroot
在JSF编程中,`WEB-INF/lib`目录下的JAR包扮演着至关重要的角色,它们包含了JSF运行所需的库和依赖。下面我们将详细探讨这些JAR包的功能及其在JSF应用中的作用。 1. **webui-jsf.jar** 和 **webui-jsf-suntheme.jar...
在Java Web开发中,我们经常会遇到“请求重定向无法访问WEB-INF下的资源1”这样的问题。这主要是由于WEB-INF目录的特殊性所引起的。本文将深入解析这个问题的原因,并提供解决方案。 **WEB-INF目录的特性** 在Java ...
/xscjManager/WebContent/WEB-INF/lib/antlr.jar /xscjManager/WebContent/WEB-INF/lib/asm.jar /xscjManager/WebContent/WEB-INF/lib/asm-attrs.jar /xscjManager/WebContent/WEB-INF/lib/cglib-2.1.3.jar /...
在Java Web应用中,`WEB-INF`目录是一个特殊区域,其中包含了应用的配置文件和库文件。`lib`目录位于`WEB-INF`下,通常用于存放应用所需的JAR(Java Archive)文件,这些JAR文件包含了运行应用所依赖的类库。然而,...
2. `META-INF`:这是Java应用程序的标准目录,包含元数据信息,如MANIFEST.MF文件,它记录了该JAR或WAR文件的版本、依赖和其他元信息。在这个JSTL示例中,可能会包含JSTL的库信息、版本号和依赖关系。 3. `javax`:...
`WEB-INF`是Java Web应用程序中的一个特殊目录,它包含了应用程序的类文件、配置文件以及库(如JAR文件)。在`WEB-INF.zip`这个压缩包中,很可能包含了与在Tomcat中运行PHP相关的配置和库文件。下面我们将详细讨论...
3:把根目录下的net文件夹放到WebRoot\WEB-INF\classes下。因为这个是在线编辑器用到的.class 4: 后面管理地址: http://localhost:8080/webdgs/admin/frame.jsp 用户名/密码:admin/123456 合作商管理 ...
这是一款应用struts技术开发的网上办公系统,实现了网上办公相关功能。适用于学生毕业设计的参考题材
* 生成 Schema 文件:WebRoot\WEB-INF\wsdl\SayHelloService_Schema1.xsd 四、Web 服务部署 1. 部署 Web 服务 * Window -> Show View -> Servers * 选择 Add Deployment 部署 myWebSvc 2. 重启 Weblogic 服务 ...
2、把MyDesign\WEB-INF下的mydesign文件夹复制到ROOT文件夹下的WEB-INF\classes下面. 3、把ROOT\MyDesign\WEB-INF\下的web.xml中的<web-app>和</web-app>内容复制到ROOT\WEB-INF\下web.xml的<web-app>和</web-app>中...
2、把MyDesign\WEB-INF下的mydesign文件夹复制到ROOT文件夹下的WEB-INF\classes下面. 3、把ROOT\MyDesign\WEB-INF\下的web.xml中的<web-app>和</web-app>内容复制到ROOT\WEB-INF\下web.xml的<web-app>和</web-app>中...