Author: mmcallis
Date: 2008-02-14 20:56:01 -0500 (Thu, 14 Feb 2008)
New Revision: 9981
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
5.2.2.4. JSP Files and the Portlet Tag Library
minor revisions to text explaining the view.jsp file
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-15
00:57:45 UTC (rev 9980)
+++
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-15
01:56:01 UTC (rev 9981)
@@ -781,9 +781,9 @@
</para>
</sect3>
<sect3>
- <title>JSP Files and the Portlet Taglib</title>
+ <title>JSP Files and the Portlet Tag Library</title>
<para>
- The <filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename> and
<filename>HelloWorldJSPPortlet/WEB-INF/jsp/view2.jsp</filename> JSP files are
included in the HelloWorldJSPPortlet portlet. The first,
<filename>view.jsp</filename>, allows a user to input their name. This is then
posted to the <computeroutput>processAction</computeroutput> method in the
portlet class, which is set in the
<computeroutput>aResponse.setRenderParameter</computeroutput>. The
<literal>render</literal> method,
<computeroutput>doView</computeroutput>, is invoked, which dispatches to the
<filename>view2.jsp</filename> JSP:
+ The <filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename> and
<filename>HelloWorldJSPPortlet/WEB-INF/jsp/view2.jsp</filename> JSP files are
included in the HelloWorldJSPPortlet portlet. The
<filename>view.jsp</filename> file allows a user to input their name. This is
then posted to the <computeroutput>processAction</computeroutput> method in
the portlet class, which is set as a
<computeroutput>aResponse.setRenderParameter</computeroutput>. The
<literal>render</literal> method,
<computeroutput>doView</computeroutput>, is invoked, which dispatches to the
<filename>view2.jsp</filename> JSP:
</para>
<para>
<mediaobject>
@@ -825,8 +825,7 @@
</screen></term>
<listitem>
<para>
- Define the portlet taglib. You do <emphasis>NOT</emphasis> need to bundle
the portlet taglib,
- JBoss Portal will handle that for you.
+ Define the portlet tag library (taglib). You do not need to bundle the portlet taglib -
JBoss Portal handles this for you.
</para>
</listitem>
</varlistentry>
@@ -835,8 +834,8 @@
</screen></term>
<listitem>
<para>
- Calling <literal>defineObjects</literal> makes available implicit objects,
such as
- <literal>renderRequest, actionRequest, portletConfig</literal>, in this
JSP.
+ Calling <literal>defineObjects</literal> makes available implicit objects
in the JSP, such as
+ <literal>renderRequest, actionRequest, portletConfig</literal>.
</para>
</listitem>
</varlistentry>
@@ -846,9 +845,7 @@
</screen></term>
<listitem>
<para>
- We create an HTML form, but generate the URL it will post to using the portlet tag
library. In
- this case, notice how we are creating an <literal>actionURL</literal>,
which will activate our
- <literal>processAction</literal> method, passing in any input parameters in
the form.
+ A HTML form is created. This form posts to the URL defined by the portlet taglib. In
this example, an <computeroutput>actionURL</computeroutput> is created, that
activates the <literal>processAction</literal> method, which passes the input
parameters in the form.
</para>
</listitem>
</varlistentry>
@@ -858,9 +855,7 @@
</screen></term>
<listitem>
<para>
- Likewise, we are able to create a link to our <literal>doView</literal>
method, by simply
- creating it with a <literal>renderURL</literal>, that passes in our
<literal>yourname</literal>
- parameter.
+ You can create a link to the <computeroutput>doView</computeroutput> method
by creating a <computeroutput>renderURL</computeroutput>, that passes the
<computeroutput>yourname</computeroutput> parameter.
</para>
</listitem>
</varlistentry>
Show replies by date