Author: thomas.heute(a)jboss.com
Date: 2008-07-09 13:57:18 -0400 (Wed, 09 Jul 2008)
New Revision: 11375
Added:
examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/jboss-portlet.xml
Modified:
examples/trunk/JSPHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/portlet.xml
examples/trunk/JSPHelloUser/src/main/webapp/jsp/edit.jsp
examples/trunk/JSPHelloUser/src/main/webapp/jsp/help.jsp
Log:
minor
Modified:
examples/trunk/JSPHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
---
examples/trunk/JSPHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2008-07-09
17:54:14 UTC (rev 11374)
+++
examples/trunk/JSPHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2008-07-09
17:57:18 UTC (rev 11375)
@@ -41,7 +41,6 @@
String sYourName = (String) request.getParameter("yourname");
if (sYourName != null)
{
- request.setAttribute("yourname", sYourName);
PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
prd.include(request, response);
}
@@ -52,13 +51,6 @@
}
}
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws
PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException,
UnavailableException
{
@@ -75,4 +67,12 @@
prd.include(rRequest, rResponse);
}
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws
PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
}
Added: examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/jboss-portlet.xml
===================================================================
--- examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/jboss-portlet.xml
(rev 0)
+++ examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/jboss-portlet.xml 2008-07-09
17:57:18 UTC (rev 11375)
@@ -0,0 +1,30 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
+
+<portlet-app>
+ <app-id>JSPHelloUser</app-id>
+</portlet-app>
\ No newline at end of file
Modified: examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/portlet.xml 2008-07-09 17:54:14
UTC (rev 11374)
+++ examples/trunk/JSPHelloUser/src/main/webapp/WEB-INF/portlet.xml 2008-07-09 17:57:18
UTC (rev 11375)
@@ -6,17 +6,15 @@
version="2.0">
<portlet>
<portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>
- org.jboss.portal.portlet.samples.JSPHelloUserPortlet
- </portlet-class>
+
<portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
<supports>
- <mime-type>text/html</mime-type>
- <mode>view</mode>
- <mode>edit</mode>
- <mode>help</mode>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ <portlet-mode>edit</portlet-mode>
+ <portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSP Hello User Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Modified: examples/trunk/JSPHelloUser/src/main/webapp/jsp/edit.jsp
===================================================================
--- examples/trunk/JSPHelloUser/src/main/webapp/jsp/edit.jsp 2008-07-09 17:54:14 UTC (rev
11374)
+++ examples/trunk/JSPHelloUser/src/main/webapp/jsp/edit.jsp 2008-07-09 17:57:18 UTC (rev
11375)
@@ -1,2 +1,2 @@
<div class="portlet-section-header">Edit mode</div>
-<div class='Portlet-section-body">This is the edit mode, a convenient
place to let the user change his portlet preferences.</div>
\ No newline at end of file
+<div class="portlet-section-body">This is the edit mode, a convenient
place to let the user change his portlet preferences.</div>
\ No newline at end of file
Modified: examples/trunk/JSPHelloUser/src/main/webapp/jsp/help.jsp
===================================================================
--- examples/trunk/JSPHelloUser/src/main/webapp/jsp/help.jsp 2008-07-09 17:54:14 UTC (rev
11374)
+++ examples/trunk/JSPHelloUser/src/main/webapp/jsp/help.jsp 2008-07-09 17:57:18 UTC (rev
11375)
@@ -1,2 +1,2 @@
<div class="portlet-section-header">Help mode</div>
-<div class='Portlet-section-body">This is the help mode, a convenient
place to give the user some help information.</div>
\ No newline at end of file
+<div class="portlet-section-body">This is the help mode, a convenient
place to give the user some help information.</div>
\ No newline at end of file