Author: wsmoak Date: Sun Aug 21 07:57:40 2005 New Revision: 234223 URL: http://svn.apache.org/viewcvs?rev=234223&view=rev Log: Removed href attributes from section tags and added anchors to conform with the Jakarta site2 format
Modified: struts/site/trunk/xdocs/faqs/kickstart.xml struts/site/trunk/xdocs/faqs/newbie.xml struts/site/trunk/xdocs/faqs/ssl.xml struts/site/trunk/xdocs/faqs/struts-el.xml Modified: struts/site/trunk/xdocs/faqs/kickstart.xml URL: http://svn.apache.org/viewcvs/struts/site/trunk/xdocs/faqs/kickstart.xml?rev=234223&r1=234222&r2=234223&view=diff ============================================================================== --- struts/site/trunk/xdocs/faqs/kickstart.xml (original) +++ struts/site/trunk/xdocs/faqs/kickstart.xml Sun Aug 21 07:57:40 2005 @@ -242,12 +242,12 @@ </subsection> <a name="providers"/> -<subsection href="providers" name="Are there ISPs that will host my Struts application?"> +<subsection name="Are there ISPs that will host my Struts application?"> <p>For a listing of some Java and Struts ISPs, visit the <a href="http://struts.sf.net/community/index.html">Struts Community Resources</a> area on SourceForge.</p> </subsection> <a name="turbine"/> -<subsection href="turbine" name="What's the difference between Struts and Turbine? What's the difference between Struts and Expresso?"> +<subsection name="What's the difference between Struts and Turbine? What's the difference between Struts and Expresso?"> <p> If you are starting from scratch, packages like <a href="http://jakarta.apache.org/turbine">Turbine</a> and Modified: struts/site/trunk/xdocs/faqs/newbie.xml URL: http://svn.apache.org/viewcvs/struts/site/trunk/xdocs/faqs/newbie.xml?rev=234223&r1=234222&r2=234223&view=diff ============================================================================== --- struts/site/trunk/xdocs/faqs/newbie.xml (original) +++ struts/site/trunk/xdocs/faqs/newbie.xml Sun Aug 21 07:57:40 2005 @@ -6,7 +6,8 @@ <body> <section href="faq" name="Newbie FAQ"> -<subsection href="contents" name="Index"> +<a name="contents"/> +<subsection name="Index"> <p> Here are answers to the most common questions people ask when using @@ -157,7 +158,8 @@ </subsection> -<subsection href="reload" name="Why was reload removed from Struts (since 1.1)?"> +<a name="reload"/> +<subsection name="Why was reload removed from Struts (since 1.1)?"> <p> The problem with ReloadAction was that Struts was trying to act like a @@ -209,7 +211,8 @@ </subsection> -<subsection href="modules" name="What is a modular application? What does module-relative mean?"> +<a name="modules"/> +<subsection name="What is a modular application? What does module-relative mean?"> <p> Since Struts 1.1, the framework supports multiple application modules. All applications have at @@ -243,7 +246,8 @@ </subsection> -<subsection href="naming" name="Why are some of the class and element names counter-intuitive?"> +<a name="naming"/> +<subsection name="Why are some of the class and element names counter-intuitive?"> <p> The framework grew in the telling and, as it evolved, some of the names drifted. @@ -255,8 +259,8 @@ </p> </subsection> - -<subsection href="actionForms" name="Wither ActionForms?"> +<a name="actionForms"/> +<subsection name="Whither ActionForms?"> <p> <a href="http://www.mail-archive.com/[EMAIL PROTECTED]/msg19281.html">http://www.mail-archive.com/[EMAIL PROTECTED]/msg19281.html</a><br/> <a href="http://www.mail-archive.com/[EMAIL PROTECTED]/msg19338.html">http://www.mail-archive.com/[EMAIL PROTECTED]/msg19338.html</a><br/> @@ -264,8 +268,8 @@ </p> </subsection> - -<subsection href="actionFormInterface" name="Why is ActionForm a base class rather than an interface?"> +<a name="actionFormInterface"/> +<subsection name="Why is ActionForm a base class rather than an interface?"> <p> The MVC design pattern is very simple to understand but much more difficult to live with. You just need this little bit of Business Logic in the View @@ -297,7 +301,8 @@ </p> </subsection> -<subsection href="JavaBeans" name="Do ActionForms have to be true JavaBeans?"> +<a name="JavaBeans"/> +<subsection name="Do ActionForms have to be true JavaBeans?"> <p> The utilities that Struts uses (Commons-BeanUtils since 1.1) require that ActionForm properties follow the JavaBean patterns for mutators and accessors (get*,set*,is*). Since Struts uses the Introspection API @@ -312,8 +317,8 @@ </p> </subsection> - -<subsection href="multiple" name="Can I use multiple HTML form elements with the same name?"> +<a name="multiple"/> +<subsection name="Can I use multiple HTML form elements with the same name?"> <p> Yes. Define the element as an array and Struts will autopopulate it like any other. </p> @@ -329,8 +334,8 @@ </p> </subsection> - -<subsection href="multipleSubmits" name="Can I have multiple submit buttons on the same form?"> +<a name="multipleSubmits"/> +<subsection name="Can I have multiple submit buttons on the same form?"> <p> <strong>Yes</strong>. The issue is that only one action class can be associated with a single form. So the real issue is how do I decode @@ -355,8 +360,8 @@ your action form if you choose this route.</p> </subsection> - -<subsection href="focus" name="Why doesn't the focus feature on the <html:form> tag work in every circumstance?"> +<a name="focus"/> +<subsection name="Why doesn't the focus feature on the <html:form> tag work in every circumstance?"> <p> Unfortunately, there is some disagreement between the various browsers, and different versions of the same browser, as to how the focus can be set. The <html:form> tag provides a quick and easy JavaScript that will set the focus on a form @@ -368,8 +373,8 @@ </p> </subsection> - -<subsection href="checkbox" name="Why are my checkboxes not being set from ON to OFF?"> +<a name="checkbox"/> +<subsection name="Why are my checkboxes not being set from ON to OFF?"> <p> A problem with a checkbox is that the browser will only include it in the request when it is checked. If it is not checked, the HTML specification suggests that it @@ -395,7 +400,8 @@ </p> </subsection> -<subsection href="javascript.submit" name="Can I use JavaScript to submit a form?"> +<a name="javascript.submit"/> +<subsection name="Can I use JavaScript to submit a form?"> <p> You can submit a form with a link as below. BTW, the examples below assume you are in an <html:form> block and 'myForm' @@ -455,7 +461,8 @@ </subsection> -<subsection href="javascript" name="How do I use JavaScript to ..."> +<a name="javascript"/> +<subsection name="How do I use JavaScript to ..."> <p> Struts is mainly a server-side technology. @@ -488,7 +495,8 @@ </subsection> -<subsection href="reset" name="Do I need to implement reset and set all my form properties to their initial values?"> +<a name="reset"/> +<subsection name="Do I need to implement reset and set all my form properties to their initial values?"> <p> No. You need to set checkbox properties to false if the ActionForm is being retained in session scope. @@ -500,8 +508,8 @@ </p> </subsection> - -<subsection href="scriptlets" name="Can't I just create some of my JavaBeans in the JSP using a scriptlet?"> +<a name="scriptlets"/> +<subsection name="Can't I just create some of my JavaBeans in the JSP using a scriptlet?"> <p> Struts is designed to encourage a <a href="http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html"> @@ -527,8 +535,8 @@ </p> </subsection> - -<subsection href="otherBeans" name="Can I use other beans or hashmaps with ActionForms?"> +<a name="otherBeans"/> +<subsection name="Can I use other beans or hashmaps with ActionForms?"> <p> Yes. There are several ways that you can use other beans or hashmaps with ActionForms. </p> @@ -601,8 +609,8 @@ </p> </subsection> - -<subsection href="tags" name="Why do the Struts tags provide for so little formatting?"> +<a name="tags"/> +<subsection name="Why do the Struts tags provide for so little formatting?"> <p> <em>The Struts tags seem to provide only the most rudimentary functionality. Why is there not better support for date formatting and advanced string handling?</em> @@ -624,7 +632,8 @@ </p> </subsection> -<subsection href="layout" name="Why don't the Struts taglibs offer more layout options?"> +<a name="layout"/> +<subsection name="Why don't the Struts taglibs offer more layout options?"> <p> Since the Struts tags are open source, you can extend them to provide whatever additional formatting you may need. If you are interested in a pre-written taglib that offers more layout options, see the @@ -636,7 +645,8 @@ </p> </subsection> -<subsection href="link" name="Why does the <html:link> tag URL-encode javascript and mailto links?"> +<a name="link"/> +<subsection name="Why does the <html:link> tag URL-encode javascript and mailto links?"> <p> The <html:link> tag is not intended for use with client-side references like those used to launch Javascripts or email clients. The purpose of link tag is to interject the context (or module) path into the URI so that your server-side links are not dependent on your context (or module) name. @@ -646,20 +656,22 @@ </p> </subsection> -<subsection href="authenticate" name="How can I authenticate my users?"> +<a name="authenticate"/> +<subsection name="How can I authenticate my users?"> <p> <a href="http://www.mail-archive.com/[EMAIL PROTECTED]/msg24504.html">http://www.mail-archive.com/[EMAIL PROTECTED]/msg24504.html</a><br/> <a href="http://www.mail-archive.com/[EMAIL PROTECTED]/msg22949.html">http://www.mail-archive.com/[EMAIL PROTECTED]/msg22949.html</a> </p> </subsection> -<subsection href="pager" name="How can I scroll through list of pages like the search results in google?"> +<a name="pager"/> +<subsection name="How can I scroll through list of pages like the search results in google?"> <p>Many Struts developers use the Pager from the JSPTags site.</p> <p><a href="http://jsptags.com/tags/navigation/pager/">http://jsptags.com/tags/navigation/pager/</a></p> </subsection> - -<subsection href="minimization" name="Why does the option tag render selected=selected instead of just selected?"> +<a name="minimization"/> +<subsection name="Why does the option tag render selected=selected instead of just selected?"> <p> Attribute minimization (that is, specifying an attribute with no value) is a place where HTML violates standard XML syntax rules. This matters a lot @@ -671,8 +683,8 @@ XHTML specification</a></p> </subsection> - -<subsection href="jsp" name="Do I have to use JSPs with my application?"> +<a name="jsp"/> +<subsection name="Do I have to use JSPs with my application?"> <p> The short answer to this question is: No, you are not limited to @@ -720,7 +732,8 @@ </subsection> -<subsection href="formbeans" name="Do ActionForms have to be true JavaBeans?"> +<a name="formbeans"/> +<subsection name="Do ActionForms have to be true JavaBeans?"> <p>ActionForms are added to a servlet scope (session or request) as beans. What this means is that, for certain functionality to @@ -807,9 +820,8 @@ </subsection> - -<subsection href="separate" - name="Do I have to have a separate ActionForm bean for every HTML form?"> +<a name="separate"/> +<subsection name="Do I have to have a separate ActionForm bean for every HTML form?"> <p>This is an interesting question. As a newbie, it is a good practice to create a new <code>ActionForm</code> for each action @@ -856,9 +868,8 @@ </subsection> - -<subsection href="prepopulate" - name="How can I prepopulate a form?"> +<a name="prepopulate"/> +<subsection name="How can I prepopulate a form?"> <p>The simplest way to prepopulate a form is to have an <code>Action</code> whose sole purpose is to populate an <code>ActionForm</code> and forward @@ -935,7 +946,8 @@ </subsection> -<subsection href="noForm" name="Can I have an Action without a form?"> +<a name="noForm"/> +<subsection name="Can I have an Action without a form?"> <p> Yes. If your <code>Action</code> does not need any data and it does not need to make any data available to the view or controller component that it forwards to, it doesn't need @@ -961,8 +973,8 @@ </subsection> -<subsection href="requiredif" - name="Can you give me a simple example of using the requiredif Validator rule?"> +<a name="requiredif"/> +<subsection name="Can you give me a simple example of using the requiredif Validator rule?"> <p>First off, there's an even newer Validator rule called <code>validwhen</code>, which is almost certainly what you want to use, since it is much easier and more powerful. It will be available in the first release after 1.1 ships. @@ -1035,7 +1047,8 @@ </pre> </subsection> -<subsection href="validate" name="When is the best time to validate input?"> +<a name="validate"/> +<subsection name="When is the best time to validate input?"> <p> This is an excellent question. Let's step back a second and think about a typical mid to large size application. If we start from the back end and work @@ -1082,7 +1095,8 @@ User Guide</a></p> </subsection> -<subsection href="avoidValidate" +<a name="avoidValidate"/> +<subsection name="How can I avoid validating a form before data is entered?"> <p> The simplest way is to have two actions. The first one has the job of setting @@ -1115,7 +1129,8 @@ </subsection> -<subsection href="wizard" name="How can I create a wizard workflow?"> +<a name="wizard"/> +<subsection name="How can I create a wizard workflow?"> <p> The basic idea is a series of actions with next, back, cancel and finish actions with a common bean. Using a LookupDispatchAction is @@ -1202,7 +1217,8 @@ </subsection> - <subsection href="chaining" name="How can I 'chain' Actions?"> + <a name="chaining"/> + <subsection name="How can I 'chain' Actions?"> <p> Chaining actions can be done by simply using the proper mapping in your forward entries in the struts-config.xml file. Assume you had the following @@ -1309,8 +1325,8 @@ </subsection> +<a name="undocumented"/> <subsection - href="undocumented" name="If you would like to contribute, here is a list of popular but undocumented questions"> Modified: struts/site/trunk/xdocs/faqs/ssl.xml URL: http://svn.apache.org/viewcvs/struts/site/trunk/xdocs/faqs/ssl.xml?rev=234223&r1=234222&r2=234223&view=diff ============================================================================== --- struts/site/trunk/xdocs/faqs/ssl.xml (original) +++ struts/site/trunk/xdocs/faqs/ssl.xml Sun Aug 21 07:57:40 2005 @@ -13,7 +13,8 @@ <section href="ssl" name="Secure Socket Layer and Web Applications"> -<subsection href="overview" name="Overview"> +<a name="overview"/> +<subsection name="Overview"> <p> Many web applications, especially those deployed for e-commerce, necessitate the @@ -39,7 +40,8 @@ </subsection> -<subsection href="mixing" name="Mixing Protocols in Web Applications"> +<a name="mixing"/> +<subsection name="Mixing Protocols in Web Applications"> <p> Switching back and forth between the two protocols can require hard-coding the protocol @@ -58,7 +60,8 @@ </subsection> -<subsection href="help" name="Help from Deployment Descriptor"> +<a name="help"/> +<subsection name="Help from Deployment Descriptor"> <p> To help overcome the problem of non-secure access of sensitive data, the Java Servlet @@ -83,7 +86,8 @@ </subsection> -<subsection href="sslext" name="The sslext Struts Extension"> +<a name="sslext"/> +<subsection name="The sslext Struts Extension"> <p> An extension to Struts 1.1, named sslext, helps solve many of these issues for Struts @@ -110,7 +114,8 @@ </subsection> -<subsection href="legacy" name="Legacy Browser Issue"> +<a name="legacy"/> +<subsection name="Legacy Browser Issue"> <p> One additional complication faced by developers of web applications is that some @@ -127,7 +132,8 @@ </subsection> -<subsection href="containers" name="Configuring Containers for SSL"> +<a name="containers"/> +<subsection name="Configuring Containers for SSL"> The procedure for configuring SSL for a container will be specific to that container. The procedure for enabling SSL for Tomcat can be found Modified: struts/site/trunk/xdocs/faqs/struts-el.xml URL: http://svn.apache.org/viewcvs/struts/site/trunk/xdocs/faqs/struts-el.xml?rev=234223&r1=234222&r2=234223&view=diff ============================================================================== --- struts/site/trunk/xdocs/faqs/struts-el.xml (original) +++ struts/site/trunk/xdocs/faqs/struts-el.xml Sun Aug 21 07:57:40 2005 @@ -6,7 +6,7 @@ <body> <section href="faq" name="Struts EL Extension"> - <subsection href="Introduction" name="Introduction"> + <subsection name="Introduction"> <p> This subproject is an extension of the Struts tag library. Each JSP custom tag @@ -33,7 +33,8 @@ </subsection> - <subsection href="TagMapping" name="Tag Mapping"> + <a name="TagMapping"/> + <subsection name="Tag Mapping"> <p> In implementing the Struts-EL library, every Struts tag that provides a feature @@ -97,7 +98,8 @@ </subsection> - <subsection href="AttributeMapping" name="Attribute Mapping"> + <a name="AttributeMapping"/> + <subsection name="Attribute Mapping"> <p> At this point of the implementation, there is only one change (to two similar @@ -110,7 +112,8 @@ </subsection> - <subsection href="UsageRequirements" name="Usage Requirements"> + <a name="UsageRequirements"/> + <subsection name="Usage Requirements"> <p> The Struts-EL tag library requires the use of the Struts tag library, and the --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]