mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
Updates configuration and replaces jsp with action
This commit is contained in:
@@ -54,6 +54,33 @@
|
||||
<result>/WEB-INF/ajax/tabbedpanel/example5Ok.jsp</result>
|
||||
</action>
|
||||
</package>
|
||||
|
||||
<package name="ajax-examples" namespace="/ajax" extends="struts-default">
|
||||
<action name="bind">
|
||||
<result>/WEB-INF/ajax/bind/index.jsp</result>
|
||||
</action>
|
||||
<action name="autocompleter">
|
||||
<result>/WEB-INF/ajax/autocompleter/index.jsp</result>
|
||||
</action>
|
||||
<action name="remotebutton">
|
||||
<result>/WEB-INF/ajax/remotebutton/index.jsp</result>
|
||||
</action>
|
||||
<action name="remotediv">
|
||||
<result>/WEB-INF/ajax/remotediv/index.jsp</result>
|
||||
</action>
|
||||
<action name="remotelink">
|
||||
<result>/WEB-INF/ajax/remotelink/index.jsp</result>
|
||||
</action>
|
||||
<action name="tabbedpanel">
|
||||
<result>/WEB-INF/ajax/tabbedpanel/index.jsp</result>
|
||||
</action>
|
||||
<action name="remoteforms">
|
||||
<result>/WEB-INF/ajax/remoteforms/index.jsp</result>
|
||||
</action>
|
||||
<action name="widgets">
|
||||
<result>/WEB-INF/ajax/widgets/index.jsp</result>
|
||||
</action>
|
||||
</package>
|
||||
|
||||
<package name="ajaxNoDecorate" namespace="/nodecorate" extends="json-default">
|
||||
<!-- example 4 -->
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
<struts>
|
||||
<package name="conversion" namespace="/conversion" extends="struts-default">
|
||||
|
||||
<action name="index">
|
||||
<result>/WEB-INF/conversion/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<!-- Example populating a List inside an Action -->
|
||||
<action name="enterPersonsInfo" method="input"
|
||||
class="org.apache.struts2.showcase.conversion.PersonAction">
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
<default-action-ref name="download"/>
|
||||
|
||||
<action name="index">
|
||||
<result>/WEB-INF/filedownload/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="download" class="org.apache.struts2.showcase.filedownload.FileDownloadAction">
|
||||
<param name="inputPath">/images/struts.gif</param>
|
||||
<result name="success" type="stream">
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<!-- Display entry page that uses Model-Driven technique -->
|
||||
<action name="editGangster" class="org.apache.struts2.s1.Struts1Action">
|
||||
<param name="className">org.apache.struts2.showcase.integration.EditGangsterAction</param>
|
||||
<result>modelDriven.jsp</result>
|
||||
<result>/WEB-INF/integration/modelDriven.jsp</result>
|
||||
</action>
|
||||
|
||||
<!-- Display the result page whose content is populated using the Model-Driven technique -->
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
"http://struts.apache.org/dtds/struts-2.3.dtd">
|
||||
|
||||
<struts>
|
||||
<package name="interactive" namespace="/interactive" extends="struts-default">
|
||||
<action name="index">
|
||||
<result>/WEB-INF/interactive/index.jsp</result>
|
||||
</action>
|
||||
</package>
|
||||
<package name="ognl" namespace="/nodecorate" extends="struts-default">
|
||||
<action name="jspEval" class="org.apache.struts2.showcase.action.JSPEvalAction">
|
||||
<interceptor-ref name="params"/>
|
||||
|
||||
@@ -20,6 +20,10 @@
|
||||
|
||||
<default-interceptor-ref name="jsfFullStack"/>
|
||||
|
||||
<action name="index">
|
||||
<result>/WEB-INF/jsf/index.jsp</result>
|
||||
</action>
|
||||
|
||||
</package>
|
||||
|
||||
<package name="jsf.employee" extends="jsf" namespace="/jsf/employee">
|
||||
|
||||
@@ -128,6 +128,9 @@
|
||||
<!-- === Package for Debug Tag === -->
|
||||
<!-- ========================================== -->
|
||||
<package name="debugTagPackage" extends="struts-default" namespace="/tags/non-ui">
|
||||
<action name="date">
|
||||
<result>/WEB-INF/tags/non-ui/date.jsp</result>
|
||||
</action>
|
||||
<action name="debugTagDemo">
|
||||
<result>/WEB-INF/tags/non-ui/debug.jsp</result>
|
||||
</action>
|
||||
|
||||
@@ -46,10 +46,18 @@
|
||||
|
||||
<!-- END SNIPPET: treeExampleDynamicXWorkXml -->
|
||||
|
||||
<action name="treeExampleStatic">
|
||||
<result>/WEB-INF/tags/ui/treeExampleStatic.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="showDynamicAjaxTreeAction">
|
||||
<result>/WEB-INF/tags/ui/treeExampleAjaxDynamic.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="componentTagExample">
|
||||
<result>/WEB-INF/tags/ui/componentTagExample.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="showComponentTagExampleCode">
|
||||
<result type="plainText">/WEB-INF/tags/ui/componentTagExample.jsp</result>
|
||||
</action>
|
||||
@@ -58,6 +66,14 @@
|
||||
<result>/WEB-INF/tags/ui/actionTagExampleCalled.jsp</result>
|
||||
<result name="input">/WEB-INF/tags/ui/actionTagExampleCalling.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="datepicker">
|
||||
<result>/WEB-INF/tags/ui/datepicker/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="timepicker">
|
||||
<result>/WEB-INF/tags/ui/timepicker/index.jsp</result>
|
||||
</action>
|
||||
</package>
|
||||
|
||||
<!-- START SNIPPET: treeExampleXWorkXml -->
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
<struts>
|
||||
<package name="validation" extends="json-default" namespace="/validation">
|
||||
<action name="index">
|
||||
<result>/WEB-INF/validation/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="quizBasic" class="org.apache.struts2.showcase.validation.QuizAction">
|
||||
<result name="input">quiz-basic.jsp</result>
|
||||
<result>quiz-success.jsp</result>
|
||||
@@ -111,6 +115,9 @@
|
||||
</interceptor-ref>
|
||||
<result>/WEB-INF/validation/storeErrorsAcrossRequestExample.jsp</result>
|
||||
</action>
|
||||
<action name="storeErrorsAcrossRequestExample">
|
||||
<result>/WEB-INF/validation/storeErrorsAcrossRequestExample.jsp</result>
|
||||
</action>
|
||||
<action name="applicationOk" class="org.apache.struts2.showcase.validation.SubmitApplication" method="applicationOk">
|
||||
<interceptor-ref name="store">
|
||||
<param name="operationMode">RETRIEVE</param>
|
||||
|
||||
@@ -6,6 +6,18 @@
|
||||
<struts>
|
||||
<package name="wait" extends="struts-default" namespace="/wait">
|
||||
|
||||
<action name="example1">
|
||||
<result>/WEB-INF/wait/example1.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="example2">
|
||||
<result>/WEB-INF/wait/example2.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="example3">
|
||||
<result>/WEB-INF/wait/example3.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="longProcess1" class="org.apache.struts2.showcase.wait.LongProcessAction">
|
||||
<interceptor-ref name="defaultStack"/>
|
||||
<interceptor-ref name="execAndWait"/>
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
|
||||
<!-- Some or all of these can be flipped to true for debugging -->
|
||||
<constant name="struts.i18n.reload" value="false" />
|
||||
<constant name="struts.enable.DynamicMethodInvocation" value="true" />
|
||||
<constant name="struts.devMode" value="false" />
|
||||
<constant name="struts.configuration.xml.reload" value="false" />
|
||||
<constant name="struts.custom.i18n.resources" value="globalMessages" />
|
||||
<constant name="struts.action.extension" value="action,," />
|
||||
|
||||
<constant name="struts.convention.package.locators.basePackage" value="org.apache.struts2.showcase.person" />
|
||||
<constant name="struts.convention.result.path" value="/" />
|
||||
<constant name="struts.convention.result.path" value="/WEB-INF" />
|
||||
|
||||
<!-- Necessary for Showcase because default includes org.apache.struts2.* -->
|
||||
<constant name="struts.convention.exclude.packages" value="org.apache.struts.*,org.springframework.web.struts.*,org.springframework.web.struts2.*,org.hibernate.*"/>
|
||||
@@ -75,11 +76,11 @@
|
||||
<default-action-ref name="showcase" />
|
||||
|
||||
<action name="showcase">
|
||||
<result>../webapp/WEB-INF/showcase.jsp</result>
|
||||
<result>/WEB-INF/showcase.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="viewSource" class="org.apache.struts2.showcase.source.ViewSourceAction">
|
||||
<result>../webapp/WEB-INF/viewSource.jsp</result>
|
||||
<result>/WEB-INF/viewSource.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="date" class="org.apache.struts2.showcase.DateAction" method="browse">
|
||||
@@ -92,20 +93,20 @@
|
||||
<default-interceptor-ref name="crudStack"/>
|
||||
|
||||
<action name="list" class="org.apache.struts2.showcase.action.SkillAction" method="list">
|
||||
<result>/empmanager/listSkills.jsp</result>
|
||||
<result>/WEB-INF/empmanager/listSkills.jsp</result>
|
||||
<interceptor-ref name="basicStack"/>
|
||||
</action>
|
||||
<action name="edit" class="org.apache.struts2.showcase.action.SkillAction">
|
||||
<result>/empmanager/editSkill.jsp</result>
|
||||
<result>/WEB-INF/empmanager/editSkill.jsp</result>
|
||||
<interceptor-ref name="params" />
|
||||
<interceptor-ref name="basicStack"/>
|
||||
</action>
|
||||
<action name="save" class="org.apache.struts2.showcase.action.SkillAction" method="save">
|
||||
<result name="input">/empmanager/editSkill.jsp</result>
|
||||
<result name="input">/WEB-INF/empmanager/editSkill.jsp</result>
|
||||
<result type="redirect">list.action</result>
|
||||
</action>
|
||||
<action name="delete" class="org.apache.struts2.showcase.action.SkillAction" method="delete">
|
||||
<result name="error">/empmanager/editSkill.jsp</result>
|
||||
<result name="error">/WEB-INF/empmanager/editSkill.jsp</result>
|
||||
<result type="redirect">list.action</result>
|
||||
</action>
|
||||
</package>
|
||||
@@ -114,20 +115,20 @@
|
||||
<default-interceptor-ref name="crudStack"/>
|
||||
|
||||
<action name="list" class="org.apache.struts2.showcase.action.EmployeeAction" method="list">
|
||||
<result>/empmanager/listEmployees.jsp</result>
|
||||
<result>/WEB-INF/empmanager/listEmployees.jsp</result>
|
||||
<interceptor-ref name="basicStack"/>
|
||||
</action>
|
||||
<action name="edit-*" class="org.apache.struts2.showcase.action.EmployeeAction">
|
||||
<param name="empId">{1}</param>
|
||||
<result>/empmanager/editEmployee.jsp</result>
|
||||
<result>/WEB-INF/empmanager/editEmployee.jsp</result>
|
||||
<interceptor-ref name="crudStack"><param name="validation.excludeMethods">execute</param></interceptor-ref>
|
||||
</action>
|
||||
<action name="save" class="org.apache.struts2.showcase.action.EmployeeAction" method="save">
|
||||
<result name="input">/empmanager/editEmployee.jsp</result>
|
||||
<result name="input">/WEB-INF/empmanager/editEmployee.jsp</result>
|
||||
<result type="redirect">list.action</result>
|
||||
</action>
|
||||
<action name="delete" class="org.apache.struts2.showcase.action.EmployeeAction" method="delete">
|
||||
<result name="error">/empmanager/editEmployee.jsp</result>
|
||||
<result name="error">/WEB-INF/empmanager/editEmployee.jsp</result>
|
||||
<result type="redirect">list.action</result>
|
||||
</action>
|
||||
</package>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Ajax Examples</title>
|
||||
|
||||
<!--// START SNIPPET: common-include-->
|
||||
<jsp:include page="/WEB-INF/ajax/commonInclude.jsplude.jsp"/>
|
||||
<jsp:include page="/WEB-INF/ajax/commonInclude.jsp"/>
|
||||
<!--// END SNIPPET: common-include-->
|
||||
</head>
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
|
||||
Using a JSON list returned from an action (href="/JSONList.action"), without autoComplete (autoComplete="false"), use indicator, search substring (searchType="substring")
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
<sx:autocompleter
|
||||
id="auto1"
|
||||
indicator="indicator1"
|
||||
href="%{jsonList}"
|
||||
cssStyle="width: 200px;"
|
||||
@@ -77,7 +78,8 @@ Reload on type (loadOnTextChange="true"), after 3 characters (loadMinimumCount="
|
||||
|
||||
Using a JSON list returned from an action (href="/JSONList.action"), with autoComplete (autoComplete="true")
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
<sx:autocompleter
|
||||
id="auto3"
|
||||
name="auto3"
|
||||
href="%{#jsonList}"
|
||||
cssStyle="width: 200px;"
|
||||
@@ -87,13 +89,14 @@ Using a JSON list returned from an action (href="/JSONList.action"), with autoCo
|
||||
|
||||
Using a local list (list="%{'apple','banana','grape','pear'}")
|
||||
<br/>
|
||||
<sx:autocompleter list="{'apple','banana','grape','pear'}" cssStyle="width: 150px;"/>
|
||||
<sx:autocompleter id="auto-list" list="{'apple','banana','grape','pear'}" cssStyle="width: 150px;"/>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
Force valid options (forceValidOption="true")
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
<sx:autocompleter
|
||||
id="auto4"
|
||||
name="auto4"
|
||||
href="%{#jsonList}"
|
||||
cssStyle="width: 200px;"
|
||||
@@ -105,8 +108,9 @@ Force valid options (forceValidOption="true")
|
||||
Make dropdown's height to 180px (dropdownHeight="180")
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
id="auto5"
|
||||
name="auto5"
|
||||
href="%{#jsonList}"
|
||||
href="%{#jsonList}"
|
||||
cssStyle="width: 200px;"
|
||||
dropdownHeight="180"/>
|
||||
|
||||
@@ -116,8 +120,9 @@ Make dropdown's height to 180px (dropdownHeight="180")
|
||||
Disabled combobox (disabled="true")
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
id="auto6"
|
||||
name="auto6"
|
||||
href="%{#jsonList}"
|
||||
href="%{#jsonList}"
|
||||
cssStyle="width: 200px;"
|
||||
disabled="true"/>
|
||||
|
||||
@@ -133,8 +138,9 @@ Link two autocompleter elements. When the selected value in 'Autocompleter 1' ch
|
||||
<p>
|
||||
Autocompleter 1
|
||||
<sx:autocompleter
|
||||
name="select"
|
||||
list="{'fruits','colors'}"
|
||||
id="auto7"
|
||||
name="select"
|
||||
list="{'fruits','colors'}"
|
||||
value="colors"
|
||||
valueNotifyTopics="/Changed"
|
||||
forceValidOption="true"/>
|
||||
@@ -142,6 +148,7 @@ Link two autocompleter elements. When the selected value in 'Autocompleter 1' ch
|
||||
</form>
|
||||
Autocompleter 2
|
||||
<sx:autocompleter
|
||||
id="auto8"
|
||||
name="auto8"
|
||||
href="%{#autoex}"
|
||||
autoComplete="false"
|
||||
@@ -154,8 +161,9 @@ Autocompleter 2
|
||||
Publish before/after/value notify topics
|
||||
<br/>
|
||||
<sx:autocompleter
|
||||
id="auto9"
|
||||
name="auto9"
|
||||
href="%{#jsonList}"
|
||||
href="%{#jsonList}"
|
||||
listenTopics="/reload"
|
||||
beforeNotifyTopics="/before"
|
||||
afterNotifyTopics="/after"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ taglib prefix="s" uri="/struts-tags" %>
|
||||
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
|
||||
<!--// START SNIPPET: common-include-->
|
||||
<sx:head cache="true"/>
|
||||
<sx:head cache="false"/>
|
||||
<!--// END SNIPPET: common-include-->
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<hr/>
|
||||
|
||||
<s:url var="backToAjaxExamples" value="../../index.jsp" />
|
||||
<s:url var="backToAjaxExamples" value="/ajax/index.html" />
|
||||
|
||||
<s:a href="%{backToAjaxExamples}">Back To AJAX Examples</s:a>
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<html>
|
||||
<head><title>AJAX Examples</title></head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>AJAX Example</h1>
|
||||
|
||||
<p>
|
||||
Note: The Ajax tags are experimental. These examples have only been tested under FireFox 1.5 and IE 6.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="bind/index.jsp">Bind tag</a></li>
|
||||
<li><a href="autocompleter/index.jsp">Autocompleter combobox tag</a></li>
|
||||
<li><a href="remotebutton/index.jsp">Remote button tag</a></li>
|
||||
<li><a href="remotediv/index.jsp">Remote div tag</a></li>
|
||||
<li><a href="remotelink/index.jsp">Remote link tag</a></li>
|
||||
<li><a href="tabbedpanel/index.jsp">Tabbed panel</a></li>
|
||||
<li><a href="remoteforms/index.jsp">Remote forms</a></li>
|
||||
<li><a href="widgets/index.jsp">Widgets </a> (may not work in all browsers!)
|
||||
see the <a href="http://www.dojotoolkit.org">dojo website</a> for more information</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -95,7 +95,7 @@
|
||||
<li><s:a action="index" namespace="/config-browser"
|
||||
includeParams="none">Config Browser</s:a></li>
|
||||
<li><s:a value="/conversion/index.jsp">Conversion</s:a></li>
|
||||
<li><s:a value="/person/index.jsp">Person Manager ( by Conventions )</s:a></li>
|
||||
<li><s:a value="/person/index.html">Person Manager ( by Conventions )</s:a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
@@ -106,7 +106,7 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li><s:url var="url" action="showActionTagDemo" namespace="/tags/non-ui/actionTag"/><s:a
|
||||
href="%{url}">Action Tag</s:a></li>
|
||||
<li><s:url var="url" value="/tags/non-ui/date.jsp"/><s:a
|
||||
<li><s:url var="url" namespace="/tags/non-ui" action="date"/><s:a
|
||||
href="%{url}">Date Tag</s:a></li>
|
||||
<li><s:url var="url" action="debugTagDemo" namespace="/tags/non-ui"/><s:a
|
||||
href="%{url}">Debug Tag</s:a></li>
|
||||
@@ -149,7 +149,7 @@
|
||||
<li><s:url var="url" namespace="/tags/ui" action="moreSelects" method="input"/><s:a
|
||||
href="%{url}">More Select Box UI Examples</s:a></li>
|
||||
<li>
|
||||
<s:url var="url" namespace="/tags/ui" value="/tags/ui/treeExampleStatic.jsp"/>
|
||||
<s:url var="url" namespace="/tags/ui" action="treeExampleStatic"/>
|
||||
<s:a href="%{url}">Tree Example (static)</s:a>
|
||||
<li>
|
||||
<s:url var="url" namespace="/tags/ui" action="showDynamicTreeAction"/>
|
||||
@@ -158,13 +158,13 @@
|
||||
<s:url var="url" namespace="/tags/ui" action="showDynamicAjaxTreeAction"/>
|
||||
<s:a href="%{url}">Tree Example (dynamic ajax loading)</s:a>
|
||||
<li>
|
||||
<s:url var="url" value="/tags/ui/componentTagExample.jsp"/>
|
||||
<s:url var="url" namespace="/tags/ui" action="componentTagExample"/>
|
||||
<s:a href="%{#url}">Component Tag Example</s:a>
|
||||
<li><s:url var="url" namespace="/tags/ui" action="actionTagExample" method="input"/><s:a
|
||||
href="%{url}">Action Tag Example</s:a></li>
|
||||
<li><s:url var="url" value="/tags/ui/datepicker/index.jsp"/><s:a
|
||||
<li><s:url var="url" namespace="/tags/ui" action="datepicker"/><s:a
|
||||
href="%{#url}">DateTime picker tag - Pick a date</s:a></li>
|
||||
<li><s:url var="url" value="/tags/ui/timepicker/index.jsp"/><s:a
|
||||
<li><s:url var="url" namespace="/tags/ui" action="timepicker"/><s:a
|
||||
href="%{#url}">DateTime picker tag - Pick a time</s:a></li>
|
||||
<%--li><s:url var="url" namespace="/tags/ui" action="populateUsingIterator" method="input" /><s:a href="%{url}">UI population using iterator tag</s:a></li--%>
|
||||
</ul>
|
||||
@@ -174,7 +174,7 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">File<b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><s:a value="/filedownload/index.jsp">File Download</s:a></li>
|
||||
<li><s:a namespace="/filedownload" action="index">File Download</s:a></li>
|
||||
<li class="dropdown-submenu">
|
||||
<a href="#">File Upload</a>
|
||||
<ul class="dropdown-menu">
|
||||
@@ -207,11 +207,11 @@
|
||||
href="%{url}">Hangman (Ajax - Experimental)</s:a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><s:a value="/person/index.jsp">Person Manager</s:a></li>
|
||||
<li><s:a value="/empmanager/index.jsp">CRUD</s:a></li>
|
||||
<li><s:a value="/wait/index.jsp">Execute & Wait</s:a></li>
|
||||
<li><s:a value="/token/index.jsp">Token</s:a></li>
|
||||
<li><s:a value="/validation/index.jsp">Validation</s:a></li>
|
||||
<li><s:a value="/person/index.html">Person Manager</s:a></li>
|
||||
<li><s:a value="/skill/index.html">CRUD</s:a></li>
|
||||
<li><s:a value="/wait/index.html">Execute & Wait</s:a></li>
|
||||
<li><s:a value="/token/index.html">Token</s:a></li>
|
||||
<li><s:a value="/validation/index.action">Validation</s:a></li>
|
||||
<li><s:url var="url" namespace="/modelDriven" action="modelDriven"/><s:a
|
||||
href="%{url}">Model Driven</s:a></li>
|
||||
</ul>
|
||||
@@ -232,19 +232,19 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><s:a value="/jsf/index.jsp">JavaServer Faces</s:a></li>
|
||||
<li><s:a value="/integration/editGangster">Struts 1 Integration</s:a></li>
|
||||
<li><s:a namespace="/jsf" action="index">JavaServer Faces</s:a></li>
|
||||
<li><s:a namespace="/integration" action="editGangster">Struts 1 Integration</s:a></li>
|
||||
<li><s:a value="/tiles/index.action">Tiles</s:a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">AJAX<b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><s:a value="/ajax/index.jsp">Ajax plugin</s:a></li>
|
||||
<li><s:a value="/chat/index.jsp">Ajax Chat</s:a></li>
|
||||
<li><s:a value="/ajax/index.html">Ajax plugin</s:a></li>
|
||||
<li><s:a value="/chat/index.html">Ajax Chat</s:a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><s:a value="/interactive/index.jsp">Interactive Demo</s:a></li>
|
||||
<li><s:a value="/interactive/index.action">Interactive Demo</s:a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav pull-right">
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<% response.sendRedirect("../employee/list.action"); %>
|
||||
@@ -1 +0,0 @@
|
||||
<% response.sendRedirect("list-people.action"); %>
|
||||
@@ -27,22 +27,22 @@
|
||||
|
||||
<tiles-definitions>
|
||||
|
||||
<definition name="showcase.index" template="/tiles/layout.jsp">
|
||||
<definition name="showcase.index" template="/WEB-INF/tiles/layout.jsp">
|
||||
<put-attribute name="title" value="Tiles Showcase"/>
|
||||
<put-attribute name="header" value="/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/tiles/body.jsp"/>
|
||||
<put-attribute name="header" value="/WEB-INF/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/WEB-INF/tiles/body.jsp"/>
|
||||
</definition>
|
||||
|
||||
<definition name="showcase.freemarker" template="/tiles/layout.jsp">
|
||||
<definition name="showcase.freemarker" template="/WEB-INF/tiles/layout.jsp">
|
||||
<put-attribute name="title" value="Tiles/Freemarker Showcase"/>
|
||||
<put-attribute name="header" value="/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/tiles/body.ftl"/>
|
||||
<put-attribute name="header" value="/WEB-INF/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/WEB-INF/tiles/body.ftl"/>
|
||||
</definition>
|
||||
|
||||
<definition name="showcase.freemarkerLayout" template="/tiles/layout.ftl">
|
||||
<definition name="showcase.freemarkerLayout" template="/WEB-INF/tiles/layout.ftl">
|
||||
<put-attribute name="title" value="Tiles/Freemarker Showcase"/>
|
||||
<put-attribute name="header" value="/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/tiles/body.ftl"/>
|
||||
<put-attribute name="header" value="/WEB-INF/tiles/header.jsp"/>
|
||||
<put-attribute name="body" value="/WEB-INF/tiles/body.ftl"/>
|
||||
</definition>
|
||||
|
||||
</tiles-definitions>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<p/>
|
||||
Click here to
|
||||
<s:url var="back" value="/token/index.jsp"/><s:a href="%{back}">return</s:a>.
|
||||
<s:url var="back" value="/token/index.html"/><s:a href="%{back}">return</s:a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<p/>
|
||||
Click here to
|
||||
<s:url var="back" value="/token/index.jsp"/><s:a href="%{back}">return</s:a>.
|
||||
<s:url var="back" value="/token/index.html"/><s:a href="%{back}">return</s:a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<s:url var="visitorValidatorUrl" action="showVisitorValidatorsExamples" namespace="/validation"/>
|
||||
<s:url var="clientSideValidationUrl" action="clientSideValidationExample" namespace="/validation"/>
|
||||
<s:url var="backToShowcase" action="showcase" namespace="/"/>
|
||||
<s:url var="storeMessageAcrossRequestExample" value="/validation/storeErrorsAcrossRequestExample.jsp"/>
|
||||
<s:url var="storeMessageAcrossRequestExample" namespace="/validation" action="storeErrorsAcrossRequestExample"/>
|
||||
|
||||
<ul>
|
||||
<li><s:a href="%{fieldValidatorUrl}">Field Validators</s:a></li>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<b>We have processed your request.</b>
|
||||
<p/>
|
||||
Click here to <s:url var="back" value="/wait/index.jsp"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>.
|
||||
Click here to <s:url var="back" value="/wait/index.html"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<b>We have processed your request.</b>
|
||||
<p/>
|
||||
Click here to <s:url var="back" value="/wait/index.jsp"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>.
|
||||
Click here to <s:url var="back" value="/wait/index.html"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head><title>AJAX Examples</title></head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>AJAX Example</h1>
|
||||
|
||||
<p>
|
||||
Note: The Ajax tags are experimental. These examples have only been tested under FireFox 1.5 and IE 6.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="bind.action">Bind tag</a></li>
|
||||
<li><a href="autocompleter.action">Autocompleter combobox tag</a></li>
|
||||
<li><a href="remotebutton.action">Remote button tag</a></li>
|
||||
<li><a href="remotediv.action">Remote div tag</a></li>
|
||||
<li><a href="remotelink.action">Remote link tag</a></li>
|
||||
<li><a href="tabbedpanel.action">Tabbed panel</a></li>
|
||||
<li><a href="remoteforms.action">Remote forms</a></li>
|
||||
<li><a href="widgets.action">Widgets </a> (may not work in all browsers!)
|
||||
see the <a href="http://www.dojotoolkit.org">dojo website</a> for more information</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=list-people.action">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>Loading ...</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=list.action">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>Loading ...</p>
|
||||
</body>
|
||||
</html>
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
<%@ taglib prefix="s" uri="/struts-tags" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>Struts2 Showcase - Token Examples (double post)</title>
|
||||
+3
-4
@@ -1,4 +1,3 @@
|
||||
<%@ taglib prefix="s" uri="/struts-tags" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>Struts2 Showcase - Execute and Wait Examples</title>
|
||||
@@ -24,9 +23,9 @@
|
||||
<p/>
|
||||
|
||||
<br/>
|
||||
<br/><a href="example1.jsp">Example 1 (no delay)</a>
|
||||
<br/><a href="example2.jsp">Example 2 (with delay)</a>
|
||||
<br/><a href="example3.jsp">Example 3 (with longer check delay)</a>
|
||||
<br/><a href="example1.action">Example 1 (no delay)</a>
|
||||
<br/><a href="example2.action">Example 2 (with delay)</a>
|
||||
<br/><a href="example3.action">Example 3 (with longer check delay)</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user