mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
changed jsp taglib prefix from ww to saf and uri from /webwork to
/struts-action git-svn-id: https://svn.apache.org/repos/asf/incubator/webwork2@392740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<H2>Hello <ww:property value="firstName"/> <ww:property value="lastName"/></H2>
|
||||
<H2>Hello <saf:property value="firstName"/> <saf:property value="lastName"/></H2>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to front page</a>
|
||||
<a href="<saf:url action="index"/>">Back to front page</a>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<H2>Input your name</H2>
|
||||
<ww:form action="processFormExampleEdit" method="POST">
|
||||
<ww:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<ww:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<ww:submit value="Submit the form"/>
|
||||
</ww:form>
|
||||
<saf:form action="processFormExampleEdit" method="POST">
|
||||
<saf:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<saf:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<saf:submit value="Submit the form"/>
|
||||
</saf:form>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
There are no examples in edit mode yet
|
||||
|
||||
<p/>
|
||||
<a href="<ww:url action="test"/>">Test</a>
|
||||
<a href="<saf:url action="test"/>">Test</a>
|
||||
<p/>
|
||||
<a href="<ww:url action="formExampleEdit"/>">Form test</a>
|
||||
<a href="<saf:url action="formExampleEdit"/>">Form test</a>
|
||||
<p/>
|
||||
<a href="<ww:url action="/test/testAction" namespace="dummy"/>">Dummy test</a>
|
||||
<a href="<saf:url action="/test/testAction" namespace="dummy"/>">Dummy test</a>
|
||||
<p/>
|
||||
<a href="<ww:url action="index" portletMode="view"/>">Back to view mode</a>
|
||||
<a href="<saf:url action="index" portletMode="view"/>">Back to view mode</a>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<a href="<ww:url action="test"/>">Test page for namespace /edit/test</a>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<a href="<saf:url action="test"/>">Test page for namespace /edit/test</a>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to edit index</a>
|
||||
<a href="<saf:url action="index"/>">Back to edit index</a>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<%@ taglib prefix="pw" uri="/portletwork" %>
|
||||
<pw:form action="prefsFormSave.action" method="POST">
|
||||
<ww:textfield label="Preference one" name="preferenceOne" value="%{preferenceOne}"/>
|
||||
<ww:textfield label="Preference two" name="preferenceTwo" value="%{preferenceTwo}"/>
|
||||
<ww:submit value="Save prefs"/>
|
||||
<saf:textfield label="Preference one" name="preferenceOne" value="%{preferenceOne}"/>
|
||||
<saf:textfield label="Preference two" name="preferenceTwo" value="%{preferenceTwo}"/>
|
||||
<saf:submit value="Save prefs"/>
|
||||
</pw:form>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<a href="<ww:url action="test"/>">Test page</a>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<a href="<saf:url action="test"/>">Test page</a>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to edit index</a>
|
||||
<a href="<saf:url action="index"/>">Back to edit index</a>
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<ww:head theme="ajax"/>
|
||||
<link rel="stylesheet" type="text/css" href="<ww:url value="/webwork/tabs.css"/>">
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<saf:head theme="ajax"/>
|
||||
<link rel="stylesheet" type="text/css" href="<saf:url value="/webwork/tabs.css"/>">
|
||||
<b>This is a tabbed pane with two panels that fetches data from a remote action via ajax</b>
|
||||
|
||||
<ww:tabbedPanel id="test2" theme="simple" >
|
||||
<ww:panel id="left" tabName="left" theme="ajax" href="/">
|
||||
<saf:tabbedPanel id="test2" theme="simple" >
|
||||
<saf:panel id="left" tabName="left" theme="ajax" href="/">
|
||||
This is the left pane<br/>
|
||||
<ww:form >
|
||||
<ww:textfield name="tt" label="Test Text" /> <br/>
|
||||
<ww:textfield name="tt2" label="Test Text2" />
|
||||
</ww:form>
|
||||
</ww:panel>
|
||||
<ww:panel remote="true" href="/view/ajaxData.action" id="ryh1" theme="ajax" tabName="remote one" />
|
||||
<ww:panel id="middle" tabName="middle" theme="ajax" href="/">
|
||||
<saf:form >
|
||||
<saf:textfield name="tt" label="Test Text" /> <br/>
|
||||
<saf:textfield name="tt2" label="Test Text2" />
|
||||
</saf:form>
|
||||
</saf:panel>
|
||||
<saf:panel remote="true" href="/view/ajaxData.action" id="ryh1" theme="ajax" tabName="remote one" />
|
||||
<saf:panel id="middle" tabName="middle" theme="ajax" href="/">
|
||||
middle tab<br/>
|
||||
<ww:form >
|
||||
<ww:textfield name="tt" label="Test Text44" /> <br/>
|
||||
<ww:textfield name="tt2" label="Test Text442" />
|
||||
</ww:form>
|
||||
</ww:panel>
|
||||
<ww:panel remote="true" href="/view/ajaxData.action" id="ryh21" theme="ajax" tabName="remote right" />
|
||||
</ww:tabbedPanel>
|
||||
<saf:form >
|
||||
<saf:textfield name="tt" label="Test Text44" /> <br/>
|
||||
<saf:textfield name="tt2" label="Test Text442" />
|
||||
</saf:form>
|
||||
</saf:panel>
|
||||
<saf:panel remote="true" href="/view/ajaxData.action" id="ryh21" theme="ajax" tabName="remote right" />
|
||||
</saf:tabbedPanel>
|
||||
|
||||
<p/>
|
||||
A DIV that waits for 5 seconds before loading the contents
|
||||
<ww:div
|
||||
<saf:div
|
||||
id="once"
|
||||
theme="ajax"
|
||||
cssStyle="border: 1px solid yellow;"
|
||||
href="/view/ajaxData.action"
|
||||
delay="5000"
|
||||
loadingText="loading...">
|
||||
Waiting for data</ww:div>
|
||||
Waiting for data</saf:div>
|
||||
<p/>
|
||||
A DIV that is updated every 2 seconds
|
||||
<ww:div
|
||||
<saf:div
|
||||
id="twoseconds"
|
||||
cssStyle="border: 1px solid yellow;"
|
||||
href="/view/ajaxData.action"
|
||||
@@ -43,6 +43,6 @@ A DIV that is updated every 2 seconds
|
||||
updateFreq="2000"
|
||||
errorText="There was an error"
|
||||
loadingText="loading...">Initial Content
|
||||
</ww:div>
|
||||
</saf:div>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to front page</a>
|
||||
<a href="<saf:url action="index"/>">Back to front page</a>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<%@ taglib prefix="cewolf" uri="/cewolf" %>
|
||||
|
||||
<H2>Sample charts</H2>
|
||||
|
||||
<ww:set name="lineDataSet" value="lineChartProducer" scope="request"/>
|
||||
<ww:set name="pieDataSet" value="pieChartProducer" scope="request"/>
|
||||
<saf:set name="lineDataSet" value="lineChartProducer" scope="request"/>
|
||||
<saf:set name="pieDataSet" value="pieChartProducer" scope="request"/>
|
||||
|
||||
<cewolf:chart
|
||||
id="line"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<H2>Hello <ww:property value="firstName"/> <ww:property value="lastName"/></H2>
|
||||
<H2>Hello <saf:property value="firstName"/> <saf:property value="lastName"/></H2>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to front page</a>
|
||||
<a href="<saf:url action="index"/>">Back to front page</a>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<H2>Input your name</H2>
|
||||
<ww:form action="processFormExample" method="POST">
|
||||
<ww:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<ww:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<ww:submit value="Submit the form"/>
|
||||
</ww:form>
|
||||
<saf:form action="processFormExample" method="POST">
|
||||
<saf:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<saf:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<saf:submit value="Submit the form"/>
|
||||
</saf:form>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<link rel="stylesheet" type="text/css" href="<ww:url value="/styles/styles.css"/>">
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<link rel="stylesheet" type="text/css" href="<saf:url value="/styles/styles.css"/>">
|
||||
<H2>Input your name</H2>
|
||||
<ww:form action="processValidationExample" method="POST">
|
||||
<ww:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<ww:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<ww:submit value="Submit the form"/>
|
||||
</ww:form>
|
||||
<saf:form action="processValidationExample" method="POST">
|
||||
<saf:textfield label="First name" name="firstName" value="%{firstName}"/>
|
||||
<saf:textfield label="Last name" name="lastName" value="%{lastName}"/>
|
||||
<saf:submit value="Submit the form"/>
|
||||
</saf:form>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<H2>Welcome to the WebWork 2.2.1 example portlet</H2>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<H2>Welcome to the Struts example portlet</H2>
|
||||
<p/>
|
||||
Here you'll find examples of what is possible with the PortletWork framework.
|
||||
<ul>
|
||||
<li><a href="<ww:url action="formExample"/>">A simple form</a></li>
|
||||
<li><a href="<ww:url action="validationExample"/>">Validation</a></li>
|
||||
<li><a href="<ww:url action="tokenExample"/>">Token</a></li>
|
||||
<li><a href="<ww:url action="springExample"/>">Spring integration</li>
|
||||
<li><a href="<ww:url action="ajaxExample"/>">Ajax</a></li>
|
||||
<li><a href="<ww:url action="freeMarkerExample"/>">FreeMarker</a></li>
|
||||
<li><a href="<ww:url action="velocityHelloWorld"/>">Velocity</a></li>
|
||||
<li><a href="<ww:url action="chartExample"/>">Chart example</a></li>
|
||||
<li><a href="<ww:url action="index" portletMode="edit"/>">Go to edit mode and see what's there</a></li>
|
||||
<li><a href="<ww:url action="index" portletMode="help"/>">Go to help mode and see what's there</a></li>
|
||||
<li><a href="<saf:url action="formExample"/>">A simple form</a></li>
|
||||
<li><a href="<saf:url action="validationExample"/>">Validation</a></li>
|
||||
<li><a href="<saf:url action="tokenExample"/>">Token</a></li>
|
||||
<li><a href="<saf:url action="springExample"/>">Spring integration</li>
|
||||
<li><a href="<saf:url action="ajaxExample"/>">Ajax</a></li>
|
||||
<li><a href="<saf:url action="freeMarkerExample"/>">FreeMarker</a></li>
|
||||
<li><a href="<saf:url action="velocityHelloWorld"/>">Velocity</a></li>
|
||||
<li><a href="<saf:url action="chartExample"/>">Chart example</a></li>
|
||||
<li><a href="<saf:url action="index" portletMode="edit"/>">Go to edit mode and see what's there</a></li>
|
||||
<li><a href="<saf:url action="index" portletMode="help"/>">Go to help mode and see what's there</a></li>
|
||||
</ul>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<h3>Example of Spring managed singleton. All the 'things' are contained in a Spring defined ThingManager</h3>
|
||||
|
||||
<b>Things in the list:</b>
|
||||
<p/>
|
||||
<ww:iterator value="things">
|
||||
<ww:property /><br/>
|
||||
</ww:iterator>
|
||||
<saf:iterator value="things">
|
||||
<saf:property /><br/>
|
||||
</saf:iterator>
|
||||
<p/>
|
||||
<ww:form action="springExample" method="POST">
|
||||
<ww:textfield label="Thing to add?" name="thing" value=""/>
|
||||
<ww:submit value="Add the thing"/>
|
||||
</ww:form>
|
||||
<saf:form action="springExample" method="POST">
|
||||
<saf:textfield label="Thing to add?" name="thing" value=""/>
|
||||
<saf:submit value="Add the thing"/>
|
||||
</saf:form>
|
||||
<p/>
|
||||
<a href="<ww:url action="index"/>">Back to front page</a>
|
||||
<a href="<saf:url action="index"/>">Back to front page</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
|
||||
<H2>The form was successfully submitted with a valid token</H2>
|
||||
|
||||
<a href="<ww:url action="index"/>"/>Back to front page</a>
|
||||
<a href="<saf:url action="index"/>"/>Back to front page</a>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<ww:if test="hasErrors()">
|
||||
<%@ taglib prefix="saf" uri="/struts-action" %>
|
||||
<saf:if test="hasErrors()">
|
||||
ERROR:<br />
|
||||
<font color="red">
|
||||
<ww:iterator value="actionErrors">
|
||||
<ww:property/><br />
|
||||
</ww:iterator>
|
||||
<saf:iterator value="actionErrors">
|
||||
<saf:property/><br />
|
||||
</saf:iterator>
|
||||
</font>
|
||||
</ww:if>
|
||||
</saf:if>
|
||||
<H2>Form with invalid token</H2>
|
||||
<ww:form action="processTokenExample" method="POST">
|
||||
<ww:textfield label="The value to submit" name="theValue" value=""/>
|
||||
<ww:submit value="Submit the form"/>
|
||||
</ww:form>
|
||||
<saf:form action="processTokenExample" method="POST">
|
||||
<saf:textfield label="The value to submit" name="theValue" value=""/>
|
||||
<saf:submit value="Submit the form"/>
|
||||
</saf:form>
|
||||
<H2>Form with valid token</H2>
|
||||
<ww:form action="processTokenExample" method="POST">
|
||||
<ww:token/>
|
||||
<ww:textfield label="The value to submit" name="theValue" value=""/>
|
||||
<ww:submit value="Submit the form"/>
|
||||
</ww:form>
|
||||
<saf:form action="processTokenExample" method="POST">
|
||||
<saf:token/>
|
||||
<saf:textfield label="The value to submit" name="theValue" value=""/>
|
||||
<saf:submit value="Submit the form"/>
|
||||
</saf:form>
|
||||
|
||||
Reference in New Issue
Block a user