Author: mmcallis
Date: 2008-02-14 03:46:35 -0500 (Thu, 14 Feb 2008)
New Revision: 9968
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
5.2.2.3. Portlet Class
revising, fixing my broken variablelist
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-14
08:06:18 UTC (rev 9967)
+++
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14
08:46:35 UTC (rev 9968)
@@ -744,8 +744,7 @@
</para>
</listitem>
</varlistentry>
-<variablelist>
- <varlistentry><term><screen><![CDATA[
+<varlistentry><term><screen><![CDATA[
public void processAction(ActionRequest aRequest, ActionResponse aResponse)
throws PortletException, IOException, UnavailableException
{
@@ -762,32 +761,27 @@
</para>
</listitem>
</varlistentry>
-
- It will retrieve <literal>yourname</literal> from the HTML form,
- and pass it along as a
<literal>renderParameter</literal> to the
<literal>doView()</literal>
- method.
- </para>
- </listitem>
- <listitem>
- <para>
-
<programlisting>rResponse.setContentType("text/html");</programlisting>
- Just like in the servlet world, you must declare which kind of
MIME type of the content the
- portlet will be generating.
- </para>
- </listitem>
- <listitem>
- <para>
- <programlisting><![CDATA[protected void
doView(RenderRequest rRequest, RenderResponse rResponse)
- throws PortletException, IOException, UnavailableException
-]]></programlisting>
- In this case, our <literal>doView</literal>
implementation is responsible for dispatching to
- the appropriate JSP <literal>view.jsp</literal> or
<literal>view2.jsp</literal>, depending on
- the existence of the <literal>yourname</literal>
parameter passed in from
- <literal>processAction</literal>.
- </para>
- </listitem>
- </itemizedlist>
- </para>
+<varlistentry><term><screen><![CDATA[
+rResponse.setContentType("text/html");]]>
+</screen></term>
+<listitem>
+ <para>
+ As in the servlet-world, you must declare what content-type the portlet will be
responding in. Do this before starting to write content, or the portlet will throw an
exception.
+ </para>
+</listitem>
+</varlistentry>
+<varlistentry><term><screen><![CDATA[
+protected void doView(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException]]>
+</screen></term>
+<listitem>
+ <para>
+ The <literal>doView</literal> implementation is responsible for dispatching
to the appropriate JSP,
<filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename> or
<filename>HelloWorldJSPPortlet/WEB-INF/jsp/view2.jsp</filename>, depending on
the existence of the <literal>yourname</literal> parameter passed in from
<literal>processAction</literal>.
+ </para>
+</listitem>
+</varlistentry>
+</variablelist>
+</para>
</sect3>
<sect3>
<title>JSP files and the portlet taglib</title>
Show replies by date