diff --git a/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java b/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java index 4a5360a1b..36d27965c 100644 --- a/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java +++ b/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java @@ -44,4 +44,7 @@ public class FormExample extends ActionSupport { public void setLastName(String lastName) { this.lastName = lastName; } + public String displayResult() { + return "displayResult"; + } } diff --git a/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp b/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp new file mode 100644 index 000000000..aaada2568 --- /dev/null +++ b/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp @@ -0,0 +1,8 @@ +<%@ taglib prefix="s" uri="/struts-tags" %> + +

Input your name

+ + + + + diff --git a/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp b/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp index 10bfcb212..d7ad46784 100644 --- a/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp +++ b/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp @@ -4,6 +4,7 @@ Here you'll find examples of what is possible with the Struts Portlet integration framework.