Author: craigmcc
Date: Sat Dec 11 21:26:13 2004
New Revision: 111640

URL: http://svn.apache.org/viewcvs?view=rev&rev=111640
Log:
Add new IDE Guide for NetBeans 4.0.

PR: Bugzilla #32596
Submitted by: Geertjan Wielenga <Gieertjan.Wielenga AT sun.com>

Added:
   struts/core/trunk/doc/faqs/netbeans40.xml
   struts/core/trunk/doc/images/how-to/netbeans4/
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project3.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project4.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project5.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project6.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project7.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project8.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/creating-project9.jpg   
(contents, props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/directory.jpg   (contents, 
props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/new-project1.jpg   (contents, 
props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/new-project2.jpg   (contents, 
props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/new-project3.jpg   (contents, 
props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/new-project4.jpg   (contents, 
props changed)
   struts/core/trunk/doc/images/how-to/netbeans4/page.jpg   (contents, props 
changed)
Modified:
   struts/core/trunk/doc/faqs/index.xml
   struts/core/trunk/doc/faqs/project.xml

Modified: struts/core/trunk/doc/faqs/index.xml
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/faqs/index.xml?view=diff&rev=111640&p1=struts/core/trunk/doc/faqs/index.xml&r1=111639&p2=struts/core/trunk/doc/faqs/index.xml&r2=111640
==============================================================================
--- struts/core/trunk/doc/faqs/index.xml        (original)
+++ struts/core/trunk/doc/faqs/index.xml        Sat Dec 11 21:26:13 2004
@@ -74,7 +74,11 @@
     </li>
 
     <li>
-    <a href="netbeans.html">Installing the Netbeans IDE</a>
+    <a href="netbeans.html">Installing the Netbeans IDE (Version 3.4)</a>
+    </li>
+    
+    <li>
+    <a href="netbeans40.html">Installing the Netbeans IDE (Version 4.0)</a>
     </li>
     
  </ul>

Added: struts/core/trunk/doc/faqs/netbeans40.xml
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/faqs/netbeans40.xml?view=auto&rev=111640
==============================================================================
--- (empty file)
+++ struts/core/trunk/doc/faqs/netbeans40.xml   Sat Dec 11 21:26:13 2004
@@ -0,0 +1,143 @@
+<?xml version="1.0"?>
+
+<document url="./ssl.xml">
+
+<properties>
+
+<author>Geertjan Wielenga</author>
+
+<title>How to setup a basic Struts project using Netbeans IDE - Apache 
Struts</title>
+
+</properties>
+
+<body>
+
+<section href="netbeans" name="How to setup a basic Struts project using 
Netbeans IDE"/>
+<section name="Legal Disclamer">
+
+Please read <a 
href="http://jakarta.apache.org/site/idedevelopers.html";>this</a> first.<br/>
+<p>
+* DISCLAIMER - This simple How-To shows you how easy it is to write code for 
the Struts<br/>
+framework.  It just works straight out of the box. Simply specify where your 
sources are<br/>
+and where you want to store your Struts application, and NetBeans IDE 4.0 does 
everything<br/>
+you need -- it even generates a customized Ant build script for you and hooks 
its targets<br/>
+up to IDE commands such as "Build" and "Run".<br/>
+<br/>
+This is mainly geared toward struts users who are new to NetBeans IDE, and 
don't want to spend
+a lot of time figuring out the differences between their old IDE and this one.
+<br/>
+</p>
+</section>
+
+
+<section name="Let's get started">
+
+You will use wizards to set up and deploy the struts-example in 5 steps.<br/> 
+<br/>
+Before we begin, let's create (or reuse) a folder to hold the project. Copy 
the struts-example.war<br/>
+from the Struts distribution and extract it, with the result that it looks 
like this:<br/>
+<br/>
+<img alt="" 
src="../images/how-to/netbeans4/directory.jpg"></img><br/><br/><br/>
+<ol>
+  <li>
+  Create a new project.<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project3.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  The New Project wizard appears. Select "Web Project with Existing 
Sources".<br/>
+  Do this when you want use your own sources to create a web application, 
but<br/>
+  you want the IDE to generate an Ant build script for you.<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project4.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  Specify the location of your sources, the location of your new IDE project, 
and a project name.<br/> 
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project5.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  Drill-down further and specify the location of your web pages, Java sources, 
and libraries,<br/>
+  and decide whether you want your application to support J2EE 1.4 or J2EE 
1.3.<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project6.jpg"></img><br/><br/><br/>
+  <br/>
+  Now click Finish. That's it! You're done.<br/>
+
+  Let's take a look at the result in the Projects window, and notice how<br/>
+  the Source Editor provides JSP code completion for Struts tag libraries:<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project7.jpg"></img><br/>
+  <br/>
+  Note that code completion for the struts-config.xml file works 
automatically<br/>
+  if you have Internet access. If you use a proxy, it must be enabled. If 
you<br/>
+  do not have Internet access, you can use the IDE to create an OASIS XML 
Catalog,<br/>
+  which enables code completion for the struts-config.xml file.<br/>
+  <br/>
+
+  Now take a look in the Files window and browse through the Ant build script 
that the IDE made for you:<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project8.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  Finally, run the Struts application. Right-click the project node in the 
Projects window<br/>
+  and choose Run Project.<br/>
+  <br/>
+  The Run Project command is hooked to the Run target in the IDE-generated Ant 
script.<br/>
+  The  Run target depends on targets that compile the application, deploy it 
to the IDE's<br/>
+  default server, and display it in the IDE's default browser.<br/>
+  <br/>
+  So, when you choose "Run Project", the IDE uses the Ant build script to 
compile, deploy, and display it!<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project9.jpg"></img><br/><br/><br/>
+  <img alt="" src="../images/how-to/netbeans4/page.jpg"></img><br/><br/><br/>
+  </li>
+  
+</ol>
+
+</section>
+
+<section name="Let's set up a blank Struts application">
+Now you will use wizards to set up a new Struts application in NetBeans IDE 
4.0, again in 5 steps.<br/> 
+<br/>
+<ol>
+  <li>
+  Create a new project.<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/creating-project3.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  The New Project wizard appears. Select "Web Application".<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/new-project1.jpg"></img><br/><br/><br/>
+  </li>
+  <li>
+  Specify the location of your sources, the location of your new IDE project, 
and a project name,<br/>
+  and decide whether you want your application to support J2EE 1.4 or J2EE 
1.3.<br/>   
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/new-project2.jpg"></img><br/><br/><br/>
+  Now click Finish.<br/><br/><br/> 
+  </li>
+  <li>
+  Right-click the blank-struts-app node in the Projects window and choose 
Properties.<br/>
+  Select Compiling Sources, click Add JAR/Folder and add the libraries from 
the Struts distribution:<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/new-project3.jpg"></img><br/><br/><br/>
+  Click OK.<br/> 
+  Now go to the distribution for the struts-blank application on your 
filesystem.<br/>
+  <ul><li>Copy the struts-config.xml, tlds, and all the other configuration 
files (except the web.xml file)<br/>
+  from the WEB-INF folder and paste them into your web/WEB-INF folder.</li>
+  <li>Copy MessageResources.properties from WEB-INF/classes/resources into 
your src folder.</li></ul>
+  <br/><br/><br/>
+  </li>
+  <li>
+  Test your new Struts functionality in the Source Editor:<br/>
+  <br/>
+  <img alt="" 
src="../images/how-to/netbeans4/new-project4.jpg"></img><br/><br/><br/>
+  <br/>
+  </li>
+</ol>
+
+</section>
+</body>
+</document>

Modified: struts/core/trunk/doc/faqs/project.xml
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/faqs/project.xml?view=diff&rev=111640&p1=struts/core/trunk/doc/faqs/project.xml&r1=111639&p2=struts/core/trunk/doc/faqs/project.xml&r2=111640
==============================================================================
--- struts/core/trunk/doc/faqs/project.xml      (original)
+++ struts/core/trunk/doc/faqs/project.xml      Sat Dec 11 21:26:13 2004
@@ -48,7 +48,10 @@
             name="Eclipse"/>
         <item 
             href="netbeans.html" 
-            name="Netbeans"/>
+            name="Netbeans 3.4"/>
+        <item 
+            href="netbeans40.html" 
+            name="Netbeans 4.0"/>
     </menu>
 
     <menu name="Quick Links">

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project3.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project3.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project4.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project4.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project5.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project5.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project6.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project6.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project7.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project7.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project8.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project8.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/creating-project9.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/creating-project9.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/directory.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/directory.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/new-project1.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/new-project1.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/new-project2.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/new-project2.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/new-project3.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/new-project3.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/new-project4.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/new-project4.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

Added: struts/core/trunk/doc/images/how-to/netbeans4/page.jpg
Url: 
http://svn.apache.org/viewcvs/struts/core/trunk/doc/images/how-to/netbeans4/page.jpg?view=auto&rev=111640
==============================================================================
Binary file. No diff available.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to