📄 kickstart.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Kickstart FAQ - Apache Struts</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Ted Husted" name="author" />
<meta content="Craig R. McClanahan" name="author" />
<meta content="James DeVries" name="author" />
<meta content="James Holmes" name="author" />
<link href="../struts.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="heading">
<a href="http://apache.org/">
<img id="asf_logo_wide" alt="The Apache Project" src="../images/asf_logo_wide.gif" />
</a>
<a href="http://struts.apache.org/">
<img id="struts-logo" alt="Struts Framework" src="../images/struts.gif" />
</a>
</div>
<!--end heading-->
<div id="content">
<div id="menu">
<p>FAQs</p>
<ul>
<li>
<a href="kickstart.html">Kickstart</a>
</li>
<li>
<a href="newbie.html">Newbie</a>
</li>
<li>
<a href="helping.html">How to Help</a>
</li>
</ul>
<p>Howto Guides</p>
<ul>
<li>
<a href="actionForm.html">Action Forms</a>
</li>
<li>
<a href="apps.html">Building Apps</a>
</li>
<li>
<a href="database.html">Database</a>
</li>
<li>
<a href="indexedprops.html">Indexed Properties</a>
</li>
<li>
<a href="ssl.html">SSL</a>
</li>
<li>
<a href="struts-el.html">Struts-EL (JSTL)</a>
</li>
</ul>
<p>IDE Guides</p>
<ul>
<li>
<a href="eclipse.html">Eclipse</a>
</li>
<li>
<a href="netbeans.html">Netbeans</a>
</li>
</ul>
<p>Quick Links</p>
<ul>
<li>
<a href="../index.html">Welcome</a>
</li>
<li>
<a href="../userGuide/index.html">User and Developer Guides</a>
</li>
</ul>
<div class="authors">
<p>
<strong>Contributors</strong>
</p>
<ul>
<li>Ted Husted</li>
<li>Craig R. McClanahan</li>
<li>James DeVries</li>
<li>James Holmes</li>
</ul>
</div>
</div>
<!--end menu-->
<div id="main">
<h1 id="faq">Kickstart FAQ</h1>
<h2 id="contents">Index</h2>
<div class="indent">
<p>
Here are answers to the usual getting-started questions. <strong>For an in-depth, searchable FAQ, visit our friends at <a href="http://www.jguru.com/faq/home.jsp?topic=Struts">JGuru</a>.</strong>
</p>
<ul>
<li>
<a href="#why">Why do we need Struts?</a>
</li>
<li>
<a href="#how">How does Struts work?</a>
</li>
<li>
<a href="#compat">Is Struts compatible with other Java technologies?</a>
</li>
<li>
<a href="#who">Who wrote Struts?</a>
</li>
<li>
<a href="#struts">Why is it called Struts?</a>
</li>
<li>
<a href="#license">How is Struts licensed?</a>
</li>
<li>
<a href="#usage">Can Struts be used in a commercial application?</a>
</li>
<li>
<a href="#credits">Do I have to credit Struts on my own website?</a>
</li>
</ul>
<ul>
<li>
<a href="#where">Where can I get a copy of Struts?</a>
</li>
<li>
<a href="#install">How do I install Struts?</a>
</li>
<li>
<a href="#jar">When do I need the struts.jar on my classpath?</a>
</li>
<li>
<a href="#tests">Does Struts provide its own unit tests?</a>
</li>
</ul>
<ul>
<li>
<a href="#requests">If the framework doesn't do what I want, can I request that a feature be added?</a>
</li>
<li>
<a href="#help">Where can I get help with Struts?</a>
</li>
<li>
<a href="#support">Is commercial support available for Struts?</a>
</li>
<li>
<a href="#providers">Are there ISPs that will host my Struts application?</a>
</li>
<li>
<a href="#powered">What Web sites are already Powered by Struts?</a>
</li>
</ul>
<ul>
<li>
<a href="#turbine">What's the difference between Struts and Turbine? What's the difference between Struts and Expresso?</a>
</li>
<li>
<a href="#taglibs">Why aren't the Struts tags maintained as part of the Jakarta Taglibs project?</a>
</li>
<li>
<a href="#xhtml">Are the Struts tags XHTML compliant?</a>
</li>
<li>
<a href="#jsf">What about JSTL and JavaServer Faces?</a>
</li>
<li>
<a href="#ide">Is there a particularly good IDE to use with Struts?</a>
</li>
</ul>
<ul>
<li>
<a href="#digest">Is there a digest for the mailing list?</a>
</li>
<li>
<a href="#newsgroup">Is there a Struts Newsgroup?</a>
</li>
<li>
<a href="#mailbounce">Why didn't my posting show up on the user list?"</a>
</li>
<li>
<a href="#unsubscribe">How do I unsubscribe from the mailing list?</a>
</li>
</ul>
</div>
<h2 id="why">Why do we need Struts?</h2>
<div class="indent">
<p>Java technologies give developers a serious boost when creating and maintaining applications to meet the demands of today's public Web sites and enterprise intranets. Struts combines Java Servlets, Java ServerPages, custom tags, and message resources into a unified framework. The end result is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone in between.</p>
</div>
<h2 id="how">How does Struts work?</h2>
<div class="indent">
<p>Java Servlets are designed to handle requests made by Web browsers. Java ServerPages are designed to create dynamic Web pages that can turn billboard sites into live applications. Struts uses a special Servlet as a switchboard to route requests from Web browsers to the appropriate ServerPage. This makes Web applications much easier to design, create, and maintain.</p>
</div>
<h2 id="compat">Is Struts compatible with other Java technologies?</h2>
<div class="indent">
<p>Yes. Struts is committed to supporting industry standards.
Struts acts as an integrator of Java technologies so that they can be used in the "real world".</p>
</div>
<h2 id="who">Who wrote Struts?</h2>
<div class="indent">
<p>There are several <a href="../volunteers.html">active committers</a> to the Struts project, working cooperatively from around the globe. Dozens of individual developers and committers contributed to the Struts 1.x codebase. All interested Java developers are invited to <a href="helping.html#contribute">contribute to the project</a>.
Struts is a <a href="http://apache.org/">Apache Software Foundation</a> project, with the mission to "provide secure, enterprise-grade server solutions based on the Java Platform that are developed in an open and cooperative fashion".</p>
<p>Struts was created by Craig R. McClanahan and donated to The Apache Software Foundation in May 2000. Craig was the primary developer of both Struts 1.x and <a href="http://jakarta.apache.org/tomcat/index.html">Tomcat 4</a>. Tomcat 4 was the basis for the official reference implementation for a servlet 2.3 and JSP 1.2 container.</p>
<p>Craig's current focus is as architect of the Sun Java Studio Creator (formerly Project Rave).
Craig also serves as the Specification Lead for <a href="http://jcp.org/jsr/detail/127.jsp">JavaServer Faces (JSR-127)</a>,
and is the Web Layer Architect for the Java2 Enterprise Edition (J2EE) platform as a whole.</p>
</div>
<h2 id="struts">Why is it called Struts?</h2>
<div class="indent">
<p>It's a reference to struts in the architectural sense, a reminder of the nearly invisible pieces that hold up buildings, houses, and bridges.</p>
</div>
<h2 id="license">How is Struts licensed?</h2>
<div class="indent">
<p>Struts is copyrighted software available under the <a href="http://www.apache.org/licenses">Apache License</a>, a "free-to-use, business-friendly license".</p>
</div>
<h2 id="usage">Can Struts be used in a commercial product?</h2>
<div class="indent">
<p>Yes. The only requirements you must meet are those listed in the <a href="http://www.apache.org/licenses">Apache License</a>.</p>
</div>
<h2 id="credits">Do I have to credit Struts on my own website?</h2>
<div class="indent">
<p>You need to credit Struts if you <strong>redistribute your own framework</strong> based on Struts
for other people to use. (See the <a href="http://www.apache.org/LICENSE">Apache License</a> for details.)
But you do <strong>not</strong> need to credit Struts just because your web application utilizes the framework.
It's the same situation as using the Apache HTTPD server or Tomcat. Not required if its just running your web site.
Required if you've used the source code to create your own server that you are redistributing to other people.</p>
</div>
<h2 id="where">Where can I get a copy of Struts?</h2>
<div class="indent">
<p>The best place to download Struts is at <a href="http://struts.apache.org/">struts.apache.org</a>. The nightly builds are very stable, and recommended as the best place to start today.</p>
</div>
<h2 id="install">How do I install Struts?</h2>
<div class="indent">
<p>To develop applications with Struts, you can usually just add the Struts JAR file
to your Java development environment. You can then start using the Struts classes as
part of your own application. A blank Struts application (in the
<code>webapps</code> directory, open <code>struts-blank.war</code>)
is provided, which you can just copy to get a quick-start on your own brainchild.</p>
<p>Since the full source code for Struts is available, we also provide
<a href="../userGuide/installation.html">complete instructions</a>
for compiling your own Struts JAR from scratch. (This is actually easier than it looks!)</p>
<p>Your Struts application can usually be deployed using a standard WAR file. In most
cases, you simply deposit the WAR file on your application server, and it is installed
automatically. If not, step-by-step installation instructions for
<a href="../userGuide/installation.html#Containers">various servlet
containers</a> are available.</p>
</div>
<h2 id="jar">When do I need "struts.jar" on my classpath?</h2>
<div class="indent">
<p>When you are compiling an application that uses the Struts classes, you must have the "struts.jar" on the classpath your <strong>compiler</strong> sees -- it does not <em> have</em> to be on your CLASSPATH environment variable.</p>
<p>Why is that an important distinction? Because if you are using a servlet container on your development machine to test your application, the "struts.jar" <strong>must not</strong> be on your CLASSPATH environment variable when running the container. (This is because each Web application must also have their own copy of the Struts classes, and the container will become confused if it is on the environment path as well.)</p>
<p>There are several general approaches to this issue:</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -