You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/11/09 15:32:20 UTC

svn commit: r332040 - in /lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework: abstractusecase.xml index.xml

Author: andreas
Date: Wed Nov  9 06:32:16 2005
New Revision: 332040

URL: http://svn.apache.org/viewcvs?rev=332040&view=rev
Log:
added documentation about usecase parameters

Modified:
    lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/abstractusecase.xml
    lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml

Modified: lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/abstractusecase.xml
URL: http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/abstractusecase.xml?rev=332040&r1=332039&r2=332040&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/abstractusecase.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/abstractusecase.xml Wed Nov  9 06:32:16 2005
@@ -128,6 +128,10 @@
           reads the meta data from the document and puts them into the parameter map using
           <code>setParameter(String, Object)</code> to make them available to the JX template.
         </p>
+        <p>
+          Note that you can't access the request parameters in this method yet, because it
+          is executed before the request parameters are passed to the usecase.
+        </p>
         <br/>
       </li>
       

Modified: lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
URL: http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml?rev=332040&r1=332039&r2=332040&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml Wed Nov  9 06:32:16 2005
@@ -120,6 +120,25 @@
           <p>Initialize the handler.</p>
           <br/>
         </li>
+        <li><code>Passing request parameters</code>
+          <br/>
+          <p>
+            In the next step, all request parameters are passed as parameters to the usecase,
+            except the following reserved parameters:
+          </p>
+          <ul>
+            <li><code>lenya.usecase</code></li>
+            <li><code>lenya.continutation</code></li>
+            <li><code>submit</code></li>
+          </ul>
+          <p>
+            If the request parameter value is a string, the value can be accessed inside the usecase
+            handler using <code>getParameterAsString(name)</code>. If the request parameter
+            is a part of a multipart request, e.g., in a file upload form, it will be available
+            using <code>getPart(name)</code>. 
+          </p>
+          <br/>
+        </li>
         <li><code>checkPreconditions()</code>
           <p>
             This method is called to check the pre-conditions of the usecase. The pre-conditions



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org