Repository: struts Updated Branches: refs/heads/feature/move-jsps-under-webinf d07e8044b -> c0a312a82 http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/exampleSubmited.vm ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/exampleSubmited.vm b/apps/showcase/src/main/webapp/tags/ui/exampleSubmited.vm deleted file mode 100644 index 9646a4f..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/exampleSubmited.vm +++ /dev/null @@ -1,61 +0,0 @@ - - - Struts2 Showcase - UI Tags Example (Velocity) - Example Submited - - - - -
-
-
- - - #slabel ("label=Name" "name=name") - #slabel ("label=Birthday" "name=birthday") - - - - - #slabel ("label=Biography" "name=bio") - #slabel ("label=Favourite Color" "name=favouriteColor") - #slabel ("label=Friends" "name=friends") - #slabel ("label=Legal Age" "name=legalAge") - #slabel ("label=Region" "name=region") - #slabel ("label=State" "name=state") - #slabel ("label=Picture" "name=picture") - #slabel ("label=Favourite Language" "name=favouriteLanguage") - #slabel ("label=Favourite Vehical Type" "name=favouriteVehicalType") - #slabel ("label=Favourite Vehical Specific" "name=favouriteVehicalSpecific") - - - - - - - - -
- #sdate ("name=wakeup" "format=hh:mm aa") -
Favourite Cartoon Characters (Left): - #set ( $startCount = 1) - #foreach( $item in $leftSideCartoonCharacters) - $startCount.${item}  - #set ( $startCount = $startCount + 1) - #end -
Favourite Cartoon Characters (Right): - #set ( $startCount = 1) - #foreach( $item in $rightSideCartoonCharacters) - $startCount.${item}  - #set ( $startCount = $startCount + 1) - #end -
- - #surl ("id=url" "value=index.jsp") - #sa("href=${url}")Back to index.jsp#end -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/images/backgroundImage.jpg ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/images/backgroundImage.jpg b/apps/showcase/src/main/webapp/tags/ui/images/backgroundImage.jpg deleted file mode 100644 index 0f9cb92..0000000 Binary files a/apps/showcase/src/main/webapp/tags/ui/images/backgroundImage.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/images/leopard.jpg ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/images/leopard.jpg b/apps/showcase/src/main/webapp/tags/ui/images/leopard.jpg deleted file mode 100644 index f67f96b..0000000 Binary files a/apps/showcase/src/main/webapp/tags/ui/images/leopard.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselect.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselect.jsp b/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselect.jsp deleted file mode 100644 index d4aca42..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselect.jsp +++ /dev/null @@ -1,101 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - UI Tags - Optiontransferselect - - - - - -
-
-
- - - - -
- - - -
- - - -
- - - -
- - -
- - -
-
-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselectSubmit.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselectSubmit.jsp b/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselectSubmit.jsp deleted file mode 100644 index 03d6adc..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/lotsOfOptiontransferselectSubmit.jsp +++ /dev/null @@ -1,103 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - UI Tags - Optiontransferselect Result - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Favourite Cartoons: - - .  - -
Non Favourite Cartoons: - - .  - -
Favourite Cars: - - .  - -
Non Favourite Cars: - - .  - -
Favourite Motorcycles: - - .  - -
Non Favourite Motorcycles: - - .  - -
Favourite Countries: - - .  - -
Non Favourite Countries: - - .  - -
Favourite Sports: - - .  - -
Non Favourite Sports: - - .  - -
-
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/moreSelects.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/moreSelects.jsp b/apps/showcase/src/main/webapp/tags/ui/moreSelects.jsp deleted file mode 100644 index 39019f0..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/moreSelects.jsp +++ /dev/null @@ -1,69 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - UI Tags - More Select Box UI Examples - - - - - -
-
-
- - - - - -
- - - -
- - - -
- - - - - - - -
- -
-
-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/moreSelectsSubmit.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/moreSelectsSubmit.jsp b/apps/showcase/src/main/webapp/tags/ui/moreSelectsSubmit.jsp deleted file mode 100644 index 82a0a70..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/moreSelectsSubmit.jsp +++ /dev/null @@ -1,63 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - UI Tags - More Select Box UI Examples - Result - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
Prioritised Favourite Cartoon Characters: - - .  - -
Prioritised Favourite Cars: - - .  - -
Prioritised Favourite Countries - - .  - -
Favourite Cities - - .  - -
Favourite Numbers - - .  - -
-
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/staticTreeSelect.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/staticTreeSelect.jsp b/apps/showcase/src/main/webapp/tags/ui/staticTreeSelect.jsp deleted file mode 100644 index b126aa9..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/staticTreeSelect.jsp +++ /dev/null @@ -1,11 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - -<% - request.setAttribute("decorator", "none"); - response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 - response.setHeader("Pragma","no-cache"); //HTTP 1.0 - response.setDateHeader ("Expires", 0); //prevents caching at the proxy server -%> - -${parameters.nodeId[0]} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/timepicker/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/timepicker/index.jsp b/apps/showcase/src/main/webapp/tags/ui/timepicker/index.jsp deleted file mode 100644 index 4c98f12..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/timepicker/index.jsp +++ /dev/null @@ -1,31 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - Struts2 Showcase - UI Tags - Timepicker Tag - - - - - -
-
-
- - - - - - - - - - -
-
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.ftl b/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.ftl deleted file mode 100644 index 8c78f6c..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.ftl +++ /dev/null @@ -1,9 +0,0 @@ -[ -<#list category.children as node> - { - label: '${node.name}', - id: '${node.id}', - hasChildren: ${(node.children.size() > 0)?string} - }, - -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.jsp b/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.jsp deleted file mode 100644 index e858fd5..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/treeExampleAjaxDynamic.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - Struts2 Showcase - UI Tags - Tree Example AJAX (Dynamic) - - - - - -
-
-
- - -
- -
-
-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/treeExampleDynamic.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/treeExampleDynamic.jsp b/apps/showcase/src/main/webapp/tags/ui/treeExampleDynamic.jsp deleted file mode 100644 index 07a5adb..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/treeExampleDynamic.jsp +++ /dev/null @@ -1,54 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - Struts2 Showcase - UI Tags - Tree Example (Dynamic) - - - - - -
-
-
- - - - - - - -
- - -
- -
- Please click on any of the tree nodes. -
- - -
-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp b/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp deleted file mode 100644 index 76ab074..0000000 --- a/apps/showcase/src/main/webapp/tags/ui/treeExampleStatic.jsp +++ /dev/null @@ -1,61 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - Struts2 Showcase - UI Tags - Tree Example (Static) - - - - - -
-
-
- - - - - - -
- - - - - - - - - - - - - - -
- - -
- Please click on any node on the tree. -
- - -
-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/template/xhtml/mytemplate.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/template/xhtml/mytemplate.jsp b/apps/showcase/src/main/webapp/template/xhtml/mytemplate.jsp deleted file mode 100644 index 7ebb967..0000000 --- a/apps/showcase/src/main/webapp/template/xhtml/mytemplate.jsp +++ /dev/null @@ -1,9 +0,0 @@ - -<%@taglib prefix="s" uri="/struts-tags" %> - -
-

-JSP Custom Template - -parameter 'paramName' - -

-
http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tiles/body.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tiles/body.ftl b/apps/showcase/src/main/webapp/tiles/body.ftl deleted file mode 100644 index bdaac05..0000000 --- a/apps/showcase/src/main/webapp/tiles/body.ftl +++ /dev/null @@ -1,16 +0,0 @@ -
-
-
-
-

This example illustrates the freemarker support in the Struts/Tiles Plugin.

- -

Tiles 2 is an effort to extract the Tiles library from Struts. It is currently housed - in the Sandbox area of the Apache Struts Subversion repository.

- - <@s.form> - <@s.textfield name="Textfield" value="Textfield"/> - -
-
-
-
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tiles/body.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tiles/body.jsp b/apps/showcase/src/main/webapp/tiles/body.jsp deleted file mode 100644 index 095762f..0000000 --- a/apps/showcase/src/main/webapp/tiles/body.jsp +++ /dev/null @@ -1,24 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> -
-
-
-
-

This example illustrates the Struts/Tiles Plugin.

- -

Tiles 2 is an effort to extract the Tiles library from Struts. It is currently housed - in the Sandbox area of the Apache Struts Subversion repository.

- -

Features

- - -
-
-
-
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tiles/header.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tiles/header.jsp b/apps/showcase/src/main/webapp/tiles/header.jsp deleted file mode 100644 index d98f001..0000000 --- a/apps/showcase/src/main/webapp/tiles/header.jsp +++ /dev/null @@ -1,3 +0,0 @@ - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tiles/layout.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tiles/layout.ftl b/apps/showcase/src/main/webapp/tiles/layout.ftl deleted file mode 100644 index 9ce5915..0000000 --- a/apps/showcase/src/main/webapp/tiles/layout.ftl +++ /dev/null @@ -1,10 +0,0 @@ -<#assign tiles=JspTaglibs["http://tiles.apache.org/tags-tiles"]> -<@tiles.importAttribute name="title" scope="request"/> - - Struts2 Showcase - <@tiles.getAsString name="title"/> - - <@tiles.insertAttribute name="header"/> - <@tiles.insertAttribute name="body"/> -

Notice that this is a layout made in FreeMarker

- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/tiles/layout.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/tiles/layout.jsp b/apps/showcase/src/main/webapp/tiles/layout.jsp deleted file mode 100644 index 964d014..0000000 --- a/apps/showcase/src/main/webapp/tiles/layout.jsp +++ /dev/null @@ -1,13 +0,0 @@ -<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> -<%@ taglib prefix="s" uri="/struts-tags" %> - -<%-- Show usage; Used in Header --%> - - - Struts2 Showcase - <tiles:getAsString name="title"/> - - - -

Notice that this is a layout made in JSP

- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/doublePost.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/doublePost.jsp b/apps/showcase/src/main/webapp/token/doublePost.jsp deleted file mode 100644 index 761d44b..0000000 --- a/apps/showcase/src/main/webapp/token/doublePost.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples - Double post - - - - - - -
-
-
- -

- Double post. Struts intercepted this request and prevents the action from executing again. -

- -

- Click here to - return. -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/example1.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/example1.jsp b/apps/showcase/src/main/webapp/token/example1.jsp deleted file mode 100644 index 9495671..0000000 --- a/apps/showcase/src/main/webapp/token/example1.jsp +++ /dev/null @@ -1,50 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples - Example 1 - - - - - - -
-
-
- -

- Example 1: This example illustrates a situation where you can transfer money from - one account to another. We use the token to prevent double posts so the transfer only - happens once. -

- -

-
Balance of source account: -
Balance of destination account: -

- - - - - - - -

-
-
- - - - -<%@ taglib prefix="s" uri="/struts-tags" %> - - Token Examples - - -

Token Example 1

- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/example2.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/example2.jsp b/apps/showcase/src/main/webapp/token/example2.jsp deleted file mode 100644 index 7042ce8..0000000 --- a/apps/showcase/src/main/webapp/token/example2.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples - Example 2 - - - - - - -
-
-
- -

- Example 2: This example illustrates a situation where you can transfer money from - one account to another. We use the token to prevent double posts so the transfer only - happens once. This action will redirect after you have submitted the form. -

- -

- Balance of source account: -
Balance of destination account: -

- - - - - - - -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/example3.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/example3.jsp b/apps/showcase/src/main/webapp/token/example3.jsp deleted file mode 100644 index 4cf2b5a..0000000 --- a/apps/showcase/src/main/webapp/token/example3.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples - Example 3 - - - - - - -
-
-
- -

- Example 3: This example illustrates a situation where you can transfer money from - one account to another. We use the token to prevent double posts so the transfer only - happens once. This example uses the token session based interceptor and redirect after post. -

- -

Balance of source account: -
Balance of destination account: -

- - - - - - - -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/example4.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/example4.ftl b/apps/showcase/src/main/webapp/token/example4.ftl deleted file mode 100644 index e66b045..0000000 --- a/apps/showcase/src/main/webapp/token/example4.ftl +++ /dev/null @@ -1,40 +0,0 @@ - - - Struts2 Showcase - Token Examples - Example 4 - - - - - - -
-
-
- -

- Example 4: This example illustrates a situation where you can transfer money from - one account to another. We use the token to prevent double posts so the transfer only - happens once. This page is rendered using freemarker. See the xwork-token.xml where - we must also use the createSession interceptor to be sure that a HttpSession exists - when freemarker renders this webpage, otherwise the @s.token tag causes an exception - while rendering the page. - -

- -

Balance of source account: <@s.property value="#session.balanceSource"/> -
Balance of destination account: <@s.property value="#session.balanceDestination"/> - -

- - <@s.form action="transfer4"> - <@s.token/> - <@s.textfield label="Amount" name="amount" required="true" value="400"/> - <@s.submit value="Transfer money" cssClass="btn btn-primary"/> - -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/index.jsp b/apps/showcase/src/main/webapp/token/index.jsp deleted file mode 100644 index b65ff4e..0000000 --- a/apps/showcase/src/main/webapp/token/index.jsp +++ /dev/null @@ -1,48 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples (double post) - - - - - - -
-
-
- -

- These examples illustrate Struts build in support of using tokens to prevent double post. -

-

- You have a web page where user can input data and press a button to submit. - There could be a problem that the user submit the data many times, by either clicking the - button many times, or use the browser back button and then submit the form again. -
A good solution is to use a hidden token in the form. The token is autogenerated and unique - from time to time. This token is then validated with the HttpSession that it is the first time - it is submitted, if not we have a double post and therefore can prevent the second submit action. -

-

- For more information check out javadoc for org.apache.struts2.interceptor.TokenInterceptor - and org.apache.struts2.interceptor.TokenSessionStoreInterceptor. -

- -
-
Example 1 (token based .jsp example) - -
-
Example 2 (as example 1 with redirect after post) - -
-
Example 3 (token-session based .jsp example) - -
-
Example 4 (token based freemarker example) -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/token/transferDone.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/token/transferDone.jsp b/apps/showcase/src/main/webapp/token/transferDone.jsp deleted file mode 100644 index a67078c..0000000 --- a/apps/showcase/src/main/webapp/token/transferDone.jsp +++ /dev/null @@ -1,48 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Token Examples - Transfer is Done - - - - - - -
-
-
- -

- The transfer is done at - - - - -
New balance of source account: - -
New balance of destination account: - - -

- -

- Try using the browser back button and submit the form again. This should result in a double post - that Struts should intercept and handle accordingly. - -

- -

- For example 3 (session token) you should notice that the date/time stays the same. This interceptor - catches that this is a double post but doens't display the double post page, but just renders the - web page result from the first post. - -

- Click here to - return. -

-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/clientSideValidationExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/clientSideValidationExample.jsp b/apps/showcase/src/main/webapp/validation/clientSideValidationExample.jsp deleted file mode 100644 index f199c31..0000000 --- a/apps/showcase/src/main/webapp/validation/clientSideValidationExample.jsp +++ /dev/null @@ -1,64 +0,0 @@ -<%-- - fieldValidatorExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - -<%@taglib prefix="s" uri="/struts-tags" %> - - - - Struts2 Showcase - Validation - Field Validators Example - - - - - - -
-
-
- - - -

All Field Errors Will Appear Here

- -
- -

Field Error due to 'Required String Validator Field' Will Appear Here

- - - -
- -

Field Error due to 'String Length Validator Field' Will Appear Here

- - stringLengthValidatorField - -
- - - - - - - - - - - - - - - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/fieldValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/fieldValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/fieldValidatorsExample.jsp deleted file mode 100644 index 13a29f0..0000000 --- a/apps/showcase/src/main/webapp/validation/fieldValidatorsExample.jsp +++ /dev/null @@ -1,63 +0,0 @@ -<%-- - fieldValidatorExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - -<%@taglib prefix="s" uri="/struts-tags" %> - - - - Struts2 Showcase - Validation - Field Validators Example - - - - - - -
-
-
- - - -

All Field Errors Will Appear Here

- -
- -

Field Error due to 'Required String Validator Field' Will Appear Here

- - - -
- -

Field Error due to 'String Length Validator Field' Will Appear Here

- - stringLengthValidatorField - -
- - - - - - - - - - - - - - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/footer.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/footer.jsp b/apps/showcase/src/main/webapp/validation/footer.jsp deleted file mode 100644 index 20fa2ad..0000000 --- a/apps/showcase/src/main/webapp/validation/footer.jsp +++ /dev/null @@ -1,8 +0,0 @@ - <%@taglib prefix="s" uri="/struts-tags" %> - -
- - - - - Back To Validation Examples http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/index.jsp b/apps/showcase/src/main/webapp/validation/index.jsp deleted file mode 100644 index 661d032..0000000 --- a/apps/showcase/src/main/webapp/validation/index.jsp +++ /dev/null @@ -1,51 +0,0 @@ -<%-- - index.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - -<%@taglib prefix="s" uri="/struts-tags" %> - - - - Struts2 Showcase - Validation - - - - - -
-
-
- - - - - - - - - - - - -
    -
  • Field Validators
  • -
  • Field Validators with client-side JavaScript
  • -
  • Non Field Validator
  • -
  • Store across request using MessageStoreInterceptor (Example)
  • -
  • Validation (ajax)
  • -
  • Validation (basic)
  • -
  • Validation (client)
  • -
  • Validation (client using css_xhtml theme)
  • -
  • Visitor Validator
  • -
-
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/nonFieldValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/nonFieldValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/nonFieldValidatorsExample.jsp deleted file mode 100644 index 27c8f8b..0000000 --- a/apps/showcase/src/main/webapp/validation/nonFieldValidatorsExample.jsp +++ /dev/null @@ -1,46 +0,0 @@ -<%-- - nonFieldValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - - -<%@taglib prefix="s" uri="/struts-tags" %> - - - - Struts2 Showcase - Validation - Non Field Validator Example - - - - - - -
-
-
- - - - - - - - - - - - - - - - -
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/quiz-ajax.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/quiz-ajax.jsp b/apps/showcase/src/main/webapp/validation/quiz-ajax.jsp deleted file mode 100644 index 9ce9bdb..0000000 --- a/apps/showcase/src/main/webapp/validation/quiz-ajax.jsp +++ /dev/null @@ -1,104 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - - - Struts2 Showcase - Validation - Ajax - - - - - - - - - -
-
-
-
1.Use AJAX validation, and AJAX request (ajaxAfterValidation="true"), if validation succeeds
- -
- Response goes here -
- -
- - - - - - - - - Submit Form with a link -

- - Submit Form listening to an event on an element (check to submit) - - -



- -
2.Use AJAX validation, and regular request (ajaxAfterValidation="false", default), if validation - succeeds
-
- - - - - - - - - Submit Form with a link -

- - Submit Form listening to an event on an element (check to submit) - - - - -
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/quiz-basic.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/quiz-basic.jsp b/apps/showcase/src/main/webapp/validation/quiz-basic.jsp deleted file mode 100644 index e7cb1f9..0000000 --- a/apps/showcase/src/main/webapp/validation/quiz-basic.jsp +++ /dev/null @@ -1,41 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - - - - Struts2 Showcase - Validation - Basic - - - - - - - -
-
-
- -

- What is your favorite color? - -

- - - - - - - - - - -

-
-
- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/quiz-client-css.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/quiz-client-css.jsp b/apps/showcase/src/main/webapp/validation/quiz-client-css.jsp deleted file mode 100644 index c675893..0000000 --- a/apps/showcase/src/main/webapp/validation/quiz-client-css.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - - - - Struts2 Showcase - Validation - Basic (CSS Theme) - - - - - - - -
-
-
- - - - - - - - - - -
-
-
- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/quiz-client.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/quiz-client.jsp b/apps/showcase/src/main/webapp/validation/quiz-client.jsp deleted file mode 100644 index 27268b8..0000000 --- a/apps/showcase/src/main/webapp/validation/quiz-client.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - - - - Struts2 Showcase - Validation - Basic - - - - - - - -
-
-
- - - - - - - - - - -
-
-
- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/quiz-success.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/quiz-success.jsp b/apps/showcase/src/main/webapp/validation/quiz-success.jsp deleted file mode 100644 index 58180bb..0000000 --- a/apps/showcase/src/main/webapp/validation/quiz-success.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Quiz submitted! - - - - - - - -
-
-
- - Thank you, . Your answer has been submitted as: - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestCancel.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestCancel.jsp b/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestCancel.jsp deleted file mode 100644 index fd9fb55..0000000 --- a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestCancel.jsp +++ /dev/null @@ -1,30 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Store Errors Across Request Example - - - - - - - -
-
-
- - - - - - - Try Again - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp b/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp deleted file mode 100644 index 939e0ac..0000000 --- a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp +++ /dev/null @@ -1,54 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Store Errors Across Request Example - - - - - - - -
-
-
- -

- This is an example demonstrating the use of MessageStoreInterceptor. - When this form is submited a redirect is issue both when there's a validation - error or not. Normally, when a redirect is issue the action messages / errors and - field errors stored in the action will be lost (due to an action lives - only as long as a request). With a MessageStoreInterceptor in place and - configured, the action errors / messages / field errors will be store and - remains retrieveable even after a redirect. -

- - - - -
ActionMessages:
ActionErrors:
- -

- - - - - - -

-

- Try submitting with an invalid age value, - and note that the browser location changes, - but validation messages are retained. - Because of the redirect, - the input values are not retained. -

- - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestOk.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestOk.jsp b/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestOk.jsp deleted file mode 100644 index 6c5ddb1..0000000 --- a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestOk.jsp +++ /dev/null @@ -1,31 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Store Errors Across Request Example - - - - - - - -
-
-
- - - - - - - Try Again - - -
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/successClientSideValidationExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/successClientSideValidationExample.jsp b/apps/showcase/src/main/webapp/validation/successClientSideValidationExample.jsp deleted file mode 100644 index cb56e9c..0000000 --- a/apps/showcase/src/main/webapp/validation/successClientSideValidationExample.jsp +++ /dev/null @@ -1,64 +0,0 @@ -<%-- - successFieldValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Success Client Side Validators Example - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Required Validator Field:
Required String Validator Field:
Integer Validator Field:
Date Validator Field:
Email Validator Field:
URL Validator Field:
String Length Validator Field:
Regex Validator Field: Field Expression Validator Field:
- - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/successFieldValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/successFieldValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/successFieldValidatorsExample.jsp deleted file mode 100644 index f795bcc..0000000 --- a/apps/showcase/src/main/webapp/validation/successFieldValidatorsExample.jsp +++ /dev/null @@ -1,61 +0,0 @@ -<%-- - successFieldValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - - -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Success Field Validators Example - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Required Validator Field:
Required String Validator Field:
Integer Validator Field:
Date Validator Field:
Email Validator Field:
String Length Validator Field:
Regex Validator Field: Field Expression Validator Field:
- - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/successNonFieldValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/successNonFieldValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/successNonFieldValidatorsExample.jsp deleted file mode 100644 index 4033300..0000000 --- a/apps/showcase/src/main/webapp/validation/successNonFieldValidatorsExample.jsp +++ /dev/null @@ -1,45 +0,0 @@ -<%-- - successNonFieldValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - - -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Success Non Field Validators Example - - - - - - -
-
-
- - - - - - - - - - - - - - -
Some Text:
Some Text Retyped:
Some Text Retyped Again:
- - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/successVisitorValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/successVisitorValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/successVisitorValidatorsExample.jsp deleted file mode 100644 index 6eecc62..0000000 --- a/apps/showcase/src/main/webapp/validation/successVisitorValidatorsExample.jsp +++ /dev/null @@ -1,46 +0,0 @@ -<%-- - successVisitorValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - - -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Success Visitor Validators Exameple - - - - - - -
-
-
- - - - - - - - - - - - - - -
User Name:
User Age:
User Birthday:
- - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/validation/visitorValidatorsExample.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/validation/visitorValidatorsExample.jsp b/apps/showcase/src/main/webapp/validation/visitorValidatorsExample.jsp deleted file mode 100644 index 06ee70e..0000000 --- a/apps/showcase/src/main/webapp/validation/visitorValidatorsExample.jsp +++ /dev/null @@ -1,43 +0,0 @@ -<%-- - visitorValidatorsExample.jsp - - @author tm_jee - @version $Date$ $Id$ ---%> - - -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Validation - Visitor Validators Example - - - - - - -
-
-
- - - - - - - - - - - - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/viewSource.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/viewSource.jsp b/apps/showcase/src/main/webapp/viewSource.jsp deleted file mode 100644 index 84448de..0000000 --- a/apps/showcase/src/main/webapp/viewSource.jsp +++ /dev/null @@ -1,54 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - View Sources - - - -
-
-
-

View Sources

- - - -
-
-

-
-						
-
-					
-
-
-

-
-						
-
-					
-
-
-

-
-						
-
-					
-
-
-
-
-
- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/complete.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/complete.jsp b/apps/showcase/src/main/webapp/wait/complete.jsp deleted file mode 100644 index 9ab7b78..0000000 --- a/apps/showcase/src/main/webapp/wait/complete.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - Complete - - - - - - -
-
-
- - We have processed your request. -

- Click here to return. - -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/example1.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/example1.jsp b/apps/showcase/src/main/webapp/wait/example1.jsp deleted file mode 100644 index de83f93..0000000 --- a/apps/showcase/src/main/webapp/wait/example1.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - Example 1 - - - - - - -
-
-
- -

Example 1: In the form below enter how long time to simulate the process should take.

- - - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/example2.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/example2.jsp b/apps/showcase/src/main/webapp/wait/example2.jsp deleted file mode 100644 index df68dfc..0000000 --- a/apps/showcase/src/main/webapp/wait/example2.jsp +++ /dev/null @@ -1,29 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - Example 2 - - - - - - -
-
-
- -

Example 2: As example 1 but uses a delay of 2000 millis before the wait page is shown. Try simulating with - a value of 500 millis to see that no wait page is shown at all.

- - - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/example3.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/example3.jsp b/apps/showcase/src/main/webapp/wait/example3.jsp deleted file mode 100644 index b77baae..0000000 --- a/apps/showcase/src/main/webapp/wait/example3.jsp +++ /dev/null @@ -1,29 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - Example 3 - - - - - - -
-
-
- -

Example 3: As example 1 but uses a delay of 3000 millis before the wait page is shown. - While waiting for the wait page it will check every 1000 millis if the background process is already - done. Try simulating with a value of 700 millis to see that the wait page is shown soon thereafter.

- - - - - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/index.jsp b/apps/showcase/src/main/webapp/wait/index.jsp deleted file mode 100644 index 14f4e19..0000000 --- a/apps/showcase/src/main/webapp/wait/index.jsp +++ /dev/null @@ -1,34 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - - - - - - - -
-
-
- -

- These examples illustrate Struts build in support for execute and wait. -

-

- When you have a process that takes a long time your users can be impatient and starts to submit/click again. -
A good solution is to show the user a progress page (wait page) while the process takes it time. -

- -
-
Example 1 (no delay) -
Example 2 (with delay) -
Example 3 (with longer check delay) -

-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/wait/wait.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/wait/wait.jsp b/apps/showcase/src/main/webapp/wait/wait.jsp deleted file mode 100644 index deb8151..0000000 --- a/apps/showcase/src/main/webapp/wait/wait.jsp +++ /dev/null @@ -1,53 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Execute and Wait Examples - Wait - - - - - - -
-
-
- -

- We are processing your request. Please wait. -

- -
-
-
- -

- You can click this link to ">refresh. - - We have processed your request. -

- Click here to return. - -

-
-
- - - -<%@ taglib prefix="s" uri="/struts-tags" %> - - - "/> - - - -

- We are processing your request. Please wait. -

- -

- You can click this link to ">refresh. - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/xslt/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/xslt/index.jsp b/apps/showcase/src/main/webapp/xslt/index.jsp deleted file mode 100644 index 2a2f0a2..0000000 --- a/apps/showcase/src/main/webapp/xslt/index.jsp +++ /dev/null @@ -1,26 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - -Showcase - XSLT - - -

XSLT Result Showcase

- -

- The XSLT result can be used to generate xml from the action. By default, each of the action's - properties will be converted into a DOM and rendered. These results can be transformed via - xslt. Additionally, the result's exposedValue parameter can be used to define an ognl expression - which can be used to manipulate the object which will be converted to xml. - -

    -
  • Render the exposed portion of the action as html
  • -
  • Render the exposed portion of the action as xml
  • -
  • Render the action as xml
  • -
  • Render an ognl property
  • -
-

- - - - \ No newline at end of file