⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 框架结构,适用一些初学者使用. 请先压缩再使用
💻 TXT
字号:
The Struts Scripting (Version 1.0.1) README File============INTRODUCTION:============This project allows Struts Actions to be written in the scripting language ofone's choice rather than as Java classes. It uses the Bean Scripting Framework(http://jakarta.apache.org/bsf) to allow scripts to be written in any languageBSF supports like Perl, Python, Ruby, JavaScript, Groovy, and even VBScript.Struts Scripting allows an application to be developed rapidly with the quickdevelopment cycle (edit file -> refresh browser) that one would expect in ascripting environment. Furthermore, it enables other non-Java trained members ofa development team, such as web designers who may have a scripting background,to be more involved, leaving the Java developers to create the reusable servicesthe Struts actions will interact with. Finally, when used with Java-likelanguages such as Groovy (http://groovy.codehaus.org) , applications can quicklybe stood up, then later the Struts action scripts can be migrated to Java forbetter performance. ========================NEW AND REVISED FEATURES:========================New Features: * Changed Mailreader example to use Groovy instead of BeanShell due to possiblelicensing issues. (mrdon)Fixes: * Fixed most checkstyle errors. (mrdon) * Merged Ant and Maven build into one Maven build. (wsmoak)Miscellaneous: ========================STRUTS SCRIPTING SOURCE CODE GUIDE========================The Struts Scripting project, for the most part, follows Apache Struts build andsource code layout, so if you are familiar with another Struts project, you'llbe at home here. If not, this guide first walks you though what is where andwhy. Next, it gives help on how to build common artifacts.Again, since the heavy lifting is done by the Bean Scripting Framework (http://jakarta.apache.org/bsf) and the scripting engines themselves, thereisn't much code to this project itself.SOURCE CODE LAYOUTWhen you unzip the latest release Struts Scripting or check it out fromsubversion (more help on subversion at the Struts source code(http://struts.apache.org/acquiring.html#Source_Code) ), you'll be staring atthe following directory structure: * /src- All source code can be found here * /src/java- The source code for the Struts Scripting framework itself * /src/struts-example- A modified version of the Struts 1.2.8 Mailreaderexample application. This version replaces Java-coded Struts Actions withGroovy (http://groovy.codehaus.org) scripts. * /xdocs- The XML source code for all documentation, including this guide. * /target- Maven puts all compiled files into this temporary directory.Next, we'll look at how to build both Struts Scripting library and the includedexample application.BUILD INSTRUCTIONSStruts Scripting uses Apache Maven (http://maven.apache.org) 1.0 to build itsjar, example application, documentation, and distribution files. Maven 1.0 isused throughout Struts for building subprojects, providing a consistent buildenvironment to Struts users. To follow these build instructions, you will needto have Apache Maven (http://maven.apache.org) 1.0 installed anditsmavenexecutable available in your command path.Since there are a bunch of build targets, we will break the build down intotasks that you might want to accomplish and show the best way to complete them. * Build the Struts Scripting jar- Run 'maven jar:jar' which will create the jaras/target/struts-scripting-VERSION.jar. * Build the Mailreader example- Run 'maven war:war' tocreate/target/struts-example.war. * Build the documentation- Run 'maven site:generate' to create the StrutsScripting website at/target/docs.While this list only covers a few build targets, there are many other you candiscover by typing 'maven -g' from the Struts Scripting directory.----------------------------------------------------------This and a lot more information can be found in the Struts Scriptingdocumentation on the website, and if you are reading this after extracting afresh release, you'll find the same documentation in the /docsdirectory.---------------- http://struts.apache.org ----------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -