From bd3634359421911d8b026442e379510bd20fda1c Mon Sep 17 00:00:00 2001
From: Michael Bien
Date: Tue, 23 Jan 2024 13:17:14 +0100
Subject: [PATCH] remove struts 1 support.
last struts 1 release was 14 years ago.
---
.github/workflows/main.yml | 4 -
enterprise/j2ee.common/nbproject/project.xml | 1 -
.../netbeans/modules/web/jsf/JSFCatalog.java | 1 -
.../modules/web/jsf/JSFConfigDataObject.java | 1 -
.../web/jsf/JSFConfigLoaderBeanInfo.java | 2 +-
.../modules/web/jsf/JSFConfigNode.java | 1 -
.../editor/JSFConfigHyperlinkProvider.java | 1 -
...NewWebProjectJSFFrameworkStepOperator.java | 16 -
...WebProjectStrutsFrameworkStepOperator.java | 252 -
.../netbeans/test/web/WebProjectSuite.java | 1 -
.../test/web/WebStrutsProjectValidation.java | 111 -
enterprise/web.struts/build.xml | 48 -
.../external/antlr-2.7.2-license.txt | 23 -
enterprise/web.struts/external/binaries-list | 45 -
.../web.struts/external/bsf-2.3.0-license.txt | 208 -
.../commons-beanutils-1.8.0-license.txt | 208 -
.../commons-beanutils-1.8.0-notice.txt | 2 -
.../external/commons-chain-1.2-license.txt | 208 -
.../external/commons-chain-1.2-notice.txt | 2 -
.../external/commons-digester-1.8-license.txt | 208 -
.../external/commons-digester-1.8-notice.txt | 2 -
.../commons-fileupload-1.1.1-license.txt | 208 -
.../external/commons-io-1.1-license.txt | 208 -
.../commons-logging-1.0.4-license.txt | 208 -
.../commons-validator-1.3.1-license.txt | 208 -
.../commons-validator-1.3.1-notice.txt | 2 -
...enerated-struts-1.3.10-javadoc-license.txt | 209 -
.../external/jstl-1.0.2-license.txt | 405 -
.../web.struts/external/oro-2.0.8-license.txt | 57 -
.../external/standard-1.0.6-license.txt | 208 -
.../external/struts-core-1.3.10-license.txt | 209 -
.../external/struts-core-1.3.10-notice.txt | 2 -
.../external/struts-el-1.3.10-license.txt | 209 -
.../external/struts-el-1.3.10-notice.txt | 2 -
.../external/struts-extras-1.3.10-license.txt | 208 -
.../external/struts-extras-1.3.10-notice.txt | 2 -
.../external/struts-faces-1.3.10-license.txt | 209 -
.../external/struts-faces-1.3.10-notice.txt | 2 -
.../struts-mailreader-dao-1.3.10-license.txt | 209 -
.../struts-mailreader-dao-1.3.10-notice.txt | 2 -
.../struts-scripting-1.3.10-license.txt | 209 -
.../struts-scripting-1.3.10-notice.txt | 2 -
.../external/struts-taglib-1.3.10-license.txt | 209 -
.../external/struts-taglib-1.3.10-notice.txt | 2 -
.../external/struts-tiles-1.3.10-license.txt | 209 -
.../external/struts-tiles-1.3.10-notice.txt | 2 -
enterprise/web.struts/licenseinfo.xml | 70 -
enterprise/web.struts/manifest.mf | 6 -
.../web.struts/nbproject/project.properties | 85 -
enterprise/web.struts/nbproject/project.xml | 450 -
.../modules/web/struts/Bundle.properties | 49 -
.../modules/web/struts/SAXParseError.java | 41 -
.../modules/web/struts/StrutsCatalog.java | 211 -
.../web/struts/StrutsConfigDataObject.java | 360 -
.../web/struts/StrutsConfigEditorSupport.java | 350 -
.../web/struts/StrutsConfigLoader.java | 62 -
.../struts/StrutsConfigLoaderBeanInfo.java | 52 -
.../modules/web/struts/StrutsConfigNode.java | 44 -
.../web/struts/StrutsConfigUtilities.java | 474 -
.../web/struts/StrutsFrameworkProvider.java | 435 -
.../modules/web/struts/StrutsUtilities.java | 111 -
.../web/struts/config/model/package-info.java | 33 -
.../web/struts/dialogs/AddActionPanel.form | 475 -
.../web/struts/dialogs/AddActionPanel.java | 530 -
.../modules/web/struts/dialogs/AddDialog.java | 168 -
.../dialogs/AddExceptionDialogPanel.form | 477 -
.../dialogs/AddExceptionDialogPanel.java | 475 -
.../web/struts/dialogs/AddFIActionPanel.form | 296 -
.../web/struts/dialogs/AddFIActionPanel.java | 304 -
.../web/struts/dialogs/AddFormBeanPanel.form | 218 -
.../web/struts/dialogs/AddFormBeanPanel.java | 244 -
.../struts/dialogs/AddFormPropertyPanel.form | 339 -
.../struts/dialogs/AddFormPropertyPanel.java | 353 -
.../struts/dialogs/AddForwardDialogPanel.form | 330 -
.../struts/dialogs/AddForwardDialogPanel.java | 342 -
.../web/struts/dialogs/BrowseFolders.form | 64 -
.../web/struts/dialogs/BrowseFolders.java | 342 -
.../web/struts/dialogs/Bundle.properties | 333 -
.../web/struts/dialogs/ValidatingPanel.java | 46 -
.../web/struts/editor/Bundle.properties | 38 -
.../editor/StrutsConfigHyperlinkProvider.java | 433 -
.../struts/editor/StrutsEditorUtilities.java | 415 -
.../web/struts/editor/StrutsPopupAction.java | 408 -
.../web/struts/resources/Bundle.properties | 33 -
.../resources/MessageResources.properties | 46 -
.../web/struts/resources/StrutsAction.html | 28 -
.../web/struts/resources/StrutsCatalog.png | Bin 870 -> 0 bytes
.../web/struts/resources/StrutsConfigIcon.png | Bin 629 -> 0 bytes
.../web/struts/resources/StrutsFormBean.html | 28 -
.../modules/web/struts/resources/layer.xml | 199 -
.../web/struts/resources/struts-bean.tld | 1153 --
.../web/struts/resources/struts-config.xml | 89 -
.../struts/resources/struts-config_1_0.dtd | 424 -
.../struts/resources/struts-config_1_1.dtd | 712 --
.../struts/resources/struts-config_1_2.dtd | 702 --
.../struts/resources/struts-config_1_2.mdd | 247 -
.../resources/struts-config_1_3-custom.dtd | 682 --
.../struts/resources/struts-config_1_3.dtd | 726 --
.../web/struts/resources/struts-html.tld | 9283 -----------------
.../web/struts/resources/struts-logic.tld | 1891 ----
.../web/struts/resources/struts-nested.tld | 5051 ---------
.../web/struts/resources/struts-tiles.tld | 916 --
.../modules/web/struts/resources/struts.xml | 71 -
.../templates/DispatchAction.template | 72 -
.../templates/LookupDispatchAction.template | 103 -
.../templates/MappingDispatchAction.template | 57 -
.../resources/templates/StrutsAction.template | 63 -
.../templates/StrutsActionForm.template | 96 -
.../web/struts/resources/tiles-config_1_1.dtd | 299 -
.../web/struts/resources/tiles-config_1_3.dtd | 299 -
.../web/struts/resources/tiles-defs.xml | 63 -
.../web/struts/resources/validation.xml | 95 -
.../web/struts/resources/validator-rules.xml | 418 -
.../web/struts/resources/validator_1_0.dtd | 262 -
.../web/struts/resources/validator_1_0_1.dtd | 261 -
.../web/struts/resources/validator_1_1.dtd | 308 -
.../web/struts/resources/validator_1_1_3.dtd | 328 -
.../web/struts/resources/validator_1_2_0.dtd | 249 -
.../web/struts/resources/validator_1_3_0.dtd | 249 -
.../modules/web/struts/resources/welcome.jsp | 49 -
.../modules/web/struts/ui/Bundle.properties | 45 -
.../struts/ui/StrutsConfigurationPanel.java | 144 -
.../ui/StrutsConfigurationPanelVisual.form | 199 -
.../ui/StrutsConfigurationPanelVisual.java | 304 -
.../web/struts/wizards/ActionIterator.java | 289 -
.../web/struts/wizards/ActionPanel.java | 108 -
.../web/struts/wizards/ActionPanel1.java | 99 -
.../struts/wizards/ActionPanel1Visual.form | 409 -
.../struts/wizards/ActionPanel1Visual.java | 491 -
.../web/struts/wizards/ActionPanelVisual.form | 133 -
.../web/struts/wizards/ActionPanelVisual.java | 256 -
.../web/struts/wizards/Bundle.properties | 141 -
.../wizards/FinishableProxyWizardPanel.java | 74 -
.../web/struts/wizards/FormBeanIterator.java | 259 -
.../web/struts/wizards/FormBeanNewPanel.java | 111 -
.../wizards/FormBeanNewPanelVisual.form | 106 -
.../wizards/FormBeanNewPanelVisual.java | 156 -
.../FormBeanPropertiesPanelVisual.form | 112 -
.../FormBeanPropertiesPanelVisual.java | 308 -
.../web/struts/wizards/FormBeanProperty.java | 46 -
.../web/struts/wizards/WizardProperties.java | 35 -
.../modules/web/struts/EndToEndTest.java | 544 -
.../web/struts/EndToEndTest.properties | 164 -
.../test/unit/data/struts-config.xml | 41 -
.../editor/StrutsEditorUtilitiesTest.java | 188 -
.../nbcode/nbproject/platform.properties | 1 -
.../src/projects/LibrariesTest.java | 11 -
.../nbbuild/extlibs/ignored-binary-overlaps | 4 -
.../netbeans/nbbuild/extlibs/ignored-overlaps | 6 -
nbbuild/cluster.properties | 1 -
150 files changed, 1 insertion(+), 44544 deletions(-)
delete mode 100644 enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectStrutsFrameworkStepOperator.java
delete mode 100644 enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebStrutsProjectValidation.java
delete mode 100644 enterprise/web.struts/build.xml
delete mode 100644 enterprise/web.struts/external/antlr-2.7.2-license.txt
delete mode 100644 enterprise/web.struts/external/binaries-list
delete mode 100644 enterprise/web.struts/external/bsf-2.3.0-license.txt
delete mode 100644 enterprise/web.struts/external/commons-beanutils-1.8.0-license.txt
delete mode 100644 enterprise/web.struts/external/commons-beanutils-1.8.0-notice.txt
delete mode 100644 enterprise/web.struts/external/commons-chain-1.2-license.txt
delete mode 100644 enterprise/web.struts/external/commons-chain-1.2-notice.txt
delete mode 100644 enterprise/web.struts/external/commons-digester-1.8-license.txt
delete mode 100644 enterprise/web.struts/external/commons-digester-1.8-notice.txt
delete mode 100644 enterprise/web.struts/external/commons-fileupload-1.1.1-license.txt
delete mode 100644 enterprise/web.struts/external/commons-io-1.1-license.txt
delete mode 100644 enterprise/web.struts/external/commons-logging-1.0.4-license.txt
delete mode 100644 enterprise/web.struts/external/commons-validator-1.3.1-license.txt
delete mode 100644 enterprise/web.struts/external/commons-validator-1.3.1-notice.txt
delete mode 100644 enterprise/web.struts/external/generated-struts-1.3.10-javadoc-license.txt
delete mode 100644 enterprise/web.struts/external/jstl-1.0.2-license.txt
delete mode 100644 enterprise/web.struts/external/oro-2.0.8-license.txt
delete mode 100644 enterprise/web.struts/external/standard-1.0.6-license.txt
delete mode 100644 enterprise/web.struts/external/struts-core-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-core-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-el-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-el-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-extras-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-extras-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-faces-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-faces-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-mailreader-dao-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-mailreader-dao-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-scripting-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-scripting-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-taglib-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-taglib-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/external/struts-tiles-1.3.10-license.txt
delete mode 100644 enterprise/web.struts/external/struts-tiles-1.3.10-notice.txt
delete mode 100644 enterprise/web.struts/licenseinfo.xml
delete mode 100644 enterprise/web.struts/manifest.mf
delete mode 100644 enterprise/web.struts/nbproject/project.properties
delete mode 100644 enterprise/web.struts/nbproject/project.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/SAXParseError.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsCatalog.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigDataObject.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigEditorSupport.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoader.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoaderBeanInfo.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigNode.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigUtilities.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsFrameworkProvider.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsUtilities.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/config/model/package-info.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddDialog.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddExceptionDialogPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddExceptionDialogPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormBeanPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormBeanPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/ValidatingPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsConfigHyperlinkProvider.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilities.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsPopupAction.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/MessageResources.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsAction.html
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsCatalog.png
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsFormBean.html
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/layer.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-bean.tld
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.mdd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3-custom.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-html.tld
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-logic.tld
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-nested.tld
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-tiles.tld
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/DispatchAction.template
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/LookupDispatchAction.template
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/MappingDispatchAction.template
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsAction.template
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsActionForm.template
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_3.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-defs.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validation.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator-rules.xml
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0_1.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/welcome.jsp
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionIterator.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/Bundle.properties
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FinishableProxyWizardPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanIterator.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanel.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.form
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanProperty.java
delete mode 100644 enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/WizardProperties.java
delete mode 100644 enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.java
delete mode 100644 enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.properties
delete mode 100644 enterprise/web.struts/test/unit/data/struts-config.xml
delete mode 100644 enterprise/web.struts/test/unit/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilitiesTest.java
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 30f49a083e67..8c97568eec6b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -2216,10 +2216,6 @@ jobs:
# - name: web.project
# run: ant $OPTS -f enterprise/web.project test
-# Fails
-# - name: web.struts
-# run: ant $OPTS -f enterprise/web.struts test
-
- name: websvc.clientapi
run: ant $OPTS -f enterprise/websvc.clientapi test
diff --git a/enterprise/j2ee.common/nbproject/project.xml b/enterprise/j2ee.common/nbproject/project.xml
index 7ce39afc5dc6..d3188a0893e6 100644
--- a/enterprise/j2ee.common/nbproject/project.xml
+++ b/enterprise/j2ee.common/nbproject/project.xml
@@ -530,7 +530,6 @@
org.netbeans.modules.web.jsf.richfaces
org.netbeans.modules.web.primefaces
org.netbeans.modules.web.project
- org.netbeans.modules.web.struts
org.netbeans.modules.websvc.core
org.netbeans.modules.websvc.jaxrpc
org.netbeans.modules.websvc.restapi
diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFCatalog.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFCatalog.java
index 83cb1278b97f..14b91772156a 100644
--- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFCatalog.java
+++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFCatalog.java
@@ -112,7 +112,6 @@ public class JSFCatalog implements CatalogReader, CatalogDescriptor2, org.xml.sa
private static final String RESOURCE_URL_FACELETS_TAGLIB_DTD_10 ="nbres:/org/netbeans/modules/web/jsf/resources/" + FILE_FACELETS_TAGLIB_DTD_10; // NOI18N
- /** Creates a new instance of StrutsCatalog */
public JSFCatalog() {
}
diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigDataObject.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigDataObject.java
index 7b5b99628d52..07063bb68026 100644
--- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigDataObject.java
+++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigDataObject.java
@@ -70,7 +70,6 @@ public class JSFConfigDataObject extends MultiDataObject implements org.openide.
public static final String PROP_DOC_VALID = "documentValid"; // NOI18N
- /** Creates a new instance of StrutsConfigDataObject */
public JSFConfigDataObject(FileObject pf, JSFConfigLoader loader) throws DataObjectExistsException {
super(pf, loader);
init();
diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigLoaderBeanInfo.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigLoaderBeanInfo.java
index 4b1e77f28cfa..614e21056f15 100644
--- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigLoaderBeanInfo.java
+++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigLoaderBeanInfo.java
@@ -26,7 +26,7 @@
import org.openide.util.Exceptions;
import org.openide.util.ImageUtilities;
-/** StrutsConfig loader bean info.
+/**
*
* @author Petr Pisl
*/
diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigNode.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigNode.java
index 2238c6bc3bde..89f70cacbae9 100644
--- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigNode.java
+++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigNode.java
@@ -31,7 +31,6 @@ public class JSFConfigNode extends DataNode {
public static final String ICON_BASE = "org/netbeans/modules/web/jsf/resources/JSFConfigIcon.png";
- /** Creates a new instance of StrutsConfigNode */
public JSFConfigNode (final JSFConfigDataObject dataObject) {
super(dataObject,Children.LEAF);
setIconBaseWithExtension(ICON_BASE);
diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/editor/JSFConfigHyperlinkProvider.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/editor/JSFConfigHyperlinkProvider.java
index 1847aafee0dd..5df140daa84f 100644
--- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/editor/JSFConfigHyperlinkProvider.java
+++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/editor/JSFConfigHyperlinkProvider.java
@@ -93,7 +93,6 @@ public class JSFConfigHyperlinkProvider implements HyperlinkProvider {
private int valueOffset;
private String [] ev = null;
- /** Creates a new instance of StrutsHyperlinkProvider. */
public JSFConfigHyperlinkProvider() {
}
diff --git a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectJSFFrameworkStepOperator.java b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectJSFFrameworkStepOperator.java
index e535a3fd6857..ac17b9099245 100644
--- a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectJSFFrameworkStepOperator.java
+++ b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectJSFFrameworkStepOperator.java
@@ -70,25 +70,9 @@ public boolean setJSFFrameworkCheckbox() {
}
}
- /*
- * Selects a Struts Framework to be added
- */
-
- public boolean setStrutsFrameworkCheckbox() {
- Integer strutsRow = tabSelectTheFrameworksYouWantToUseInYourWebApplication().findCellRow("org.netbeans.modules.web.struts");
- if (strutsRow != -1) {
- tabSelectTheFrameworksYouWantToUseInYourWebApplication().clickOnCell(strutsRow, 0);
- return true;
- } else {
- System.err.println("No Struts framework found!");
- return false;
- }
-
- }
/*
* Selects a Spring MVC Framework to be added
*/
-
public boolean setSpringFrameworkCheckbox() {
Integer springRow = tabSelectTheFrameworksYouWantToUseInYourWebApplication().findCellRow("org.netbeans.modules.spring.webmvc");
if (springRow != -1) {
diff --git a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectStrutsFrameworkStepOperator.java b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectStrutsFrameworkStepOperator.java
deleted file mode 100644
index 21484b7cdaf5..000000000000
--- a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/NewWebProjectStrutsFrameworkStepOperator.java
+++ /dev/null
@@ -1,252 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-/*
- * NewWebProjectStrutsFrameworkStepOperator.java
- *
- * Created on 5/6/08 3:23 PM
- */
-package org.netbeans.test.web;
-
-import org.netbeans.jellytools.NewProjectWizardOperator;
-import org.netbeans.jemmy.operators.*;
-
-/**
- * Class implementing all necessary methods for handling "New Web Application"
- * NbDialog.
- *
- * @author dkolar
- * @version 1.0
- */
-public class NewWebProjectStrutsFrameworkStepOperator extends NewProjectWizardOperator {
-
- /**
- * Creates new NewWebProjectStrutsFrameworkStepOperator that can handle it.
- */
- public NewWebProjectStrutsFrameworkStepOperator() {
- super("New Web Application");
- }
- private JLabelOperator _lblActionServletName;
- private JTextFieldOperator _txtActionServletName;
- private JLabelOperator _lblActionURLPattern;
- private JComboBoxOperator _cboActionURLPattern;
- public static final String ITEM_DO1 = "*.do";
- public static final String ITEM_DO2 = "/do/*";
- private JLabelOperator _lblApplicationResource;
- private JTextFieldOperator _txtApplicationResource;
- private JCheckBoxOperator _cbAddStrutsTLDs;
- private JTableOperator _tabSelectTheFrameworksYouWantToUseInYourWebApplication;
-
- //******************************
- // Subcomponents definition part
- //******************************
-
- /*
- * Selects a Struts Framework to be added
- */
- public boolean setStrutsFrameworkCheckbox() {
- Integer strutsRow = tabSelectTheFrameworksYouWantToUseInYourWebApplication().findCellRow("org.netbeans.modules.web.struts");
- if (strutsRow != -1) {
- tabSelectTheFrameworksYouWantToUseInYourWebApplication().clickOnCell(strutsRow, 0);
- return true;
- } else {
- System.err.println("No Struts framework found!");
- return false;
- }
-
- }
-
- /** Tries to find "Action Servlet Name:" JLabel in this dialog.
- * @return JLabelOperator
- */
- public JLabelOperator lblActionServletName() {
- if (_lblActionServletName == null) {
- _lblActionServletName = new JLabelOperator(this, "Action Servlet Name:");
- }
- return _lblActionServletName;
- }
-
- /** Tries to find null JTextField in this dialog.
- * @return JTextFieldOperator
- */
- public JTextFieldOperator txtActionServletName() {
- if (_txtActionServletName == null) {
- _txtActionServletName = new JTextFieldOperator(this);
- }
- return _txtActionServletName;
- }
-
- /** Tries to find "Action URL Pattern:" JLabel in this dialog.
- * @return JLabelOperator
- */
- public JLabelOperator lblActionURLPattern() {
- if (_lblActionURLPattern == null) {
- _lblActionURLPattern = new JLabelOperator(this, "Action URL Pattern:");
- }
- return _lblActionURLPattern;
- }
-
- /** Tries to find null JComboBox in this dialog.
- * @return JComboBoxOperator
- */
- public JComboBoxOperator cboActionURLPattern() {
- if (_cboActionURLPattern == null) {
- _cboActionURLPattern = new JComboBoxOperator(this);
- }
- return _cboActionURLPattern;
- }
-
- /** Tries to find "Application Resource:" JLabel in this dialog.
- * @return JLabelOperator
- */
- public JLabelOperator lblApplicationResource() {
- if (_lblApplicationResource == null) {
- _lblApplicationResource = new JLabelOperator(this, "Application Resource:");
- }
- return _lblApplicationResource;
- }
-
- /** Tries to find null JTextField in this dialog.
- * @return JTextFieldOperator
- */
- public JTextFieldOperator txtApplicationResource() {
- if (_txtApplicationResource == null) {
- _txtApplicationResource = new JTextFieldOperator(this, 2);
- }
- return _txtApplicationResource;
- }
-
- /** Tries to find "Add Struts TLDs" JCheckBox in this dialog.
- * @return JCheckBoxOperator
- */
- public JCheckBoxOperator cbAddStrutsTLDs() {
- if (_cbAddStrutsTLDs == null) {
- _cbAddStrutsTLDs = new JCheckBoxOperator(this, "Add Struts TLDs");
- }
- return _cbAddStrutsTLDs;
- }
-
- /** Tries to find null JTable in this dialog.
- * @return JTableOperator
- */
- public JTableOperator tabSelectTheFrameworksYouWantToUseInYourWebApplication() {
- if (_tabSelectTheFrameworksYouWantToUseInYourWebApplication == null) {
- _tabSelectTheFrameworksYouWantToUseInYourWebApplication = new JTableOperator(this);
- }
- return _tabSelectTheFrameworksYouWantToUseInYourWebApplication;
- }
-
- //****************************************
- // Low-level functionality definition part
- //****************************************
- /** gets text for txtActionServletName
- * @return String text
- */
- public String getActionServletName() {
- return txtActionServletName().getText();
- }
-
- /** sets text for txtActionServletName
- * @param text String text
- */
- public void setActionServletName(String text) {
- txtActionServletName().setText(text);
- }
-
- /** types text for txtActionServletName
- * @param text String text
- */
- public void typeActionServletName(String text) {
- txtActionServletName().typeText(text);
- }
-
- /** returns selected item for cboActionURLPattern
- * @return String item
- */
- public String getSelectedActionURLPattern() {
- return cboActionURLPattern().getSelectedItem().toString();
- }
-
- /** selects item for cboActionURLPattern
- * @param item String item
- */
- public void selectActionURLPattern(String item) {
- cboActionURLPattern().selectItem(item);
- }
-
- /** types text for cboActionURLPattern
- * @param text String text
- */
- public void typeActionURLPattern(String text) {
- cboActionURLPattern().typeText(text);
- }
-
- /** gets text for txtApplicationResource
- * @return String text
- */
- public String getApplicationResource() {
- return txtApplicationResource().getText();
- }
-
- /** sets text for txtApplicationResource
- * @param text String text
- */
- public void setApplicationResource(String text) {
- txtApplicationResource().setText(text);
- }
-
- /** types text for txtApplicationResource
- * @param text String text
- */
- public void typeApplicationResource(String text) {
- txtApplicationResource().typeText(text);
- }
-
- /** checks or unchecks given JCheckBox
- * @param state boolean requested state
- */
- public void checkAddStrutsTLDs(boolean state) {
- if (cbAddStrutsTLDs().isSelected() != state) {
- cbAddStrutsTLDs().push();
- }
- }
-
- //*****************************************
- // High-level functionality definition part
- //*****************************************
- /** Performs verification of NewWebProjectStrutsFrameworkStepOperator by accessing all its components.
- */
- @Override
- public void verify() {
- lblActionServletName();
- txtActionServletName();
- lblActionURLPattern();
- cboActionURLPattern();
- lblApplicationResource();
- txtApplicationResource();
- cbAddStrutsTLDs();
- tabSelectTheFrameworksYouWantToUseInYourWebApplication();
- }
-
- /** Returns error message shown in description area.
- * @return message in description area
- */
- public String getErrorMessage() {
- return new JTextPaneOperator(this).getToolTipText();
- }
-}
diff --git a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebProjectSuite.java b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebProjectSuite.java
index 914104945b00..f76b84d52ac3 100644
--- a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebProjectSuite.java
+++ b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebProjectSuite.java
@@ -42,7 +42,6 @@ public static Test suite() {
conf = addServerTests(Server.GLASSFISH, conf, WebProjectValidation.class, WebProjectValidation.TESTS);
conf = addServerTests(Server.GLASSFISH, conf, WebProjectValidationNb36WebModule.class, WebProjectValidationNb36WebModule.TESTS);
conf = addServerTests(Server.GLASSFISH, conf, WebSpringProjectValidation.class, WebSpringProjectValidation.TESTS);
- conf = addServerTests(Server.GLASSFISH, conf, WebStrutsProjectValidation.class, WebStrutsProjectValidation.TESTS);
conf = addServerTests(Server.GLASSFISH, conf, MavenWebProjectValidationEE5.class, MavenWebProjectValidationEE5.TESTS);
conf = addServerTests(Server.GLASSFISH, conf, MavenWebProjectValidationEE6.class, MavenWebProjectValidationEE6.TESTS);
conf = addServerTests(Server.GLASSFISH, conf, MavenWebProjectValidation.class, MavenWebProjectValidation.TESTS);
diff --git a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebStrutsProjectValidation.java b/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebStrutsProjectValidation.java
deleted file mode 100644
index bb6106e8869d..000000000000
--- a/enterprise/web.kit/test/qa-functional/src/org/netbeans/test/web/WebStrutsProjectValidation.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.test.web;
-
-import junit.framework.Test;
-import org.netbeans.jellytools.Bundle;
-import org.netbeans.jellytools.EditorOperator;
-import org.netbeans.jellytools.NewProjectWizardOperator;
-import org.netbeans.jellytools.NewWebProjectNameLocationStepOperator;
-import org.netbeans.jellytools.NewWebProjectServerSettingsStepOperator;
-import org.netbeans.jellytools.actions.EditAction;
-import org.netbeans.jellytools.actions.OpenAction;
-import org.netbeans.jellytools.modules.web.nodes.WebPagesNode;
-import org.netbeans.jellytools.nodes.Node;
-import org.netbeans.jemmy.operators.Operator.DefaultStringComparator;
-
-/**
- *
- * @author dkolar
- */
-public class WebStrutsProjectValidation extends WebProjectValidationEE5 {
-
- public static final String[] TESTS = new String[]{
- "testNewStrutsWebProject",
- "testCleanAndBuildProject",
- "testCompileAllJSP",
- "testRedeployProject",
- "testFinish"
- };
-
- /** Need to be defined because of JUnit */
- public WebStrutsProjectValidation(String name) {
- super(name);
- PROJECT_NAME = "WebStrutsProject";
- }
-
- public static Test suite() {
- return createAllModulesServerSuite(Server.GLASSFISH, WebStrutsProjectValidation.class, TESTS);
- }
-
- /** Test creation of web project.
- * - open New Project wizard from main menu (File|New Project)
- * - select Web|Web Application
- * - in the next panel type project name and project location
- * - in next panel sets server to Glassfish and J2EE version to Java EE 5
- * - in Framework panel set Struts framework
- * - finish the wizard
- * - wait until scanning of java files is finished
- */
- public void testNewStrutsWebProject() {
- NewProjectWizardOperator projectWizard = NewProjectWizardOperator.invoke();
- String category = Bundle.getStringTrimmed(
- "org.netbeans.modules.web.core.Bundle",
- "Templates/JSP_Servlet");
- projectWizard.selectCategory(category);
- projectWizard.selectProject("Web Application");
- projectWizard.next();
- NewWebProjectNameLocationStepOperator nameStep = new NewWebProjectNameLocationStepOperator();
- nameStep.txtProjectName().setText(PROJECT_NAME);
- nameStep.txtProjectLocation().setText(PROJECT_LOCATION);
- nameStep.next();
- NewWebProjectServerSettingsStepOperator serverStep = new NewWebProjectServerSettingsStepOperator();
- serverStep.selectJavaEEVersion(getEEVersion());
- serverStep.next();
-
- NewWebProjectStrutsFrameworkStepOperator frameworkStep = new NewWebProjectStrutsFrameworkStepOperator();
- assertTrue("Struts framework not present!", frameworkStep.setStrutsFrameworkCheckbox());
- // set ApplicationResource location
- frameworkStep.cboActionURLPattern().clearText();
-
- assertEquals(Bundle.getString("org.netbeans.modules.web.struts.ui.Bundle", "MSG_URLPatternIsEmpty"), frameworkStep.getErrorMessage());
- frameworkStep.cboActionURLPattern().getTextField().typeText("*");
- assertEquals(Bundle.getString("org.netbeans.modules.web.struts.ui.Bundle", "MSG_URLPatternIsNotValid"), frameworkStep.getErrorMessage());
- frameworkStep.cboActionURLPattern().getTextField().typeText(".do");
- frameworkStep.cbAddStrutsTLDs().push();
- frameworkStep.finish();
- waitScanFinished();
- // Check project contains all needed files.
- verifyWebPagesNode("WEB-INF|web.xml");
- verifyWebPagesNode("welcomeStruts.jsp");
- verifyWebPagesNode("WEB-INF|struts-config.xml");
-
- WebPagesNode webPages = new WebPagesNode(PROJECT_NAME);
- Node strutsConfig = new Node(webPages, "WEB-INF|struts-config.xml");
- new OpenAction().performAPI(strutsConfig);
- webPages.setComparator(new DefaultStringComparator(true, true));
- Node webXML = new Node(webPages, "WEB-INF|web.xml");
- new EditAction().performAPI(webXML);
- EditorOperator webXMLEditor = new EditorOperator("web.xml");
- String expected = "org.apache.struts.action.ActionServlet";
- assertTrue("ActionServlet should be created in web.xml.", webXMLEditor.getText().indexOf(expected) > -1);
- webXMLEditor.replace("index.jsp", "login.jsp");
- webXMLEditor.save();
- }
-}
diff --git a/enterprise/web.struts/build.xml b/enterprise/web.struts/build.xml
deleted file mode 100644
index b17aa4725256..000000000000
--- a/enterprise/web.struts/build.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/external/antlr-2.7.2-license.txt b/enterprise/web.struts/external/antlr-2.7.2-license.txt
deleted file mode 100644
index c89c5ef98a43..000000000000
--- a/enterprise/web.struts/external/antlr-2.7.2-license.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Name: Another Tool for Language Recognition
-Version: 2.7.2
-License: ANTLR-2
-Description: Another Tool for Language Recognition
-Origin: http://www.antlr2.org/
-
-ANTLR 2 License
-
-We reserve no legal rights to the ANTLR--it is fully in the public
-domain. An individual or company may do whatever they wish with source
-code distributed with ANTLR or the code generated by ANTLR, including
-the incorporation of ANTLR, or its output, into commerical software.
-
-We encourage users to develop software with ANTLR. However, we do ask
-that credit is given to us for developing ANTLR. By "credit", we mean
-that if you use ANTLR or incorporate any source code into one of your
-programs (commercial product, research project, or otherwise) that you
-acknowledge this fact somewhere in the documentation, research report,
-etc... If you like ANTLR and have developed a nice tool with the output,
-please mention that you developed it using ANTLR. In addition, we ask
-that the headers remain intact in our source code. As long as these
-guidelines are kept, we expect to continue enhancing this system and
-expect to make other tools available as they are completed.
diff --git a/enterprise/web.struts/external/binaries-list b/enterprise/web.struts/external/binaries-list
deleted file mode 100644
index 0834623ea923..000000000000
--- a/enterprise/web.struts/external/binaries-list
+++ /dev/null
@@ -1,45 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-546B5220622C4D9B2DA45AD1899224B6CE1C8830 antlr:antlr:2.7.2
-B6BE87B58571101E95525228CF23E934B4EABE35 bsf:bsf:2.3.0
-0C651D5103C649C12B20D53731643E5FFFCEB536 commons-beanutils:commons-beanutils:1.8.0
-744A13E8766E338BD347B6FBC28C6DB12979D0C6 commons-chain:commons-chain:1.2
-DC6A73FDBD1FA3F0944E8497C6C872FA21DCA37E commons-digester:commons-digester:1.8
-D587A50727BA905AAD13DE9EA119081403BF6823 commons-fileupload:commons-fileupload:1.1.1
-5E986A7E4B0472AEBE121154178DAB2DA26A8BF5 commons-io:commons-io:1.1
-F029A2AEFE2B3E1517573C580F948CAAC31B1056 commons-logging:commons-logging:1.0.4
-D1FD6B1510F25E827ADFFCF17DE3C85FA00E9391 commons-validator:commons-validator:1.3.1
-D494CF539682127EC637157B8529111CA365A67B jstl:jstl:1.0.2
-5592374F834645C4AE250F4C9FBB314C9369D698 oro:oro:2.0.8
-72B2DAB3D9723943F6F6839EF84CCC25A087E5FA taglibs:standard:1.0.6
-0C0F68CD5E17487C16D266D1280E3E16BEF5A848 org.apache.struts:struts-core:1.3.10
-DCD9A743C6225E2330904CBA1BF9B2516754DC13 org.apache.struts:struts-el:1.3.10
-BBC4F2B320B7E2479F4FA42FF79006EB413E6C51 org.apache.struts:struts-extras:1.3.10
-6FED60B15EC0E6C2F039FD98AABD7AAAB3084E8C org.apache.struts:struts-faces:1.3.10
-D593C116EF0802F61603B722609CC28C81DA4559 org.apache.struts:struts-mailreader-dao:1.3.10
-57CE5DCA514BA7CCB83081BB839D293F1A0BA704 org.apache.struts:struts-scripting:1.3.10
-9EF247D8EB03A09A3B1C9D434F9F9ACD45BA1C62 org.apache.struts:struts-taglib:1.3.10
-40693E3AA8A8586B8BAA0317D0127597CAD3D5EC org.apache.struts:struts-tiles:1.3.10
-D5BD13D892F7E277E35F6B22595E2D524550BFDB org.apache.struts:struts-core:1.3.10:javadoc
-1596C42F9CBF5FA0635A81FFF46F8F05B56BB529 org.apache.struts:struts-faces:1.3.10:javadoc
-9152F10FC1E2F2FE331A474D6B4E230CEF47ABDA org.apache.struts:struts-scripting:1.3.10:javadoc
-BE53F8B1D4611AAEE6075704BFDE2A177F2D3927 org.apache.struts:struts-taglib:1.3.10:javadoc
-B64308BBD204C6F27D79200A5D663FA43DF24B0C org.apache.struts:struts-tiles:1.3.10:javadoc
-BBC4F2B320B7E2479F4FA42FF79006EB413E6C51 org.apache.struts:struts-extras:1.3.10
-D52AE414833BAD731CBC66625537D6FD49EBA0AC org.apache.struts:struts-mailreader-dao:1.3.10:javadoc
-C8721D124BCBBA670D24A60311305B847EFA68F5 org.apache.struts:struts-el:1.3.10:javadoc
diff --git a/enterprise/web.struts/external/bsf-2.3.0-license.txt b/enterprise/web.struts/external/bsf-2.3.0-license.txt
deleted file mode 100644
index c3358b737c2a..000000000000
--- a/enterprise/web.struts/external/bsf-2.3.0-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Bean Scripting Framework
-Version: 2.3.0
-License: Apache-2.0
-Description: Bean Scripting Framework
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-beanutils-1.8.0-license.txt b/enterprise/web.struts/external/commons-beanutils-1.8.0-license.txt
deleted file mode 100644
index c20ab0b6a8bc..000000000000
--- a/enterprise/web.struts/external/commons-beanutils-1.8.0-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Beanutils
-Version: 1.8.0
-License: Apache-2.0
-Description: Bean Collections Library
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-beanutils-1.8.0-notice.txt b/enterprise/web.struts/external/commons-beanutils-1.8.0-notice.txt
deleted file mode 100644
index 473dad547fd9..000000000000
--- a/enterprise/web.struts/external/commons-beanutils-1.8.0-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Commons BeanUtils
-Copyright 2000-2008 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/commons-chain-1.2-license.txt b/enterprise/web.struts/external/commons-chain-1.2-license.txt
deleted file mode 100644
index b3c6254bd689..000000000000
--- a/enterprise/web.struts/external/commons-chain-1.2-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Chain
-Version: 1.2
-License: Apache-2.0
-Description: Chain Library using Chain of Responsibility
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-chain-1.2-notice.txt b/enterprise/web.struts/external/commons-chain-1.2-notice.txt
deleted file mode 100644
index 4f72d8bdf6f7..000000000000
--- a/enterprise/web.struts/external/commons-chain-1.2-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Commons Chain
-Copyright 2003-2008 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/commons-digester-1.8-license.txt b/enterprise/web.struts/external/commons-digester-1.8-license.txt
deleted file mode 100644
index 7d717f4f1346..000000000000
--- a/enterprise/web.struts/external/commons-digester-1.8-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Digester
-Version: 1.8
-License: Apache-2.0
-Description: Digester layer to better process xml input
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-digester-1.8-notice.txt b/enterprise/web.struts/external/commons-digester-1.8-notice.txt
deleted file mode 100644
index d8e0f03dab3e..000000000000
--- a/enterprise/web.struts/external/commons-digester-1.8-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Jakarta Commons Digester
-Copyright 2001-2006 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/commons-fileupload-1.1.1-license.txt b/enterprise/web.struts/external/commons-fileupload-1.1.1-license.txt
deleted file mode 100644
index d2c3b446c85c..000000000000
--- a/enterprise/web.struts/external/commons-fileupload-1.1.1-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Fileupload
-Version: 1.1.1
-License: Apache-2.0
-Description: Fileupload component for servlets and web applications
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-io-1.1-license.txt b/enterprise/web.struts/external/commons-io-1.1-license.txt
deleted file mode 100644
index d317051ba5cf..000000000000
--- a/enterprise/web.struts/external/commons-io-1.1-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons IO
-Version: 1.1
-License: Apache-2.0
-Description: Utility Libary to assist with developing IO functionality
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-logging-1.0.4-license.txt b/enterprise/web.struts/external/commons-logging-1.0.4-license.txt
deleted file mode 100644
index 92d3ebde9b11..000000000000
--- a/enterprise/web.struts/external/commons-logging-1.0.4-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Logging
-Version: 1.0.4
-License: Apache-2.0
-Description: Java-based logging utility
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-validator-1.3.1-license.txt b/enterprise/web.struts/external/commons-validator-1.3.1-license.txt
deleted file mode 100644
index ac1247f7af0e..000000000000
--- a/enterprise/web.struts/external/commons-validator-1.3.1-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Commons Validator
-Version: 1.3.1
-License: Apache-2.0
-Description: Data Validation for Client side and server side
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/commons-validator-1.3.1-notice.txt b/enterprise/web.struts/external/commons-validator-1.3.1-notice.txt
deleted file mode 100644
index cc3695603318..000000000000
--- a/enterprise/web.struts/external/commons-validator-1.3.1-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Jakarta Commons Validator
-Copyright 2001-2006 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/generated-struts-1.3.10-javadoc-license.txt b/enterprise/web.struts/external/generated-struts-1.3.10-javadoc-license.txt
deleted file mode 100644
index 46a42ff6dd70..000000000000
--- a/enterprise/web.struts/external/generated-struts-1.3.10-javadoc-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Generated Javadoc for struts framework
-Version: 1.3.10
-License: Apache-2.0
-Description: Generated Javadoc for struts framework
-Type: generated
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/jstl-1.0.2-license.txt b/enterprise/web.struts/external/jstl-1.0.2-license.txt
deleted file mode 100644
index 8d8f287048e7..000000000000
--- a/enterprise/web.struts/external/jstl-1.0.2-license.txt
+++ /dev/null
@@ -1,405 +0,0 @@
-Name: JavaServer Pages Standard Tag Library
-Version: 1.0.2
-License: CDDL-1.1
-Description: JavaServer Pages Standard Tag Library
-Origin: Oracle
-
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1
-
-1. Definitions.
-
-1.1. "Contributor" means each individual or entity that
-creates or contributes to the creation of Modifications.
-
-1.2. "Contributor Version" means the combination of the
-Original Software, prior Modifications used by a
-Contributor (if any), and the Modifications made by that
-particular Contributor.
-
-1.3. "Covered Software" means (a) the Original Software, or
-(b) Modifications, or (c) the combination of files
-containing Original Software with files containing
-Modifications, in each case including portions thereof.
-
-1.4. "Executable" means the Covered Software in any form
-other than Source Code.
-
-1.5. "Initial Developer" means the individual or entity
-that first makes Original Software available under this
-License.
-
-1.6. "Larger Work" means a work which combines Covered
-Software or portions thereof with code not governed by the
-terms of this License.
-
-1.7. "License" means this document.
-
-1.8. "Licensable" means having the right to grant, to the
-maximum extent possible, whether at the time of the initial
-grant or subsequently acquired, any and all of the rights
-conveyed herein.
-
-1.9. "Modifications" means the Source Code and Executable
-form of any of the following:
-
-A. Any file that results from an addition to,
-deletion from or modification of the contents of a
-file containing Original Software or previous
-Modifications;
-
-B. Any new file that contains any part of the
-Original Software or previous Modification; or
-
-C. Any new file that is contributed or otherwise made
-available under the terms of this License.
-
-1.10. "Original Software" means the Source Code and
-Executable form of computer software code that is
-originally released under this License.
-
-1.11. "Patent Claims" means any patent claim(s), now owned
-or hereafter acquired, including without limitation,
-method, process, and apparatus claims, in any patent
-Licensable by grantor.
-
-1.12. "Source Code" means (a) the common form of computer
-software code in which modifications are made and (b)
-associated documentation included in or with such code.
-
-1.13. "You" (or "Your") means an individual or a legal
-entity exercising rights under, and complying with all of
-the terms of, this License. For legal entities, "You"
-includes any entity which controls, is controlled by, or is
-under common control with You. For purposes of this
-definition, "control" means (a) the power, direct or
-indirect, to cause the direction or management of such
-entity, whether by contract or otherwise, or (b) ownership
-of more than fifty percent (50%) of the outstanding shares
-or beneficial ownership of such entity.
-
-2. License Grants.
-
-2.1. The Initial Developer Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and
-subject to third party intellectual property claims, the
-Initial Developer hereby grants You a world-wide,
-royalty-free, non-exclusive license:
-
-(a) under intellectual property rights (other than
-patent or trademark) Licensable by Initial Developer,
-to use, reproduce, modify, display, perform,
-sublicense and distribute the Original Software (or
-portions thereof), with or without Modifications,
-and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making,
-using or selling of Original Software, to make, have
-made, use, practice, sell, and offer for sale, and/or
-otherwise dispose of the Original Software (or
-portions thereof).
-
-(c) The licenses granted in Sections 2.1(a) and (b)
-are effective on the date Initial Developer first
-distributes or otherwise makes the Original Software
-available to a third party under the terms of this
-License.
-
-(d) Notwithstanding Section 2.1(b) above, no patent
-license is granted: (1) for code that You delete from
-the Original Software, or (2) for infringements
-caused by: (i) the modification of the Original
-Software, or (ii) the combination of the Original
-Software with other software or devices.
-
-2.2. Contributor Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and
-subject to third party intellectual property claims, each
-Contributor hereby grants You a world-wide, royalty-free,
-non-exclusive license:
-
-(a) under intellectual property rights (other than
-patent or trademark) Licensable by Contributor to
-use, reproduce, modify, display, perform, sublicense
-and distribute the Modifications created by such
-Contributor (or portions thereof), either on an
-unmodified basis, with other Modifications, as
-Covered Software and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making,
-using, or selling of Modifications made by that
-Contributor either alone and/or in combination with
-its Contributor Version (or portions of such
-combination), to make, use, sell, offer for sale,
-have made, and/or otherwise dispose of: (1)
-Modifications made by that Contributor (or portions
-thereof); and (2) the combination of Modifications
-made by that Contributor with its Contributor Version
-(or portions of such combination).
-
-(c) The licenses granted in Sections 2.2(a) and
-2.2(b) are effective on the date Contributor first
-distributes or otherwise makes the Modifications
-available to a third party.
-
-(d) Notwithstanding Section 2.2(b) above, no patent
-license is granted: (1) for any code that Contributor
-has deleted from the Contributor Version; (2) for
-infringements caused by: (i) third party
-modifications of Contributor Version, or (ii) the
-combination of Modifications made by that Contributor
-with other software (except as part of the
-Contributor Version) or other devices; or (3) under
-Patent Claims infringed by Covered Software in the
-absence of Modifications made by that Contributor.
-
-3. Distribution Obligations.
-
-3.1. Availability of Source Code.
-
-Any Covered Software that You distribute or otherwise make
-available in Executable form must also be made available in
-Source Code form and that Source Code form must be
-distributed only under the terms of this License. You must
-include a copy of this License with every copy of the
-Source Code form of the Covered Software You distribute or
-otherwise make available. You must inform recipients of any
-such Covered Software in Executable form as to how they can
-obtain such Covered Software in Source Code form in a
-reasonable manner on or through a medium customarily used
-for software exchange.
-
-3.2. Modifications.
-
-The Modifications that You create or to which You
-contribute are governed by the terms of this License. You
-represent that You believe Your Modifications are Your
-original creation(s) and/or You have sufficient rights to
-grant the rights conveyed by this License.
-
-3.3. Required Notices.
-
-You must include a notice in each of Your Modifications
-that identifies You as the Contributor of the Modification.
-You may not remove or alter any copyright, patent or
-trademark notices contained within the Covered Software, or
-any notices of licensing or any descriptive text giving
-attribution to any Contributor or the Initial Developer.
-
-3.4. Application of Additional Terms.
-
-You may not offer or impose any terms on any Covered
-Software in Source Code form that alters or restricts the
-applicable version of this License or the recipients'
-rights hereunder. You may choose to offer, and to charge a
-fee for, warranty, support, indemnity or liability
-obligations to one or more recipients of Covered Software.
-However, you may do so only on Your own behalf, and not on
-behalf of the Initial Developer or any Contributor. You
-must make it absolutely clear that any such warranty,
-support, indemnity or liability obligation is offered by
-You alone, and You hereby agree to indemnify the Initial
-Developer and every Contributor for any liability incurred
-by the Initial Developer or such Contributor as a result of
-warranty, support, indemnity or liability terms You offer.
-
-3.5. Distribution of Executable Versions.
-
-You may distribute the Executable form of the Covered
-Software under the terms of this License or under the terms
-of a license of Your choice, which may contain terms
-different from this License, provided that You are in
-compliance with the terms of this License and that the
-license for the Executable form does not attempt to limit
-or alter the recipient's rights in the Source Code form
-from the rights set forth in this License. If You
-distribute the Covered Software in Executable form under a
-different license, You must make it absolutely clear that
-any terms which differ from this License are offered by You
-alone, not by the Initial Developer or Contributor. You
-hereby agree to indemnify the Initial Developer and every
-Contributor for any liability incurred by the Initial
-Developer or such Contributor as a result of any such terms
-You offer.
-
-3.6. Larger Works.
-
-You may create a Larger Work by combining Covered Software
-with other code not governed by the terms of this License
-and distribute the Larger Work as a single product. In such
-a case, You must make sure the requirements of this License
-are fulfilled for the Covered Software.
-
-4. Versions of the License.
-
-4.1. New Versions.
-
-Oracle is the initial license steward and
-may publish revised and/or new versions of this License
-from time to time. Each version will be given a
-distinguishing version number. Except as provided in
-Section 4.3, no one other than the license steward has the
-right to modify this License.
-
-4.2. Effect of New Versions.
-
-You may always continue to use, distribute or otherwise
-make the Covered Software available under the terms of the
-version of the License under which You originally received
-the Covered Software. If the Initial Developer includes a
-notice in the Original Software prohibiting it from being
-distributed or otherwise made available under any
-subsequent version of the License, You must distribute and
-make the Covered Software available under the terms of the
-version of the License under which You originally received
-the Covered Software. Otherwise, You may also choose to
-use, distribute or otherwise make the Covered Software
-available under the terms of any subsequent version of the
-License published by the license steward.
-
-4.3. Modified Versions.
-
-When You are an Initial Developer and You want to create a
-new license for Your Original Software, You may create and
-use a modified version of this License if You: (a) rename
-the license and remove any references to the name of the
-license steward (except to note that the license differs
-from this License); and (b) otherwise make it clear that
-the license contains terms which differ from this License.
-
-5. DISCLAIMER OF WARRANTY.
-
-COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS"
-BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
-INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
-SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
-PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND
-PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY
-COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE
-INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF
-ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF
-WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
-ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
-DISCLAIMER.
-
-6. TERMINATION.
-
-6.1. This License and the rights granted hereunder will
-terminate automatically if You fail to comply with terms
-herein and fail to cure such breach within 30 days of
-becoming aware of the breach. Provisions which, by their
-nature, must remain in effect beyond the termination of
-this License shall survive.
-
-6.2. If You assert a patent infringement claim (excluding
-declaratory judgment actions) against Initial Developer or
-a Contributor (the Initial Developer or Contributor against
-whom You assert such claim is referred to as "Participant")
-alleging that the Participant Software (meaning the
-Contributor Version where the Participant is a Contributor
-or the Original Software where the Participant is the
-Initial Developer) directly or indirectly infringes any
-patent, then any and all rights granted directly or
-indirectly to You by such Participant, the Initial
-Developer (if the Initial Developer is not the Participant)
-and all Contributors under Sections 2.1 and/or 2.2 of this
-License shall, upon 60 days notice from Participant
-terminate prospectively and automatically at the expiration
-of such 60 day notice period, unless if within such 60 day
-period You withdraw Your claim with respect to the
-Participant Software against such Participant either
-unilaterally or pursuant to a written agreement with
-Participant.
-
-6.3. If You assert a patent infringement claim against
-Participant alleging that the Participant Software directly
-or indirectly infringes any patent where such claim is
-resolved (such as by license or settlement) prior to the
-initiation of patent infringement litigation, then the
-reasonable value of the licenses granted by such Participant
-under Sections 2.1 or 2.2 shall be taken into account in
-determining the amount or value of any payment or license.
-
-6.4. In the event of termination under Sections 6.1 or 6.2
-above, all end user licenses that have been validly granted
-by You or any distributor hereunder prior to termination
-(excluding licenses granted to You by any distributor)
-shall survive termination.
-
-7. LIMITATION OF LIABILITY.
-
-UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
-(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
-INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
-COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
-LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
-CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
-LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK
-STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
-COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
-INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
-LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
-INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
-APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO
-NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
-CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT
-APPLY TO YOU.
-
-8. U.S. GOVERNMENT END USERS.
-
-The Covered Software is a "commercial item," as that term is
-defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial
-computer software" (as that term is defined at 48 C.F.R.
-§ 252.227-7014(a)(1)) and "commercial computer software
-documentation" as such terms are used in 48 C.F.R. 12.212 (Sept.
-1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
-through 227.7202-4 (June 1995), all U.S. Government End Users
-acquire Covered Software with only those rights set forth herein.
-This U.S. Government Rights clause is in lieu of, and supersedes,
-any other FAR, DFAR, or other clause or provision that addresses
-Government rights in computer software under this License.
-
-9. MISCELLANEOUS.
-
-This License represents the complete agreement concerning subject
-matter hereof. If any provision of this License is held to be
-unenforceable, such provision shall be reformed only to the
-extent necessary to make it enforceable. This License shall be
-governed by the law of the jurisdiction specified in a notice
-contained within the Original Software (except to the extent
-applicable law, if any, provides otherwise), excluding such
-jurisdiction's conflict-of-law provisions. Any litigation
-relating to this License shall be subject to the jurisdiction of
-the courts located in the jurisdiction and venue specified in a
-notice contained within the Original Software, with the losing
-party responsible for costs, including, without limitation, court
-costs and reasonable attorneys' fees and expenses. The
-application of the United Nations Convention on Contracts for the
-International Sale of Goods is expressly excluded. Any law or
-regulation which provides that the language of a contract shall
-be construed against the drafter shall not apply to this License.
-You agree that You alone are responsible for compliance with the
-United States export administration regulations (and the export
-control laws and regulation of any other countries) when You use,
-distribute or otherwise make available any Covered Software.
-
-10. RESPONSIBILITY FOR CLAIMS.
-
-As between Initial Developer and the Contributors, each party is
-responsible for claims and damages arising, directly or
-indirectly, out of its utilization of rights under this License
-and You agree to work with Initial Developer and Contributors to
-distribute such responsibility on an equitable basis. Nothing
-herein is intended or shall be deemed to constitute any admission
-of liability.
-
-NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND
-DISTRIBUTION LICENSE (CDDL)
-
-The code released under the CDDL shall be governed by the laws
-of the State of California (excluding conflict-of-law provisions).
-Any litigation relating to this License shall be subject to the
-jurisdiction of the Federal Courts of the Northern District of
-California and the state courts of the State of California, with
-venue lying in Santa Clara County, California.
diff --git a/enterprise/web.struts/external/oro-2.0.8-license.txt b/enterprise/web.struts/external/oro-2.0.8-license.txt
deleted file mode 100644
index 27d0a1725159..000000000000
--- a/enterprise/web.struts/external/oro-2.0.8-license.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-Name: Oro
-Version: 2.0.8
-License: Apache-1.1
-Description: Text processing Java Classes
-Origin: Apache
-
-The Apache Software License, Version 1.1
-
-Copyright (c) __YEARS__ The Apache Software Foundation. All rights
-reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
-3. The end-user documentation included with the redistribution,
- if any, must include the following acknowledgment:
- "This product includes software developed by the
- Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself,
- if and wherever such third-party acknowledgments normally appear.
-
-4. The names __NAMES__ must
- not be used to endorse or promote products derived from this
- software without prior written permission. For written
- permission, please contact apache@apache.org.
-
-5. Products derived from this software may not be called "Apache",
- nor may "Apache" appear in their name, without prior written
- permission of the Apache Software Foundation.
-
-THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
-ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-====================================================================
-
-This software consists of voluntary contributions made by many
-individuals on behalf of the Apache Software Foundation. For more
-information on the Apache Software Foundation, please see
-.
diff --git a/enterprise/web.struts/external/standard-1.0.6-license.txt b/enterprise/web.struts/external/standard-1.0.6-license.txt
deleted file mode 100644
index ba3b728f5b41..000000000000
--- a/enterprise/web.struts/external/standard-1.0.6-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: jakarta-taglibs 'standard'
-Description: An implementation of JavaServer Pages Standard Tag Library (JSTL)
-Origin: Apache
-Version: 1.0.6
-License: Apache-2.0
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-core-1.3.10-license.txt b/enterprise/web.struts/external/struts-core-1.3.10-license.txt
deleted file mode 100644
index c535cd8ecab7..000000000000
--- a/enterprise/web.struts/external/struts-core-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts Core
-Version: 1.3.10
-License: Apache-2.0
-Description: Core Struts Library
-Origin: Apache
-Files: struts-core-1.3.10-javadoc.jar, struts-core-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-core-1.3.10-notice.txt b/enterprise/web.struts/external/struts-core-1.3.10-notice.txt
deleted file mode 100644
index bc8e7978d79e..000000000000
--- a/enterprise/web.struts/external/struts-core-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-el-1.3.10-license.txt b/enterprise/web.struts/external/struts-el-1.3.10-license.txt
deleted file mode 100644
index 6064fcab3559..000000000000
--- a/enterprise/web.struts/external/struts-el-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts EL
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts Expression Language
-Origin: Apache
-Files: struts-el-1.3.10-javadoc.jar, struts-el-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-el-1.3.10-notice.txt b/enterprise/web.struts/external/struts-el-1.3.10-notice.txt
deleted file mode 100644
index e3fea868c1f0..000000000000
--- a/enterprise/web.struts/external/struts-el-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts EL
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-extras-1.3.10-license.txt b/enterprise/web.struts/external/struts-extras-1.3.10-license.txt
deleted file mode 100644
index 37247ba956cf..000000000000
--- a/enterprise/web.struts/external/struts-extras-1.3.10-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Name: Struts Extras
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts Extras provides different plugins mostly focused on fixing vulnerabilities in older versions of the framework
-Origin: Apache
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-extras-1.3.10-notice.txt b/enterprise/web.struts/external/struts-extras-1.3.10-notice.txt
deleted file mode 100644
index 566d2c453179..000000000000
--- a/enterprise/web.struts/external/struts-extras-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Extras
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-faces-1.3.10-license.txt b/enterprise/web.struts/external/struts-faces-1.3.10-license.txt
deleted file mode 100644
index 0df1ed1dd03e..000000000000
--- a/enterprise/web.struts/external/struts-faces-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts Faces
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts Faces framework
-Origin: Apache
-Files: struts-faces-1.3.10-javadoc.jar, struts-faces-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-faces-1.3.10-notice.txt b/enterprise/web.struts/external/struts-faces-1.3.10-notice.txt
deleted file mode 100644
index ed316f75f020..000000000000
--- a/enterprise/web.struts/external/struts-faces-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Faces
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-license.txt b/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-license.txt
deleted file mode 100644
index a0c6fe71d7ce..000000000000
--- a/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts Mailreader
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts mailreader framework focused on maintain accounts with mail servers
-Origin: Apache
-Files: struts-mailreader-dao-1.3.10-javadoc.jar, struts-mailreader-dao-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-notice.txt b/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-notice.txt
deleted file mode 100644
index 5415b4b3b40b..000000000000
--- a/enterprise/web.struts/external/struts-mailreader-dao-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Mailreader DAO
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-scripting-1.3.10-license.txt b/enterprise/web.struts/external/struts-scripting-1.3.10-license.txt
deleted file mode 100644
index 739148514a01..000000000000
--- a/enterprise/web.struts/external/struts-scripting-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts Scripting
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts scripting allows Struts Actions be written with the scripting language of your choice
-Origin: Apache
-Files: struts-scripting-1.3.10-javadoc.jar, struts-scripting-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-scripting-1.3.10-notice.txt b/enterprise/web.struts/external/struts-scripting-1.3.10-notice.txt
deleted file mode 100644
index ce3019dc20ed..000000000000
--- a/enterprise/web.struts/external/struts-scripting-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Scripting
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-taglib-1.3.10-license.txt b/enterprise/web.struts/external/struts-taglib-1.3.10-license.txt
deleted file mode 100644
index 6e69214d1541..000000000000
--- a/enterprise/web.struts/external/struts-taglib-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts taglib library
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts tag library contains JSP custom tags useful in creating dynamic HTML user interfaces
-Origin: Apache
-Files: struts-taglib-1.3.10-javadoc.jar, struts-taglib-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-taglib-1.3.10-notice.txt b/enterprise/web.struts/external/struts-taglib-1.3.10-notice.txt
deleted file mode 100644
index 1f5770d023b4..000000000000
--- a/enterprise/web.struts/external/struts-taglib-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Taglib
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/external/struts-tiles-1.3.10-license.txt b/enterprise/web.struts/external/struts-tiles-1.3.10-license.txt
deleted file mode 100644
index bd739370a86f..000000000000
--- a/enterprise/web.struts/external/struts-tiles-1.3.10-license.txt
+++ /dev/null
@@ -1,209 +0,0 @@
-Name: Struts Tiles
-Version: 1.3.10
-License: Apache-2.0
-Description: Struts Tiles is used to create reusable presentation components
-Origin: Apache
-Files: struts-tiles-1.3.10-javadoc.jar, struts-tiles-1.3.10.jar
-
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/enterprise/web.struts/external/struts-tiles-1.3.10-notice.txt b/enterprise/web.struts/external/struts-tiles-1.3.10-notice.txt
deleted file mode 100644
index ee85f3f5b549..000000000000
--- a/enterprise/web.struts/external/struts-tiles-1.3.10-notice.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Apache Struts Tiles
-Copyright 2000-2007 The Apache Software Foundation
\ No newline at end of file
diff --git a/enterprise/web.struts/licenseinfo.xml b/enterprise/web.struts/licenseinfo.xml
deleted file mode 100644
index e61e60cb9aa4..000000000000
--- a/enterprise/web.struts/licenseinfo.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
- src/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd
- src/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd
- src/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd
- src/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd
- src/org/netbeans/modules/web/struts/resources/struts-config_1_3-custom.dtd
- src/org/netbeans/modules/web/struts/resources/validator-rules.xml
-
-
-Apache Struts
-Copyright 2000-2007 The Apache Software Foundation
-
-
-
- src/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd
- src/org/netbeans/modules/web/struts/resources/tiles-config_1_3.dtd
- src/org/netbeans/modules/web/struts/resources/struts-tiles.tld
-
-
-Apache Struts Tiles
-Copyright 2000-2007 The Apache Software Foundation
-
-
-
- src/org/netbeans/modules/web/struts/resources/validator_1_0.dtd
- src/org/netbeans/modules/web/struts/resources/validator_1_0_1.dtd
- src/org/netbeans/modules/web/struts/resources/validator_1_1.dtd
- src/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd
- src/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd
- src/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd
-
-
-Apache Jakarta Commons Validator
-Copyright 2001-2006 The Apache Software Foundation
-
-
-
- src/org/netbeans/modules/web/struts/resources/struts-bean.tld
- src/org/netbeans/modules/web/struts/resources/struts-html.tld
- src/org/netbeans/modules/web/struts/resources/struts-logic.tld
- src/org/netbeans/modules/web/struts/resources/struts-nested.tld
-
-
-Apache Struts Taglib
-Copyright 2000-2007 The Apache Software Foundation
-
-
-
diff --git a/enterprise/web.struts/manifest.mf b/enterprise/web.struts/manifest.mf
deleted file mode 100644
index e23b70e012ac..000000000000
--- a/enterprise/web.struts/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.web.struts/1
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/web/struts/resources/Bundle.properties
-OpenIDE-Module-Layer: org/netbeans/modules/web/struts/resources/layer.xml
-OpenIDE-Module-Implementation-Version: 1
-OpenIDE-Module-Provides: org.netbeans.modules.web.project.framework
diff --git a/enterprise/web.struts/nbproject/project.properties b/enterprise/web.struts/nbproject/project.properties
deleted file mode 100644
index 3d7ebd07cc0f..000000000000
--- a/enterprise/web.struts/nbproject/project.properties
+++ /dev/null
@@ -1,85 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-javac.compilerargs=-Xlint:unchecked
-javac.source=1.8
-spec.version.base=1.57.0
-
-extra.module.files=\
- modules/ext/struts/antlr-2.7.2.jar,\
- modules/ext/struts/bsf-2.3.0.jar,\
- modules/ext/struts/commons-beanutils-1.8.0.jar,\
- modules/ext/struts/commons-chain-1.2.jar,\
- modules/ext/struts/commons-digester-1.8.jar,\
- modules/ext/struts/commons-fileupload-1.1.1.jar,\
- modules/ext/struts/commons-io-1.1.jar,\
- modules/ext/struts/commons-logging-1.0.4.jar,\
- modules/ext/struts/commons-validator-1.3.1.jar,\
- modules/ext/struts/jstl-1.0.2.jar,\
- modules/ext/struts/oro-2.0.8.jar,\
- modules/ext/struts/standard-1.0.6.jar,\
- modules/ext/struts/struts-core-1.3.10.jar,\
- modules/ext/struts/struts-el-1.3.10.jar,\
- modules/ext/struts/struts-extras-1.3.10.jar,\
- modules/ext/struts/struts-faces-1.3.10.jar,\
- modules/ext/struts/struts-mailreader-dao-1.3.10.jar,\
- modules/ext/struts/struts-scripting-1.3.10.jar,\
- modules/ext/struts/struts-taglib-1.3.10.jar,\
- modules/ext/struts/struts-tiles-1.3.10.jar,\
- docs/struts-1.3.10-javadoc.zip
-
-release.external/generated-struts-1.3.10-javadoc.zip=docs/struts-1.3.10-javadoc.zip
-release.external/antlr-2.7.2.jar=modules/ext/struts/antlr-2.7.2.jar
-release.external/bsf-2.3.0.jar=modules/ext/struts/bsf-2.3.0.jar
-release.external/commons-beanutils-1.8.0.jar=modules/ext/struts/commons-beanutils-1.8.0.jar
-release.external/commons-chain-1.2.jar=modules/ext/struts/commons-chain-1.2.jar
-release.external/commons-digester-1.8.jar=modules/ext/struts/commons-digester-1.8.jar
-release.external/commons-fileupload-1.1.1.jar=modules/ext/struts/commons-fileupload-1.1.1.jar
-release.external/commons-io-1.1.jar=modules/ext/struts/commons-io-1.1.jar
-release.external/commons-logging-1.0.4.jar=modules/ext/struts/commons-logging-1.0.4.jar
-release.external/commons-validator-1.3.1.jar=modules/ext/struts/commons-validator-1.3.1.jar
-release.external/jstl-1.0.2.jar=modules/ext/struts/jstl-1.0.2.jar
-release.external/oro-2.0.8.jar=modules/ext/struts/oro-2.0.8.jar
-release.external/standard-1.0.6.jar=modules/ext/struts/standard-1.0.6.jar
-release.external/struts-core-1.3.10.jar=modules/ext/struts/struts-core-1.3.10.jar
-release.external/struts-el-1.3.10.jar=modules/ext/struts/struts-el-1.3.10.jar
-release.external/struts-extras-1.3.10.jar=modules/ext/struts/struts-extras-1.3.10.jar
-release.external/struts-faces-1.3.10.jar=modules/ext/struts/struts-faces-1.3.10.jar
-release.external/struts-mailreader-dao-1.3.10.jar=modules/ext/struts/struts-mailreader-dao-1.3.10.jar
-release.external/struts-scripting-1.3.10.jar=modules/ext/struts/struts-scripting-1.3.10.jar
-release.external/struts-taglib-1.3.10.jar=modules/ext/struts/struts-taglib-1.3.10.jar
-release.external/struts-tiles-1.3.10.jar=modules/ext/struts/struts-tiles-1.3.10.jar
-
-test.unit.cp.extra=\
- ${xml.text.dir}/modules/org-netbeans-modules-xml-text.jar
-test.unit.run.cp.extra=\
- ${masterfs.dir}/modules/org-netbeans-modules-masterfs.jar:\
- ${xml.text.dir}/modules/org-netbeans-modules-xml-text.jar:\
- ${editor.lib.dir}/modules/org-netbeans-modules-editor-util.jar:\
- ${openide.modules.dir}/lib/org-openide-modules.jar:\
- ${openide.options.dir}/modules/org-openide-options.jar:\
- ${editor.fold.dir}/modules/org-netbeans-modules-editor-fold.jar
-
-test.config.stable.includes=\
-**/*Test.class
-
-test.config.validation.includes=\
-**/*Test.class
-
-test.config.stableBTD.includes=**/*Test.class
-test.config.stableBTD.excludes=\
- **/EndToEndTest.class
diff --git a/enterprise/web.struts/nbproject/project.xml b/enterprise/web.struts/nbproject/project.xml
deleted file mode 100644
index 9d0c6df85de8..000000000000
--- a/enterprise/web.struts/nbproject/project.xml
+++ /dev/null
@@ -1,450 +0,0 @@
-
-
-
- org.netbeans.modules.apisupport.project
-
-
- org.netbeans.modules.web.struts
-
-
- org.netbeans.api.java
-
-
-
- 1
- 1.18
-
-
-
- org.netbeans.api.java.classpath
-
-
-
- 1
- 1.0
-
-
-
- org.netbeans.api.web.webmodule
-
-
-
- 1.0
-
-
-
- org.netbeans.api.xml
-
-
-
- 1
- 1.41
-
-
-
- org.netbeans.api.xml.ui
-
-
-
- 1
- 1.41
-
-
-
- org.netbeans.core.multiview
-
-
-
- 1
- 1.25
-
-
-
- org.netbeans.libs.commons_fileupload
-
- 1
- 1.0
-
-
-
- org.netbeans.libs.javacapi
-
-
-
- 0.5
-
-
-
- org.netbeans.modules.editor
-
-
-
- 3
- 1.53
-
-
-
- org.netbeans.modules.editor.completion
-
-
-
- 1
-
-
-
- org.netbeans.modules.editor.indent
-
-
-
- 2
- 1.10
-
-
-
- org.netbeans.modules.editor.lib
-
-
-
- 3
- 4.0
-
-
-
- org.netbeans.modules.editor.document
-
-
-
- 1.0
-
-
-
- org.netbeans.modules.j2ee.common
-
-
-
- 1
- 1.2
-
-
-
- org.netbeans.modules.j2ee.core
-
-
-
- 0
- 1.7
-
-
-
- org.netbeans.modules.j2ee.dd
-
-
-
- 1
-
-
-
- org.netbeans.modules.java.project
-
-
-
- 1
- 1.62
-
-
-
- org.netbeans.modules.java.project.ui
-
-
-
- 1
- 1.62
-
-
-
- org.netbeans.modules.java.source.base
-
-
-
- 1.0
-
-
-
- org.netbeans.modules.java.sourceui
-
-
-
- 1
- 1.3
-
-
-
- org.netbeans.modules.project.libraries
-
-
-
- 1
- 1.49
-
-
-
- org.netbeans.modules.project.libraries.ui
-
-
-
- 1
- 1.49
-
-
-
- org.netbeans.modules.projectapi
-
-
-
- 1
-
-
-
- org.netbeans.modules.projectuiapi
-
-
-
- 1
- 1.78
-
-
-
- org.netbeans.modules.queries
-
-
-
- 1
- 1.10
-
-
-
- org.netbeans.modules.schema2beans
-
-
-
- 1
- 1.36
-
-
-
- org.netbeans.modules.web.kit
-
- 1.0
-
-
-
- org.netbeans.modules.xml.catalog
-
-
-
- 2
- 2.0
-
-
-
- org.netbeans.modules.xml.core
-
-
-
- 2
- 1.9.0
-
-
-
- org.openide.actions
-
-
-
- 6.2
-
-
-
- org.openide.awt
-
-
-
- 6.2
-
-
-
- org.openide.dialogs
-
-
-
- 7.8
-
-
-
- org.openide.explorer
-
-
-
- 6.8
-
-
-
- org.openide.filesystems
-
-
-
- 9.0
-
-
-
- org.openide.loaders
-
-
-
- 7.61
-
-
-
- org.openide.nodes
-
-
-
- 6.2
-
-
-
- org.openide.text
-
-
-
- 6.16
-
-
-
- org.openide.util.ui
-
-
-
- 9.3
-
-
-
- org.openide.util
-
-
-
- 9.3
-
-
-
- org.openide.util.lookup
-
-
-
- 8.0
-
-
-
- org.openide.windows
-
-
-
- 6.2
-
-
-
-
-
- unit
-
- org.netbeans.libs.junit4
-
-
-
- org.netbeans.modules.editor.lib2
-
-
- org.netbeans.modules.editor.mimelookup
-
-
- org.netbeans.modules.nbjunit
-
-
-
-
- org.netbeans.modules.projectapi.nb
-
-
- org.netbeans.modules.web.struts
-
-
-
-
- org.netbeans.modules.xml.text
-
-
- org.openide.util.ui
-
-
-
-
- org.openide.util.lookup
-
-
-
-
-
- qa-functional
-
- org.netbeans.libs.junit4
-
-
-
- org.netbeans.modules.jellytools.enterprise
-
-
-
- org.netbeans.modules.jellytools.ide
-
-
-
- org.netbeans.modules.jellytools.java
-
-
-
- org.netbeans.modules.jellytools.platform
-
-
-
- org.netbeans.modules.jemmy
-
-
-
- org.netbeans.modules.nbjunit
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/Bundle.properties b/enterprise/web.struts/src/org/netbeans/modules/web/struts/Bundle.properties
deleted file mode 100644
index 7e8af0cebc39..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/Bundle.properties
+++ /dev/null
@@ -1,49 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-LBL_loaderName=Struts Config Loader
-LBL_StrutsCatalog=Struts Catalog
-DESC_StrutsCatalog=XML Catalog for Struts Configuration 1.0, Struts Configuration 1.1 and Struts Configuration 1.2.
-
-
-TEXT_SAVE_AS_UTF=Selected encoding {0} is not supported. Save it as UTF-8?
-
-
-Sruts_Name=Struts 1.3.10
-Sruts_Description=Struts support
-
-# Changing jsp index page
-LBL_STRUTS_WELCOME_PAGE=Struts Welcome Page
-
-#Message for invalid xml file
-TXT_errorMessage={0} [{1},{2}]
-MSG_invalidXmlWarning=There were errors found while validating XML document.\nSave anyway?
-TTL_invalidXmlWarning=Invalid XML File
-
-MSG_OverwriteFile=The file {0} already exists.\nWould you like to replace it?\n\nIf you replace the existing file, its contents will be overwritten.
-TTL_OverwriteFile=The file already exists
-
-# {0} = name of file
-# {1} = the bad encoding
-# {2} = the encoding for reading or saving
-MSG_BadEncodingDuringSave=The "{1}" character set that is used in {0} is not a valid character set.
Do you want to save the file using the {2} character set?
-
-# {0} = name of file
-# {1} = the bad encoding
-MSG_BadCharConversion=The {0} contains characters which will probably be damaged during conversion to the {1} character set.
Do you want to save the file using this character set?
-
-WARN_UnknownDeploymentDescriptorText=Project contains unknown version or unparsable deployment descriptor which was not recognized.
You have to do Struts registration into web.xml manually.
\ No newline at end of file
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/SAXParseError.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/SAXParseError.java
deleted file mode 100644
index 28408c518857..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/SAXParseError.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import org.xml.sax.SAXParseException;
-
-/**
- *
- * @author mkuchtiak
- * @version
- */
-public class SAXParseError {
-
- private SAXParseException exception;
-
- /** Creates new XMLError */
- public SAXParseError(SAXParseException e) {
- exception=e;
- }
- public SAXParseException getException(){return exception;}
- public int getErrorLine(){return exception.getLineNumber();}
- public int getErrorColumn(){return exception.getColumnNumber();}
- public String getErrorText(){return exception.getMessage();}
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsCatalog.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsCatalog.java
deleted file mode 100644
index c69451a612a9..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsCatalog.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/*
- * StrutsCatalog.java
- *
- * Created on April 24, 2002, 10:38 PM
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.util.List;
-import java.util.ArrayList;
-import org.netbeans.modules.xml.catalog.spi.*;
-import org.openide.util.ImageUtilities;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/**
- *
- * @author Petr Pisl
- */
-public class StrutsCatalog implements CatalogReader, CatalogDescriptor2, org.xml.sax.EntityResolver {
-
- private static final String STRUTS_ID_1_0 = "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"; // NOI18N
- private static final String STRUTS_ID_1_1 = "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"; // NOI18N
- private static final String STRUTS_ID_1_2 = "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"; // NOI18N
- private static final String STRUTS_ID_1_3 = "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"; // NOI18N
- private static final String TILES_ID_1_1 = "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"; // NOI18N
- private static final String TILES_ID_1_3 = "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"; // NOI18N
- private static final String VALIDATOR_ID_1_1 = "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"; // NOI18N
- private static final String VALIDATOR_ID_1_1_3 = "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"; // NOI18N
- private static final String VALIDATOR_ID_1_2_0 = "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.2.0//EN"; // NOI18N
- private static final String VALIDATOR_ID_1_3_0 = "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"; // NOI18N
-
- private static final String URL_STRUTS_1_0 ="nbres:/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd"; // NOI18N
- private static final String URL_STRUTS_1_1 ="nbres:/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd"; // NOI18N
- private static final String URL_STRUTS_1_2 ="nbres:/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd"; // NOI18N
- private static final String URL_STRUTS_1_3 ="nbres:/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd"; // NOI18N
- private static final String URL_TILES_1_1 = "nbres:/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd"; // NOI18N
- private static final String URL_TILES_1_3 = "nbres:/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd"; // NOI18N
- private static final String URL_VALIDATOR_1_1 = "nbres:/org/netbeans/modules/web/struts/resources/validator_1_1.dtd"; // NOI18N
- private static final String URL_VALIDATOR_1_1_3 = "nbres:/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd"; // NOI18N
- private static final String URL_VALIDATOR_1_2_0 = "nbres:/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd"; // NOI18N
- private static final String URL_VALIDATOR_1_3_0 = "nbres:/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd"; // NOI18N
-
- /** Creates a new instance of StrutsCatalog */
- public StrutsCatalog() {
- }
-
- /**
- * Get String iterator representing all public IDs registered in catalog.
- * @return null if cannot proceed, try later.
- */
- public java.util.Iterator getPublicIDs() {
- List list = new ArrayList();
- list.add(STRUTS_ID_1_0);
- list.add(STRUTS_ID_1_1);
- list.add(STRUTS_ID_1_2);
- list.add(STRUTS_ID_1_3);
- list.add(TILES_ID_1_1);
- list.add(TILES_ID_1_3);
- list.add(VALIDATOR_ID_1_1);
- list.add(VALIDATOR_ID_1_1_3);
- list.add(VALIDATOR_ID_1_2_0);
- list.add(VALIDATOR_ID_1_3_0);
- return list.listIterator();
- }
-
- /**
- * Get registered systemid for given public Id or null if not registered.
- * @return null if not registered
- */
- public String getSystemID(String publicId) {
- if (STRUTS_ID_1_0.equals(publicId))
- return URL_STRUTS_1_0;
- else if (STRUTS_ID_1_1.equals(publicId))
- return URL_STRUTS_1_1;
- else if (STRUTS_ID_1_2.equals(publicId))
- return URL_STRUTS_1_2;
- else if (STRUTS_ID_1_3.equals(publicId))
- return URL_STRUTS_1_3;
- else if (TILES_ID_1_1.equals(publicId))
- return URL_TILES_1_1;
- else if (TILES_ID_1_3.equals(publicId))
- return URL_TILES_1_3;
- else if (VALIDATOR_ID_1_1.equals(publicId))
- return URL_VALIDATOR_1_1;
- else if (VALIDATOR_ID_1_1_3.equals(publicId))
- return URL_VALIDATOR_1_1_3;
- else if (VALIDATOR_ID_1_2_0.equals(publicId))
- return URL_VALIDATOR_1_2_0;
- else if (VALIDATOR_ID_1_3_0.equals(publicId))
- return URL_VALIDATOR_1_3_0;
- else return null;
- }
-
- /**
- * Refresh content according to content of mounted catalog.
- */
- public void refresh() {
- }
-
- /**
- * Optional operation allowing to listen at catalog for changes.
- * @throws UnsupportedOpertaionException if not supported by the implementation.
- */
- public void addCatalogListener(CatalogListener l) {
- }
-
- /**
- * Optional operation couled with addCatalogListener.
- * @throws UnsupportedOpertaionException if not supported by the implementation.
- */
- public void removeCatalogListener(CatalogListener l) {
- }
-
- /** Registers new listener. */
- public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
- }
-
- /** Unregister the listener. */
- public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
- }
-
- /**
- * @return I18N display name
- */
- public String getDisplayName() {
- return NbBundle.getMessage(StrutsCatalog.class, "LBL_StrutsCatalog"); //NOI18N
- }
-
- /**
- * Return visuaized state of given catalog.
- * @param type of icon defined by JavaBeans specs
- * @return icon representing current state or null
- */
- public String getIconResource(int type) {
- return "org/netbeans/modules/web/struts/resources/StrutsCatalog.png"; // NOI18N
- }
-
- /**
- * @return I18N short description
- */
- public String getShortDescription() {
- return NbBundle.getMessage(StrutsCatalog.class, "DESC_StrutsCatalog"); //NOI18N
- }
-
- /**
- * Resolves schema definition file for taglib descriptor (spec.1_1, 1_2, 2_0)
- * @param publicId publicId for resolved entity (null in our case)
- * @param systemId systemId for resolved entity
- * @return InputSource for publisId,
- */
- public org.xml.sax.InputSource resolveEntity(String publicId, String systemId) throws org.xml.sax.SAXException, java.io.IOException {
- if (STRUTS_ID_1_0.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_STRUTS_1_0);
- } else if (STRUTS_ID_1_1.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_STRUTS_1_1);
- } else if (STRUTS_ID_1_2.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_STRUTS_1_2);
- } else if (STRUTS_ID_1_3.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_STRUTS_1_3);
- } else if (TILES_ID_1_1.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_TILES_1_1);
- } else if (TILES_ID_1_3.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_TILES_1_3);
- } else if (VALIDATOR_ID_1_1.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_VALIDATOR_1_1);
- } else if (VALIDATOR_ID_1_1_3.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_VALIDATOR_1_1_3);
- } else if (VALIDATOR_ID_1_2_0.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_VALIDATOR_1_2_0);
- } else if (VALIDATOR_ID_1_3_0.equals(publicId)) {
- return new org.xml.sax.InputSource(URL_VALIDATOR_1_3_0);
- } else {
- return null;
- }
- }
-
- /**
- * Get registered URI for the given name or null if not registered.
- * @return null if not registered
- */
- public String resolveURI(String name) {
- return null;
- }
- /**
- * Get registered URI for the given publicId or null if not registered.
- * @return null if not registered
- */
- public String resolvePublic(String publicId) {
- return null;
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigDataObject.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigDataObject.java
deleted file mode 100644
index 302ded7bc7b0..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigDataObject.java
+++ /dev/null
@@ -1,360 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-//import org.netbeans.modules.xml.catalog.settings.CatalogSettings;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.modules.web.struts.config.model.StrutsConfig;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObjectExistsException;
-import org.openide.loaders.MultiDataObject;
-import org.openide.nodes.CookieSet;
-import org.openide.nodes.Node;
-import org.openide.util.Lookup;
-import org.xml.sax.InputSource;
-
-import org.netbeans.core.spi.multiview.MultiViewElement;
-import org.netbeans.core.spi.multiview.text.MultiViewEditorElement;
-import org.netbeans.modules.xml.api.XmlFileEncodingQueryImpl;
-import org.netbeans.spi.queries.FileEncodingQueryImplementation;
-import org.netbeans.spi.xml.cookies.*;
-import org.openide.filesystems.MIMEResolver;
-import org.openide.util.NbBundle.Messages;
-import org.openide.windows.TopComponent;
-import org.w3c.dom.Document;
-import org.xml.sax.ErrorHandler;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-
-/**
- *
- * @author Petr Pisl
- */
-@MIMEResolver.NamespaceRegistration(
- displayName="",
- position=410,
- mimeType="text/x-struts+xml",
- doctypePublicId={
- "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN",
- "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN",
- "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN",
- "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
- }
-)
-public class StrutsConfigDataObject extends MultiDataObject
- implements org.openide.nodes.CookieSet.Factory {
-
- private static StrutsCatalog strutsCatalog = new StrutsCatalog();
- private boolean documentDirty = true;
- private boolean documentValid=true;
- protected boolean nodeDirty = false;
- private InputStream inputStream;
- private SAXParseError error;
- private StrutsConfig lastGoodConfig = null;
-
- /** Editor support for text data object. */
- private transient StrutsConfigEditorSupport editorSupport;
-
- /** Property name for property documentValid */
- public static final String PROP_DOC_VALID = "documentValid"; // NOI18N
-
- /** Creates a new instance of StrutsConfigDataObject */
- public StrutsConfigDataObject(FileObject pf, StrutsConfigLoader loader) throws DataObjectExistsException {
- super(pf, loader);
- init();
-
- }
-
- private void init() {
- CookieSet cookies = getCookieSet();
-
- cookies.add(StrutsConfigEditorSupport.class, this);
- cookies.assign(FileEncodingQueryImplementation.class, XmlFileEncodingQueryImpl.singleton());
- // Creates Check XML and Validate XML context actions
- InputSource in = DataObjectAdapters.inputSource(this);
- cookies.add(new CheckXMLSupport(in));
- cookies.add(new ValidateXMLSupport(in));
- }
-
- /**
- * Provides node that should represent this data object. When a node for
- * representation in a parent is requested by a call to getNode (parent)
- * it is the exact copy of this node
- * with only parent changed. This implementation creates instance
- * DataNode.
- *
- * This method is called only once.
- *
- * @return the node representation for this data object
- * @see DataNode
- */
- protected synchronized Node createNodeDelegate () {
- return new StrutsConfigNode(this);
- }
-
- @MultiViewElement.Registration(
- displayName="#CTL_SourceTabCaption",
- iconBase="org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png",
- persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
- preferredID="struts.config",
- mimeType=StrutsConfigLoader.MIME_TYPE,
- position=1
- )
- @Messages("CTL_SourceTabCaption=&Source")
- public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
- return new MultiViewEditorElement(context);
- }
-
- /** Implements CookieSet.Factory interface. */
- public Node.Cookie createCookie(Class clazz) {
- if(clazz.isAssignableFrom(StrutsConfigEditorSupport.class))
- return getEditorSupport();
- else
- return null;
- }
-
- @Override
- protected int associateLookup() {
- return 1;
- }
-
- /** Gets editor support for this data object. */
- public StrutsConfigEditorSupport getEditorSupport() {
- if(editorSupport == null) {
- synchronized(this) {
- if(editorSupport == null)
- editorSupport = new StrutsConfigEditorSupport(this);
- }
- }
-
- return editorSupport;
- }
-
- public StrutsConfig getStrutsConfig() throws java.io.IOException {
- if (lastGoodConfig == null)
- parsingDocument();
- return lastGoodConfig;
- }
-
- public StrutsConfig getStrutsConfig (boolean parsenow) throws java.io.IOException{
- if (parsenow){
- StrutsConfig previous = lastGoodConfig;
- parsingDocument();
- if (lastGoodConfig == null)
- lastGoodConfig = previous;
- }
- return getStrutsConfig();
- }
-
- /** This method is used for obtaining the current source of xml document.
- * First try if document is in the memory. If not, provide the input from
- * underlayed file object.
- * @return The input source from memory or from file
- * @exception IOException if some problem occurs
- */
- protected InputStream prepareInputSource() throws java.io.IOException {
- if ((getEditorSupport() != null) && (getEditorSupport().isDocumentLoaded())) {
- // loading from the memory (Document)
- return getEditorSupport().getInputStream();
- }
- else {
- return getPrimaryFile().getInputStream();
- }
- }
-
- /** This method has to be called everytime after prepareInputSource calling.
- * It is used for closing the stream, because it is not possible to access the
- * underlayed stream hidden in InputSource.
- * It is save to call this method without opening.
- */
- protected void closeInputSource() {
- InputStream is = inputStream;
- if (is != null) {
- try {
- is.close();
- }
- catch (IOException e) {
- // nothing to do, if exception occurs during saving.
- }
- if (is == inputStream) {
- inputStream = null;
- }
- }
- }
-
- public void write(StrutsConfig config) throws java.io.IOException {
- java.io.File file = org.openide.filesystems.FileUtil.toFile(getPrimaryFile());
- org.openide.filesystems.FileObject configFO = getPrimaryFile();
- try {
- org.openide.filesystems.FileLock lock = configFO.lock();
- try {
- java.io.OutputStream os =configFO.getOutputStream(lock);
- try {
- config.write(os);
- } finally {
- os.close();
- }
- }
- finally {
- lock.releaseLock();
- }
- } catch (org.openide.filesystems.FileAlreadyLockedException ex) {
- // PENDING should write a message
- }
- }
-
- /** This method parses XML document and calls updateNode method which
- * updates corresponding Node.
- */
- public void parsingDocument(){
- error = null;
- try {
- error = updateNode(prepareInputSource());
- }
- catch (Exception e) {
- Logger.getLogger("global").log(Level.INFO, null, e);
- setDocumentValid(false);
- return;
- }
- finally {
- closeInputSource();
- documentDirty=false;
- }
- if (error == null){
- setDocumentValid(true);
- }else {
- setDocumentValid(false);
- }
- setNodeDirty(false);
- }
-
- public void setDocumentValid (boolean valid){
- if (documentValid!=valid) {
- if (valid)
- repairNode();
- documentValid=valid;
- firePropertyChange (PROP_DOC_VALID, !documentValid ? Boolean.TRUE : Boolean.FALSE, documentValid ? Boolean.TRUE : Boolean.FALSE);
- }
- }
-
- /** This method repairs Node Delegate (usually after changing document by property editor)
- */
- protected void repairNode(){
- // PENDING: set the icon in Node
- // ((DataNode)getNodeDelegate()).setIconBase (getIconBaseForValidDocument());
- org.openide.awt.StatusDisplayer.getDefault().setStatusText(""); // NOI18N
- /* if (inOut!=null) {
- inOut.closeInputOutput();
- errorAnnotation.detach();
- }*/
- }
-
- private org.w3c.dom.Document getDomDocument(InputStream inputSource) throws SAXParseException {
- try {
- // creating w3c document
- org.w3c.dom.Document doc = org.netbeans.modules.schema2beans.GraphManager.
- createXmlDocument(new org.xml.sax.InputSource(inputSource), false, strutsCatalog,
- new J2eeErrorHandler(this));
- return doc;
- } catch(Exception e) {
- // XXX Change that
- throw new SAXParseException(e.getMessage(), new org.xml.sax.helpers.LocatorImpl());
- }
- }
-
- /** Update the node from document. This method is called after document is changed.
- * @param is Input source for the document
- * @return number of the line with error (document is invalid), 0 (xml document is valid)
- */
- // TODO is prepared for handling arrors, but not time to finish it.
- protected SAXParseError updateNode(InputStream is) throws java.io.IOException{
- try {
- Document doc = getDomDocument(is);
- lastGoodConfig = StrutsConfig.createGraph(doc);
- } catch(SAXParseException ex) {
- return new SAXParseError(ex);
- }
- return null;
- }
-
- public boolean isDocumentValid(){
- return documentValid;
- }
- /** setter for property documentDirty. Method updateDocument() usually setsDocumentDirty to false
- */
- public void setDocumentDirty(boolean dirty){
- documentDirty=dirty;
- }
-
- /** Getter for property documentDirty.
- * @return Value of property documentDirty.
- */
- public boolean isDocumentDirty(){
- return documentDirty;
- }
-
- /** Getter for property nodeDirty.
- * @return Value of property nodeDirty.
- */
- public boolean isNodeDirty(){
- return nodeDirty;
- }
-
- /** Setter for property nodeDirty.
- * @param dirty New value of property nodeDirty.
- */
- public void setNodeDirty(boolean dirty){
- nodeDirty=dirty;
- }
- org.openide.nodes.CookieSet getCookieSet0() {
- return getCookieSet();
- }
-
- public static class J2eeErrorHandler implements ErrorHandler {
-
- private StrutsConfigDataObject dataObject;
-
- public J2eeErrorHandler(StrutsConfigDataObject obj) {
- dataObject=obj;
- }
-
- public void error(SAXParseException exception) throws SAXException {
- dataObject.createSAXParseError(exception);
- throw exception;
- }
-
- public void fatalError(SAXParseException exception) throws SAXException {
- dataObject.createSAXParseError(exception);
- throw exception;
- }
-
- public void warning(SAXParseException exception) throws SAXException {
- dataObject.createSAXParseError(exception);
- throw exception;
- }
- }
-
- private void createSAXParseError(SAXParseException error){
- this.error = new SAXParseError(error);
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigEditorSupport.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigEditorSupport.java
deleted file mode 100644
index 5c3b0af1cfb8..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigEditorSupport.java
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.IOException;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import javax.swing.text.BadLocationException;
-import javax.swing.text.StyledDocument;
-import org.netbeans.core.api.multiview.MultiViews;
-import org.netbeans.modules.xml.api.EncodingUtil;
-import org.openide.DialogDescriptor;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.filesystems.FileLock;
-import org.openide.filesystems.FileObject;
-import org.openide.nodes.Node.Cookie;
-import org.openide.text.DataEditorSupport;
-import org.openide.cookies.*;
-import org.openide.text.CloneableEditorSupport;
-import org.openide.text.NbDocument;
-import org.openide.util.NbBundle;
-import org.openide.util.RequestProcessor;
-
-/**
- *
- * @author Petr Pisl
- */
-public class StrutsConfigEditorSupport extends DataEditorSupport
-implements OpenCookie, EditCookie, EditorCookie.Observable, PrintCookie, CloseCookie {
-
- /** SaveCookie for this support instance. The cookie is adding/removing
- * data object's cookie set depending on if modification flag was set/unset. */
- private final SaveCookie saveCookie = new SaveCookie() {
- /** Implements SaveCookie interface. */
- public void save() throws java.io.IOException {
- StrutsConfigDataObject obj = (StrutsConfigDataObject) getDataObject ();
- // invoke parsing before save
- restartTimer();
- obj.parsingDocument();
- if (obj.isDocumentValid()) {
- saveDocument();
- }else {
- DialogDescriptor dialog = new DialogDescriptor(
- NbBundle.getMessage (StrutsConfigEditorSupport.class, "MSG_invalidXmlWarning"), //NOI18N
- NbBundle.getMessage (StrutsConfigEditorSupport.class, "TTL_invalidXmlWarning")); //NOI18N
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- if (dialog.getValue() == org.openide.DialogDescriptor.OK_OPTION) {
- saveDocument();
- }
- }
- }
- };
-
- private StrutsConfigDataObject dataObject;
- private RequestProcessor.Task parsingDocumentTask;
- /** Delay for automatic parsing - in miliseconds */
- private static final int AUTO_PARSING_DELAY = 2000;
-
- public StrutsConfigEditorSupport(StrutsConfigDataObject dobj) {
- super(dobj, null, new XmlEnv(dobj));
- setMIMEType(StrutsConfigLoader.MIME_TYPE);
- dataObject = dobj;
- //initialize the listeners on the document
- initialize();
- }
-
- @Override
- protected boolean asynchronousOpen() {
- return false;
- }
-
- @Override
- protected Pane createPane() {
- return (CloneableEditorSupport.Pane) MultiViews.createCloneableMultiView(StrutsConfigLoader.MIME_TYPE, getDataObject());
- }
-
- private void initialize() {
- // Create DocumentListener
- final DocumentListener docListener = new DocumentListener() {
- public void insertUpdate(DocumentEvent e) { change(e); }
- public void changedUpdate(DocumentEvent e) { }
- public void removeUpdate(DocumentEvent e) { change(e); }
-
- private void change(DocumentEvent e) {
- if (!dataObject.isNodeDirty()) restartTimer();
- }
- };
-
- // the listener add only when the document is move to memory
- addPropertyChangeListener(new PropertyChangeListener() {
- public void propertyChange(PropertyChangeEvent evt) {
- if (EditorCookie.Observable.PROP_DOCUMENT.equals(evt.getPropertyName())
- && isDocumentLoaded()) {
- StyledDocument doc = getDocument();
- if (doc != null) {
- doc.addDocumentListener(docListener);
- }
- }
- }
- });
- }
-
- /*
- * Save document using encoding declared in XML prolog if possible otherwise
- * at UTF-8 (in such case it updates the prolog).
- */
- public void saveDocument () throws java.io.IOException {
- final javax.swing.text.StyledDocument doc = getDocument();
- String defaultEncoding = "UTF-8"; // NOI18N
- // dependency on xml/core
- String enc = EncodingUtil.detectEncoding(doc);
- boolean changeEncodingToDefault = false;
- if (enc == null) enc = defaultEncoding;
-
- //test encoding
- if (!isSupportedEncoding(enc)){
- NotifyDescriptor nd = new NotifyDescriptor.Confirmation(
- NbBundle.getMessage (StrutsConfigEditorSupport.class, "MSG_BadEncodingDuringSave", //NOI18N
- new Object [] { getDataObject().getPrimaryFile().getNameExt(),
- enc,
- defaultEncoding} ),
- NotifyDescriptor.YES_NO_OPTION,
- NotifyDescriptor.WARNING_MESSAGE);
- nd.setValue(NotifyDescriptor.NO_OPTION);
- DialogDisplayer.getDefault().notify(nd);
- if(nd.getValue() != NotifyDescriptor.YES_OPTION) return;
- changeEncodingToDefault = true;
- }
-
- if (!changeEncodingToDefault){
- // is it possible to save the document in the encoding?
- try {
- java.nio.charset.CharsetEncoder coder = java.nio.charset.Charset.forName(enc).newEncoder();
- if (!coder.canEncode(doc.getText(0, doc.getLength()))){
- NotifyDescriptor nd = new NotifyDescriptor.Confirmation(
- NbBundle.getMessage (StrutsConfigEditorSupport.class, "MSG_BadCharConversion", //NOI18N
- new Object [] { getDataObject().getPrimaryFile().getNameExt(),
- enc}),
- NotifyDescriptor.YES_NO_OPTION,
- NotifyDescriptor.WARNING_MESSAGE);
- nd.setValue(NotifyDescriptor.NO_OPTION);
- DialogDisplayer.getDefault().notify(nd);
- if(nd.getValue() != NotifyDescriptor.YES_OPTION) return;
- }
- }
- catch (javax.swing.text.BadLocationException e){
- Logger.getLogger("global").log(Level.INFO, null, e);
- }
- super.saveDocument();
- //moved from Env.save()
-// DataObject.setModified() already called as part of super.saveDocument(). The save action is now asynchronous
-// in the IDE and super.saveDocument() checks for possible extra document modifications performed during save
-// and sets the DO.modified flag accordingly.
-// getDataObject().setModified (false);
- }
- else {
- // update prolog to new valid encoding
-
- try {
- final int MAX_PROLOG = 1000;
- int maxPrologLen = Math.min(MAX_PROLOG, doc.getLength());
- final char prolog[] = doc.getText(0, maxPrologLen).toCharArray();
- int prologLen = 0; // actual prolog length
-
- //parse prolog and get prolog end
- if (prolog[0] == '<' && prolog[1] == '?' && prolog[2] == 'x') {
-
- // look for delimitting ?>
- for (int i = 3; i') {
- prologLen = i + 1;
- break;
- }
- }
- }
-
- final int passPrologLen = prologLen;
-
- Runnable edit = new Runnable() {
- public void run() {
- try {
-
- doc.remove(0, passPrologLen + 1); // +1 it removes exclusive
- doc.insertString(0, " \n", null); // NOI18N
-
- } catch (BadLocationException e) {
- if (System.getProperty("netbeans.debug.exceptions") != null) // NOI18N
- e.printStackTrace();
- }
- }
- };
-
- NbDocument.runAtomic(doc, edit);
-
- super.saveDocument();
- //moved from Env.save()
-// DataObject.setModified() already called as part of super.saveDocument(). The save action is now asynchronous
-// in the IDE and super.saveDocument() checks for possible extra document modifications performed during save
-// and sets the DO.modified flag accordingly.
-// getDataObject().setModified (false);
- }
- catch (javax.swing.text.BadLocationException e){
- Logger.getLogger("global").log(Level.INFO, null, e);
- }
- }
- }
-
- private boolean isSupportedEncoding(String encoding){
- boolean supported;
- try{
- supported = java.nio.charset.Charset.isSupported(encoding);
- }
- catch (java.nio.charset.IllegalCharsetNameException e){
- supported = false;
- }
-
- return supported;
- }
-
- /** Restart the timer which starts the parser after the specified delay.
- * @param onlyIfRunning Restarts the timer only if it is already running
- */
- public void restartTimer() {
- if (parsingDocumentTask==null || parsingDocumentTask.isFinished() ||
- parsingDocumentTask.cancel()) {
- dataObject.setDocumentDirty(true);
- Runnable r = new Runnable() {
- public void run() {
- dataObject.parsingDocument();
- }
- };
- if (parsingDocumentTask != null)
- parsingDocumentTask = RequestProcessor.getDefault().post(r, AUTO_PARSING_DELAY);
- else
- parsingDocumentTask = RequestProcessor.getDefault().post(r, 100);
- }
- }
-
- /**
- * Overrides superclass method. Adds adding of save cookie if the document has been marked modified.
- * @return true if the environment accepted being marked as modified
- * or false if it has refused and the document should remain unmodified
- */
- protected boolean notifyModified () {
- if (!super.notifyModified())
- return false;
-
- addSaveCookie();
-
- return true;
- }
-
- /** Overrides superclass method. Adds removing of save cookie. */
- protected void notifyUnmodified () {
- super.notifyUnmodified();
-
- removeSaveCookie();
- }
-
- /** Helper method. Adds save cookie to the data object. */
- private void addSaveCookie() {
- StrutsConfigDataObject obj = (StrutsConfigDataObject)getDataObject();
-
- // Adds save cookie to the data object.
- if(obj.getCookie(SaveCookie.class) == null) {
- obj.getCookieSet0().add(saveCookie);
- obj.setModified(true);
- }
- }
-
- /** Helper method. Removes save cookie from the data object. */
- private void removeSaveCookie() {
- StrutsConfigDataObject obj = (StrutsConfigDataObject)getDataObject();
-
- // Remove save cookie from the data object.
- Cookie cookie = obj.getCookie(SaveCookie.class);
-
- if(cookie != null && cookie.equals(saveCookie)) {
- obj.getCookieSet0().remove(saveCookie);
- obj.setModified(false);
- }
- }
-
- /** A description of the binding between the editor support and the object.
- * Note this may be serialized as part of the window system and so
- * should be static, and use the transient modifier where needed.
- */
- private static class XmlEnv extends DataEditorSupport.Env {
-
- private static final long serialVersionUID = -800036748848958489L;
-
- //private static final long serialVersionUID = ...L;
-
- /** Create a new environment based on the data object.
- * @param obj the data object to edit
- */
- public XmlEnv (StrutsConfigDataObject obj) {
- super (obj);
- }
-
- /** Get the file to edit.
- * @return the primary file normally
- */
- protected FileObject getFile () {
- return getDataObject ().getPrimaryFile ();
- }
-
- /** Lock the file to edit.
- * Should be taken from the file entry if possible, helpful during
- * e.g. deletion of the file.
- * @return a lock on the primary file normally
- * @throws IOException if the lock could not be taken
- */
- protected FileLock takeLock () throws java.io.IOException {
- return ((StrutsConfigDataObject) getDataObject ()).getPrimaryEntry ().takeLock ();
- }
-
- /** Find the editor support this environment represents.
- * Note that we have to look it up, as keeping a direct
- * reference would not permit this environment to be serialized.
- * @return the editor support
- */
- public org.openide.windows.CloneableOpenSupport findCloneableOpenSupport () {
- return (StrutsConfigEditorSupport) getDataObject ().getCookie (StrutsConfigEditorSupport.class);
- }
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoader.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoader.java
deleted file mode 100644
index 82029abc1ce2..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoader.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.io.IOException;
-
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author Petr Pisl
- */
-public class StrutsConfigLoader extends UniFileLoader {
-
- public static final String MIME_TYPE = "text/x-struts+xml"; // NOI18N
-
- public StrutsConfigLoader() {
- this("org.netbeans.modules.web.struts.StrutsConfigDataObject");
- }
-
- // Can be useful for subclasses:
- protected StrutsConfigLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return NbBundle.getMessage(StrutsConfigLoader.class, "LBL_loaderName");
- }
-
- protected void initialize() {
- super.initialize();
- getExtensions().addMimeType(MIME_TYPE);
- }
-
- protected String actionsContext() {
- return "Loaders/text/x-struts+xml/Actions/"; // NOI18N
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile)
- throws DataObjectExistsException, IOException {
- return new StrutsConfigDataObject(primaryFile, this);
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoaderBeanInfo.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoaderBeanInfo.java
deleted file mode 100644
index 22a3764601ac..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigLoaderBeanInfo.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.beans.*;
-import java.awt.Image;
-
-import org.openide.loaders.UniFileLoader;
-import org.openide.util.Exceptions;
-import org.openide.util.ImageUtilities;
-
-/** StrutsConfig loader bean info.
- *
- * @author Petr Pisl
- */
-public class StrutsConfigLoaderBeanInfo extends SimpleBeanInfo {
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- return new BeanInfo[] { Introspector.getBeanInfo(UniFileLoader.class) };
- } catch (IntrospectionException ie) {
- Exceptions.printStackTrace(ie);
- return null;
- }
- }
-
- /** @param type Desired type of the icon
- * @return returns the Image loader's icon
- */
- public Image getIcon(final int type) {
- return ImageUtilities.loadImage("org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png"); // NOI18N
- }
-
-}
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigNode.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigNode.java
deleted file mode 100644
index 338959d1f891..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigNode.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import org.openide.loaders.DataNode;
-import org.openide.nodes.Children;
-
-/**
- *
- * @author Petr Pisl
- */
-
-public class StrutsConfigNode extends DataNode {
-
- public static final String ICON_BASE = "org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png";
-
- /** Creates a new instance of StrutsConfigNode */
- public StrutsConfigNode (final StrutsConfigDataObject dataObject) {
- super(dataObject,Children.LEAF);
- setIconBaseWithExtension(ICON_BASE);
- }
-
- // test to see if we can use DeleteAction
- public boolean canDestroy() {
- return true;
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigUtilities.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigUtilities.java
deleted file mode 100644
index a92fca5665ad..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsConfigUtilities.java
+++ /dev/null
@@ -1,474 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.StringTokenizer;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.lang.model.element.TypeElement;
-import javax.lang.model.util.Elements;
-import org.netbeans.api.java.source.ClasspathInfo;
-import org.netbeans.api.java.source.CompilationController;
-import org.netbeans.api.java.source.JavaSource;
-import org.netbeans.api.java.source.Task;
-import org.netbeans.api.project.FileOwnerQuery;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.project.ProjectUtils;
-import org.netbeans.api.project.SourceGroup;
-import org.netbeans.api.project.Sources;
-import org.netbeans.modules.j2ee.dd.api.common.InitParam;
-import org.netbeans.modules.j2ee.dd.api.web.DDProvider;
-import org.netbeans.modules.j2ee.dd.api.web.ServletMapping;
-import org.netbeans.modules.j2ee.dd.api.web.WebApp;
-import org.netbeans.modules.j2ee.dd.api.web.Servlet;
-import org.netbeans.modules.j2ee.dd.api.web.ServletMapping25;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.api.webmodule.WebProjectConstants;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.netbeans.modules.web.struts.config.model.ActionMappings;
-import org.netbeans.modules.web.struts.config.model.MessageResources;
-import org.netbeans.modules.web.struts.config.model.StrutsConfig;
-import org.netbeans.modules.web.struts.config.model.FormBeans;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-
-/**
- *
- * @author petr
- * @author Po-Ting Wu
- */
-public class StrutsConfigUtilities {
-
- public static String DEFAULT_MODULE_NAME = "config"; //NOI18N
- private static final int TYPE_ACTION=0;
- private static final int TYPE_FORM_BEAN=1;
- private static final int TYPE_MESSAGE_RESOURCES=2;
-
- public static List getAllActionsInModule(StrutsConfigDataObject data){
- return createConfigElements(TYPE_ACTION,data);
- }
-
- public static List getAllFormBeansInModule(StrutsConfigDataObject data){
- return createConfigElements(TYPE_FORM_BEAN,data);
- }
-
- public static List getAllMessageResourcesInModule(StrutsConfigDataObject data){
- return createConfigElements(TYPE_MESSAGE_RESOURCES,data);
- }
-
- private static List createConfigElements(int elementType, StrutsConfigDataObject data) {
- FileObject config = data.getPrimaryFile();
- ArrayList list = new ArrayList();
- WebModule wm = WebModule.getWebModule(config);
- if (wm != null){
- FileObject ddFo = wm.getDeploymentDescriptor();
- if (ddFo != null){
- String moduleName = getModuleName(config, ddFo);
- if (moduleName == null){
- // the conf file is not in any module (is not declared in the web.xml)
- try{
- StrutsConfig sConfig = data.getStrutsConfig(true);
- switch (elementType) {
- case TYPE_ACTION : addActions(list, sConfig);break;
- case TYPE_FORM_BEAN : addFormBeans(list, sConfig);break;
- case TYPE_MESSAGE_RESOURCES : addMessageResource(list, sConfig);break;
- }
- } catch (java.io.IOException e){
- // Do nothing
- }
- } else {
- // the config file is in a Struts module, returns all actions from the
- // conf files in the module
- FileObject[] configs = getConfigFiles(moduleName, ddFo);
- DataObject dOb;
- for (int i = 0; i < configs.length; i++){
- try{
- dOb = DataObject.find(configs[i]);
- } catch (DataObjectNotFoundException e){
- dOb = null;
- }
- if (dOb instanceof StrutsConfigDataObject){
- StrutsConfigDataObject con = (StrutsConfigDataObject)dOb;
- // the conf file is not in any module (is not declared in the web.xml)
- try{
- StrutsConfig sConfig = con.getStrutsConfig(true);
- switch (elementType) {
- case TYPE_ACTION : addActions(list, sConfig);break;
- case TYPE_FORM_BEAN : addFormBeans(list, sConfig);break;
- case TYPE_MESSAGE_RESOURCES : addMessageResource(list, sConfig);break;
- }
- } catch (java.io.IOException e){
- // Do nothing
- }
- }
- }
- }
- }
- }
- return list;
- }
-
- private static void addActions(List list, StrutsConfig sConfig) {
- ActionMappings mappings = null;
- if (sConfig != null) {
- mappings = sConfig.getActionMappings();
- }
- if (mappings==null) return;
- Action[] actions = mappings.getAction();
- for (int j = 0; j < actions.length; j++)
- list.add(actions[j]);
- }
-
- private static void addFormBeans(List list, StrutsConfig sConfig) {
- FormBeans formBeans = sConfig.getFormBeans();
- if (formBeans==null) return;
- FormBean [] beans = formBeans.getFormBean();
- for (int j = 0; j < beans.length; j++)
- list.add(beans[j]);
- }
-
- private static void addMessageResource(List list, StrutsConfig sConfig) {
- MessageResources[] rosources = sConfig.getMessageResources();
- for (int j = 0; j < rosources.length; j++)
- list.add(rosources[j]);
- }
-
-
- /** Returns all configuration files for the module
- **/
- public static FileObject[] getConfigFiles(String module, FileObject dd){
- WebModule wm = WebModule.getWebModule(dd);
- if (wm == null)
- return null;
- FileObject docBase = wm.getDocumentBase();
- if (docBase == null)
- return null;
- Servlet servlet = getActionServlet(dd);
- InitParam param = null;
- if (module.equals(DEFAULT_MODULE_NAME))
- param = (InitParam)servlet.findBeanByName("InitParam", "ParamName", DEFAULT_MODULE_NAME);
- else
- param = (InitParam)servlet.findBeanByName("InitParam", "ParamName", DEFAULT_MODULE_NAME+"/"+module);
- FileObject[] configs = null;
- if (param != null){
- StringTokenizer st = new StringTokenizer(param.getParamValue(), ",");
- configs = new FileObject[st.countTokens()];
- int index = 0;
- while (st.hasMoreTokens()){
- String name = st.nextToken().trim();
- configs[index] = docBase.getFileObject(name);
- index++;
- }
- }
- return configs;
- }
-
-
-
- /** Returns name of Struts module, which contains the configuration file.
- */
- public static String getModuleName(FileObject config, FileObject dd){
- String moduleName = null;
- if (dd != null) {
- Servlet servlet = getActionServlet(dd);
- if (servlet != null){
- InitParam [] param = servlet.getInitParam();
- StringTokenizer st = null;
- int index = 0;
-
- while (moduleName == null && index < param.length){
- if(param[index].getParamName().trim().startsWith(DEFAULT_MODULE_NAME)){
- String[] files = param[index].getParamValue().split(","); //NOI18N
- for (int i = 0; i < files.length; i++){
- String file = files[i];
- if (config.getPath().endsWith(file)){
- if (!param[index].getParamName().trim().equals(DEFAULT_MODULE_NAME)){
- moduleName = param[index].getParamName().trim()
- .substring(DEFAULT_MODULE_NAME.length()+1);
- } else{
- moduleName = DEFAULT_MODULE_NAME;
- }
- break;
- }
- }
-
- }
- index++;
- }
- }
- }
- return moduleName;
- }
-
- public static Servlet getActionServlet(FileObject dd) {
- if (dd == null) {
- return null;
- }
-
- try {
- WebApp webApp = DDProvider.getDefault().getDDRoot(dd);
- Servlet servlet = (Servlet) webApp.findBeanByName("Servlet", "ServletClass", "org.apache.struts.action.ActionServlet"); //NOI18N;
- if (servlet != null) {
- return servlet;
- }
-
- // check whether a servler class doesn't extend org.apache.struts.action.ActionServlet
- final Servlet[] servlets = webApp.getServlet();
- if (servlets.length == 0) {
- return null;
- }
-
- ClasspathInfo cpi = ClasspathInfo.create(dd);
- JavaSource js = JavaSource.create(cpi, Collections.emptyList());
- final int[] index = new int[]{-1};
- js.runUserActionTask( new Task (){
- public void run(CompilationController cc) throws Exception {
- Elements elements = cc.getElements();
- TypeElement strutsServletElement = elements.getTypeElement("org.apache.struts.action.ActionServlet"); //NOI18N
- TypeElement servletElement;
- if (strutsServletElement != null){
- for (int i = 0; i < servlets.length; i++) {
- String servletClass = servlets[i].getServletClass();
- if (servletClass == null) {
- continue;
- }
-
- servletElement = elements.getTypeElement(servletClass);
- if (servletElement != null
- && cc.getTypes().isSubtype(servletElement.asType(),strutsServletElement.asType())){
- index[0] = i;
- break;
- }
- }
- }
- }
-
- },false);
-
- if (index[0] > -1 )
- servlet = servlets[index[0]];
- return servlet;
- } catch (java.io.IOException e) {
- Logger.getLogger("global").log(Level.INFO, null, e);
- return null;
- }
- }
-
- /** Returns the mapping for the Struts Action Servlet.
- */
- public static String getActionServletMapping(FileObject dd){
- Servlet servlet = getActionServlet(dd);
- if (servlet != null){
- try{
- WebApp webApp = DDProvider.getDefault().getDDRoot(dd);
- ServletMapping[] mappings = webApp.getServletMapping();
- for (int i = 0; i < mappings.length; i++){
- if (mappings[i].getServletName().equals(servlet.getServletName()))
- return ((ServletMapping25)mappings[i]).getUrlPatterns()[0];
- }
- } catch (java.io.IOException e) {
- Logger.getLogger("global").log(Level.INFO, null, e);
- }
- }
- return null;
- }
-
- /** Returns relative path for all struts configuration files in the web module
- */
- public static String[] getConfigFiles(FileObject dd){
- if (dd != null){
- Servlet servlet = getActionServlet(dd);
- if (servlet!=null) {
- InitParam[] params = servlet.getInitParam();
- List list = new ArrayList<>();
- for (int i=0;i list = new ArrayList<>();
- FileObject file;
- for (int i=0;i0) relativePath = relativePath.substring(0,index);
- }
- return relativePath;
- } else {
- return "";
- }
- }
- }
- return "";
- }
-
- /**
- * Get the welcome file based on the URL Pattern and the Page Name.
- * @param URLPattern the URL Pattern
- * @param pageName the Page Name
- * @return If successful, returns the welcome file, "do/" + pageName if unsuccessful.
- */
- public static String getWelcomeFile(String URLPattern, String pageName) {
- int indWild = URLPattern.indexOf("*"); // NOI18N
- if (indWild >= 0) {
- String pPrefix = URLPattern.substring(0, indWild);
- String pSuffix = URLPattern.substring(indWild + 1);
-
- if (pPrefix.length() > 0) {
- while (pPrefix.startsWith("/")) { // NOI18N
- pPrefix = pPrefix.substring(1);
- }
- }
-
- return pPrefix + pageName + pSuffix;
- }
-
- return "do/" + pageName;
- }
-
- public static String getActionAsResource (WebModule wm, String action){
- String resource = "";
- String mapping = StrutsConfigUtilities.getActionServletMapping(wm.getDeploymentDescriptor());
- if (mapping != null && mapping.length()>0){
- if (mapping.startsWith("*."))
- resource = action + mapping.substring(1);
- else
- if (mapping.endsWith("/*"))
- resource = mapping.substring(0,mapping.length()-2) + action;
- }
- return resource;
- }
-
- public static String getActionAsResource(String mapping, String action){
- String resource = "";
- if (mapping != null && mapping.length()>0){
- if (mapping.startsWith("*."))
- resource = action + mapping.substring(1);
- else
- if (mapping.endsWith("/*"))
- resource = mapping.substring(0,mapping.length()-2) + action;
- }
- return resource;
- }
-
- public static MessageResources getDefatulMessageResource(FileObject dd){
- FileObject [] files = getConfigFilesFO(dd);
- if (files == null) {
- return null;
- }
-
- MessageResources resource = null;
- int index = 0;
- DataObject configDO;
- try {
- while (resource == null && index < files.length){
- configDO = DataObject.find(files[index]);
- if (configDO instanceof StrutsConfigDataObject){
- StrutsConfig strutsConfig = ((StrutsConfigDataObject)configDO).getStrutsConfig();
- // we need to chech, whether the config is parseable
- if (strutsConfig != null){
- MessageResources[] resources = strutsConfig.getMessageResources();
- for (int i = 0; i < resources.length; i++){
- if (resources[i].getAttributeValue("key") == null) { //NOI18N
- resource = resources[i];
- break;
- }
- }
- }
- }
- index++;
- }
- } catch (DataObjectNotFoundException ex) {
- Logger.getLogger("global").log(Level.WARNING, null, ex);
- } catch (IOException ex) {
- Logger.getLogger("global").log(Level.WARNING, null, ex);
- }
- return resource;
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsFrameworkProvider.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsFrameworkProvider.java
deleted file mode 100644
index e4182a8fbe0e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsFrameworkProvider.java
+++ /dev/null
@@ -1,435 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts;
-
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
-import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.SwingUtilities;
-import org.netbeans.api.java.project.JavaProjectConstants;
-import org.netbeans.api.project.ProjectUtils;
-import org.netbeans.api.project.SourceGroup;
-import org.netbeans.modules.j2ee.dd.api.common.CreateCapability;
-import org.netbeans.modules.j2ee.dd.api.common.InitParam;
-import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
-import org.netbeans.modules.j2ee.dd.api.web.DDProvider;
-import org.netbeans.modules.j2ee.dd.api.web.JspConfig;
-import org.netbeans.modules.j2ee.dd.api.web.Servlet;
-import org.netbeans.modules.j2ee.dd.api.web.Taglib;
-import org.netbeans.modules.j2ee.dd.api.web.WebApp;
-import org.netbeans.modules.web.api.webmodule.ExtenderController;
-import org.netbeans.modules.web.spi.webmodule.WebModuleExtender;
-import org.netbeans.modules.web.struts.config.model.MessageResources;
-
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.FileLock;
-
-import org.netbeans.api.project.FileOwnerQuery;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.queries.FileEncodingQuery;
-import org.netbeans.modules.j2ee.common.dd.DDHelper;
-import org.netbeans.modules.j2ee.dd.api.web.ServletMapping25;
-import org.netbeans.modules.j2ee.dd.api.web.WelcomeFileList;
-
-import org.netbeans.modules.web.spi.webmodule.WebFrameworkProvider;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-
-import org.netbeans.modules.web.struts.ui.StrutsConfigurationPanel;
-
-import org.openide.DialogDescriptor;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-
-
-/**
- *
- * @author petr
- */
-public class StrutsFrameworkProvider extends WebFrameworkProvider {
-
-
- private static String RESOURCE_FOLDER = "org/netbeans/modules/web/struts/resources/"; //NOI18N
-
- private StrutsConfigurationPanel panel;
- private static String defaultAppResource ="com.myapp.struts.ApplicationResource"; //NOI18N
-
- public StrutsFrameworkProvider(){
- super (
- NbBundle.getMessage(StrutsFrameworkProvider.class, "Sruts_Name"), //NOI18N
- NbBundle.getMessage(StrutsFrameworkProvider.class, "Sruts_Description")); //NOI18N
- }
-
- // not named extend() so as to avoid implementing WebFrameworkProvider.extend()
- // better to move this to JSFConfigurationPanel
- public Set extendImpl(WebModule wm) {
- return StrutsUtilities.enableStruts(wm, panel);
- }
-
- private static String readResource(InputStream is, String encoding) throws IOException {
- // read the config from resource first
- StringBuffer sb = new StringBuffer();
- String lineSep = System.getProperty("line.separator");//NOI18N
- BufferedReader br = new BufferedReader(new InputStreamReader(is, encoding));
- String line = br.readLine();
- while (line != null) {
- sb.append(line);
- sb.append(lineSep);
- line = br.readLine();
- }
- br.close();
- return sb.toString();
- }
-
- public File[] getConfigurationFiles(org.netbeans.modules.web.api.webmodule.WebModule wm) {
- FileObject webinf = wm.getWebInf();
- List files = new ArrayList<>();
- // The JavaEE 5 introduce web modules without deployment descriptor.
- // In such wm can not be struts used.
- FileObject dd = wm.getDeploymentDescriptor();
- if (dd != null){
- FileObject[] configs = StrutsConfigUtilities.getConfigFilesFO(dd);
- if (configs != null) {
- for (int i = 0; i < configs.length; i ++){
- files.add(FileUtil.toFile(configs[i]));
- }
- }
- FileObject fo = webinf.getFileObject("tiles-defs.xml"); //NOI18N
- if (fo != null) files.add(FileUtil.toFile(fo));
- fo = webinf.getFileObject("validation.xml"); //NOI18N
- if (fo != null) files.add(FileUtil.toFile(fo));
- fo = webinf.getFileObject("validator-rules.xml"); //NOI18N
- if (fo != null) files.add(FileUtil.toFile(fo));
- }
-
- File [] rFiles = new File [files.size()];
- files.toArray(rFiles);
- return rFiles;
- }
-
- public boolean isInWebModule(org.netbeans.modules.web.api.webmodule.WebModule wm) {
- return StrutsUtilities.isInWebModule(wm);
- }
-
- public WebModuleExtender createWebModuleExtender(WebModule wm, ExtenderController controller) {
- boolean defaultValue = (wm == null || !isInWebModule(wm));
- panel = new StrutsConfigurationPanel(this, controller, !defaultValue);
- if (defaultValue){
- // get configuration panel with default value
- panel.setAppResource(defaultAppResource);
- }
- else {
- // get configuration panel with values from the wm
- Servlet servlet = StrutsConfigUtilities.getActionServlet(wm.getDeploymentDescriptor());
- panel.setServletName(servlet.getServletName());
- panel.setURLPattern(StrutsConfigUtilities.getActionServletMapping(wm.getDeploymentDescriptor()));
- MessageResources resource = StrutsConfigUtilities.getDefatulMessageResource(wm.getDeploymentDescriptor());
- if (resource != null){
- String name = resource.getAttributeValue("parameter");
- if (name != null) {
- name = name.replace("/", ".");
- panel.setAppResource(name);
- }
- }
- }
-
- return panel;
- }
-
- protected static class CreateStrutsConfig implements FileSystem.AtomicAction{
-
- private final WebModule wm;
- private final StrutsConfigurationPanel panel;
-
- public CreateStrutsConfig (WebModule wm, StrutsConfigurationPanel panel) {
- this.wm = wm;
- this.panel = panel;
- }
-
- private void createFile(FileObject target, String content, String encoding) throws IOException{
- FileLock lock = target.lock();
- try {
- BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(target.getOutputStream(lock), encoding));
- bw.write(content);
- bw.close();
-
- }
- finally {
- lock.releaseLock();
- }
- }
-
- public void run() throws IOException {
- FileObject target;
- String content;
- // copy struts-config.xml
- if (canCreateNewFile(wm.getWebInf(), "struts-config.xml")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-config.xml"), "UTF-8"); //NOI18N
- content = content.replaceFirst("____ACTION_MAPPING___", //NOI18N
- StrutsConfigUtilities.getActionAsResource(panel.getURLPattern(), "/Welcome"));
- content = content.replaceFirst("_____MESSAGE_RESOURCE____", //NOI18N
- panel.getAppResource().replace('.', '/'));
- target = FileUtil.createData(wm.getWebInf(), "struts-config.xml");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy tiles-defs.xml
- if (canCreateNewFile(wm.getWebInf(), "tiles-defs.xml")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "tiles-defs.xml"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "tiles-defs.xml");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy validation.xml
- if (canCreateNewFile(wm.getWebInf(), "validation.xml")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "validation.xml"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "validation.xml");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy validator-rules.xml
- if (canCreateNewFile(wm.getWebInf(), "validator-rules.xml")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "validator-rules.xml"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "validator-rules.xml");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
-
- //MessageResource.properties
- Project project = FileOwnerQuery.getOwner(wm.getDocumentBase());
- String sresource = panel.getAppResource();
- if (sresource != null && sresource.trim().length()>0) {
- int index = sresource.lastIndexOf('.');
- String path = "";
- String name = sresource;
- if (index > -1){
- path = sresource.substring(0, sresource.lastIndexOf(".")); //NOI18N
- name = sresource.substring(sresource.lastIndexOf(".")+1); //NOI18N
- }
- name = name + ".properties"; //NOI18N
- SourceGroup[] resourceGroups = ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_RESOURCES);
- if (resourceGroups.length == 0) {
- resourceGroups = ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
- }
- FileObject targetFolder = resourceGroups[0].getRootFolder();
- String folders[] = path.split("\\.");
- for (int i = 0; i < folders.length; i++){
- if (targetFolder.getFileObject(folders[i])== null)
- targetFolder = targetFolder.createFolder(folders[i]);
- else
- targetFolder = targetFolder.getFileObject(folders[i]);
- }
- if (canCreateNewFile(targetFolder, name)) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "MessageResources.properties"), "UTF-8"); //NOI18N
- target = FileUtil.createData(targetFolder, name);//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- }
-
- if (panel.addTLDs()){
- //copy struts-bean.tld
- if (canCreateNewFile(wm.getWebInf(), "struts-bean.tld")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-bean.tld"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "struts-bean.tld");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy struts-html.tld
- if (canCreateNewFile(wm.getWebInf(), "struts-html.tld")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-html.tld"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "struts-html.tld");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy struts-logic.tld
- if (canCreateNewFile(wm.getWebInf(), "struts-logic.tld")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-logic.tld"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "struts-logic.tld");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy struts-nested.tld
- if (canCreateNewFile(wm.getWebInf(), "struts-nested.tld")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-nested.tld"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "struts-nested.tld");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- //copy struts-tiles.tld
- if (canCreateNewFile(wm.getWebInf(), "struts-tiles.tld")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "struts-tiles.tld"), "UTF-8"); //NOI18N
- target = FileUtil.createData(wm.getWebInf(), "struts-tiles.tld");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- }
-
- // Enter servlet into the deployment descriptor
- FileObject dd = wm.getDeploymentDescriptor();
- if(dd == null) {
- dd = DDHelper.createWebXml(wm.getJ2eeProfile(), wm.getWebInf());
- }
- WebApp ddRoot = DDProvider.getDefault().getDDRoot(dd);
- if (ddRoot != null && ddRoot.getStatus() == WebApp.STATE_VALID) {
- try{
- Servlet servlet = (Servlet)ddRoot.createBean("Servlet"); //NOI18N
- servlet.setServletName("action"); //NOI18N
- servlet.setServletClass("org.apache.struts.action.ActionServlet"); //NOI18N
-
- ddRoot.addServlet(servlet);
-
- InitParam param = (InitParam)servlet.createBean("InitParam"); //NOI18N
- param.setParamName("config");//NOI18N
- param.setParamValue("/WEB-INF/struts-config.xml");//NOI18N
- servlet.addInitParam(param);
- param = (InitParam)servlet.createBean("InitParam"); //NOI18N
- param.setParamName("debug");//NOI18N
- param.setParamValue("2");//NOI18N
- servlet.addInitParam(param);
- param = (InitParam)servlet.createBean("InitParam"); //NOI18N
- param.setParamName("detail");//NOI18N
- param.setParamValue("2");//NOI18N
- servlet.addInitParam(param);
- servlet.setLoadOnStartup(new BigInteger("2"));//NOI18N
-
- ServletMapping25 mapping = (ServletMapping25)ddRoot.createBean("ServletMapping"); //NOI18N
- mapping.setServletName(panel.getServletName());//NOI18N
- mapping.addUrlPattern(panel.getURLPattern());//NOI18N
-
- ddRoot.addServletMapping(mapping);
-
- if (panel.addTLDs()){
- try{
- JspConfig jspConfig = ddRoot.getSingleJspConfig();
- if (jspConfig==null){
- jspConfig = (JspConfig)ddRoot.createBean("JspConfig");
- ddRoot.setJspConfig(jspConfig);
- }
- jspConfig.addTaglib(createTaglib(jspConfig, "/WEB-INF/struts-bean.tld", "/WEB-INF/struts-bean.tld")); //NOI18N
- jspConfig.addTaglib(createTaglib(jspConfig, "/WEB-INF/struts-html.tld", "/WEB-INF/struts-html.tld")); //NOI18N
- jspConfig.addTaglib(createTaglib(jspConfig, "/WEB-INF/struts-logic.tld", "/WEB-INF/struts-logic.tld")); //NOI18N
- jspConfig.addTaglib(createTaglib(jspConfig, "/WEB-INF/struts-nested.tld", "/WEB-INF/struts-nested.tld")); //NOI18N
- jspConfig.addTaglib(createTaglib(jspConfig, "/WEB-INF/struts-tiles.tld", "/WEB-INF/struts-tiles.tld")); //NOI18N
- }
- catch (VersionNotSupportedException e){
- Logger.getLogger("global").log(Level.WARNING, null, e);
- }
- }
- WelcomeFileList welcomeFiles = ddRoot.getSingleWelcomeFileList();
- if (welcomeFiles == null) {
- welcomeFiles = (WelcomeFileList) ddRoot.createBean("WelcomeFileList");
- ddRoot.setWelcomeFileList(welcomeFiles);
- }
- if (welcomeFiles.sizeWelcomeFile() == 0) {
- welcomeFiles.addWelcomeFile("index.jsp"); //NOI18N
- }
- ddRoot.write(dd);
- }
- catch (ClassNotFoundException cnfe){
- Exceptions.printStackTrace(cnfe);
- }
- } else {
- SwingUtilities.invokeLater(new Runnable() {
-
- @Override
- public void run() {
- NotifyDescriptor warningDialog = new NotifyDescriptor.Message(
- NbBundle.getMessage(StrutsFrameworkProvider.class, "WARN_UnknownDeploymentDescriptorText"), //NOI18N
- NotifyDescriptor.WARNING_MESSAGE);
- DialogDisplayer.getDefault().notify(warningDialog);
- }
- });
-
- }
-
- //copy Welcome.jsp
- if (canCreateNewFile(wm.getDocumentBase(), "welcomeStruts.jsp")) { //NOI18N
- content = readResource (this.getClass().getClassLoader().getResourceAsStream(RESOURCE_FOLDER + "welcome.jsp"), "UTF-8"); //NOI18N
- content = content.replace("__ENCODING__", FileEncodingQuery.getDefaultEncoding().name());
- target = FileUtil.createData(wm.getDocumentBase(), "welcomeStruts.jsp");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- File indexJsp = new File(FileUtil.toFile(wm.getDocumentBase()), "index.jsp"); //NOI18N
- if (indexJsp.exists()) {
- // changing index.jsp
- FileObject documentBase = wm.getDocumentBase();
- FileObject indexjsp = documentBase.getFileObject("index.jsp"); //NOI18N
- if (indexjsp != null){
- changeIndexJSP(indexjsp);
- }
- } else {
- //create welcome file with forward
- content = "<%@page contentType=\"text/html\"%>\n" + "<%@page pageEncoding=\"" + FileEncodingQuery.getDefaultEncoding().name() + "\"%>\n\n" + //NOI18N
- ""; //NOI18N
- target = FileUtil.createData(wm.getDocumentBase(), "index.jsp");//NOI18N
- createFile(target, content, "UTF-8"); //NOI18N
- }
- }
- }
-
- private boolean canCreateNewFile(FileObject parent, String name){
- File fileToBe = new File(FileUtil.toFile(parent), name);
- boolean create = true;
- if (fileToBe.exists()){
- DialogDescriptor dialog = new DialogDescriptor(
- NbBundle.getMessage(StrutsFrameworkProvider.class, "MSG_OverwriteFile", fileToBe.getAbsolutePath()),
- NbBundle.getMessage(StrutsFrameworkProvider.class, "TTL_OverwriteFile"),
- true, DialogDescriptor.YES_NO_OPTION, DialogDescriptor.NO_OPTION, null);
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- create = (dialog.getValue() == org.openide.DialogDescriptor.NO_OPTION);
- }
- return create;
- }
-
- private Taglib createTaglib(CreateCapability createObject, String location, String uri) throws ClassNotFoundException {
- Taglib taglib = (Taglib)createObject.createBean("Taglib"); //NOI18N
- taglib.setTaglibLocation(location);
- taglib.setTaglibUri(uri);
- return taglib;
- }
-
- /** Changes the index.jsp file. Only when there is JSP Page
string.
- */
- private void changeIndexJSP(FileObject indexjsp) throws IOException {
- String content = readResource(indexjsp.getInputStream(), "UTF-8"); //NOI18N
- // what find
- String find = "JSP Page
"; // NOI18N
- String endLine = System.getProperty("line.separator"); //NOI18N
- if ( content.indexOf(find) > 0){
- StringBuffer replace = new StringBuffer();
- replace.append(find);
- replace.append(endLine);
- replace.append("
"); //NOI18N
- replace.append(endLine);
- replace.append(" "); //NOI18N
- replace.append(NbBundle.getMessage(StrutsFrameworkProvider.class,"LBL_STRUTS_WELCOME_PAGE"));
- replace.append(""); //NOI18N
- content = content.replaceFirst(find, replace.toString());
- createFile(indexjsp, content, "UTF-8"); //NOI18N
- }
- }
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsUtilities.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsUtilities.java
deleted file mode 100644
index 17defcc1a770..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/StrutsUtilities.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.modules.web.struts;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.api.java.classpath.ClassPath;
-import org.netbeans.api.java.project.JavaProjectConstants;
-import org.netbeans.api.java.project.classpath.ProjectClassPathModifier;
-import org.netbeans.api.project.FileOwnerQuery;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.project.ProjectUtils;
-import org.netbeans.api.project.SourceGroup;
-import org.netbeans.api.project.libraries.Library;
-import org.netbeans.api.project.libraries.LibraryManager;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.ui.StrutsConfigurationPanel;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.Exceptions;
-
-/**
- * Struts utilities methods.
- *
- * @author Martin Fousek
- */
-public final class StrutsUtilities {
-
- private StrutsUtilities() {
- }
-
- /**
- * Enables Struts support in the given web project. If the enabling was done outside standard Add framework wizard,
- * default initial values are used.
- *
- * @param webModule webModule to extend
- * @param panel configuration panel, can be {@code null} - in that case are default values used
- * @return set of newly created files
- */
- public static Set enableStruts(WebModule webModule, StrutsConfigurationPanel panel) {
- if (panel == null) {
- panel = new StrutsConfigurationPanel(null, null, true);
- }
-
- FileObject fo = webModule.getDocumentBase();
- Project project = FileOwnerQuery.getOwner(fo);
- Set result = new HashSet();
-
- Library lib = LibraryManager.getDefault().getLibrary("struts"); //NOI18N
- if (lib != null) {
- SourceGroup[] sgs = ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
- if (sgs.length > 0) {
- try {
- ProjectClassPathModifier.addLibraries(new Library[] {lib}, sgs[0].getRootFolder(), ClassPath.COMPILE);
- } catch (IOException ioe) {
- Exceptions.printStackTrace(ioe);
- }
- }
-
- try {
- FileObject webInf = webModule.getWebInf();
- if (webInf == null) {
- webInf = FileUtil.createFolder(webModule.getDocumentBase(), "WEB-INF"); //NOI18N
- }
- assert webInf != null;
- FileSystem fs = webInf.getFileSystem();
- fs.runAtomicAction(new StrutsFrameworkProvider.CreateStrutsConfig(webModule, panel));
- result.add(webModule.getDocumentBase().getFileObject("welcomeStruts", "jsp"));
- } catch (FileNotFoundException exc) {
- Exceptions.printStackTrace(exc);
- } catch (IOException exc) {
- Logger.getLogger("global").log(Level.INFO, null, exc);
- }
- }
- return result;
- }
-
- /**
- * Says whether the Struts support is available in given web module.
- * @param wm webmodule to be examined
- * @return {@code true} if the support is enabled, {@code false} otherwise
- */
- public static boolean isInWebModule(org.netbeans.modules.web.api.webmodule.WebModule wm) {
- // The JavaEE 5 introduce web modules without deployment descriptor.
- // In such wm can not be struts used.
- FileObject dd = wm.getDeploymentDescriptor();
- return (dd != null && StrutsConfigUtilities.getActionServlet(dd) != null);
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/config/model/package-info.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/config/model/package-info.java
deleted file mode 100644
index 27d291e03b10..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/config/model/package-info.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-@Schema2Beans(
- schema="../../resources/struts-config_1_3-custom.dtd",
- schemaType=SchemaType.DTD,
- mddFile="../../resources/struts-config_1_2.mdd",
- outputType=OutputType.TRADITIONAL_BASEBEAN,
- validate=false,
- removeUnreferencedNodes=true,
- java5=true
-)
-package org.netbeans.modules.web.struts.config.model;
-
-import org.netbeans.modules.schema2beans.Schema2Beans;
-import org.netbeans.modules.schema2beans.Schema2Beans.OutputType;
-import org.netbeans.modules.schema2beans.Schema2Beans.SchemaType;
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.form
deleted file mode 100644
index a02c37941a02..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.form
+++ /dev/null
@@ -1,475 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.java
deleted file mode 100644
index b3a8f4437146..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddActionPanel.java
+++ /dev/null
@@ -1,530 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import javax.lang.model.element.TypeElement;
-import javax.swing.DefaultComboBoxModel;
-import org.netbeans.api.java.source.ClassIndex.NameKind;
-import org.netbeans.api.java.source.ClassIndex.SearchScope;
-import org.netbeans.api.java.source.ClasspathInfo;
-import org.netbeans.api.java.source.ElementHandle;
-import org.netbeans.api.java.source.ui.TypeElementFinder;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author Milan Kuchtiak
- */
-public class AddActionPanel extends javax.swing.JPanel implements ValidatingPanel {
- /** Creates new form AddFIActionPanel */
- StrutsConfigDataObject config;
- public AddActionPanel(StrutsConfigDataObject dObject) {
- config=dObject;
- initComponents();
- List actions = StrutsConfigUtilities.getAllActionsInModule(dObject);
- DefaultComboBoxModel model = (DefaultComboBoxModel)CBInputAction.getModel();
- Iterator iter = actions.iterator();
- while (iter.hasNext())
- model.addElement(((Action)iter.next()).getAttributeValue("path")); //NOI18N
-
- List formBeans = StrutsConfigUtilities.getAllFormBeansInModule(dObject);
- model = (DefaultComboBoxModel)CBFormName.getModel();
- iter = formBeans.iterator();
- while (iter.hasNext())
- model.addElement(((FormBean)iter.next()).getAttributeValue("name")); //NOI18N
- }
-
- public String validatePanel() {
- if (TFActionClass.getText().trim().length()==0)
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyActionClass");
- String actionPath = TFActionPath.getText().trim();
- if (actionPath.length()==0 || actionPath.equals("/")) //NOI18N
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyActionPath");
- if (!actionPath.startsWith("/") ) //NOI18N
- return NbBundle.getMessage(AddActionPanel.class,"MSG_IncorrectActionPath", actionPath);
- if (containsActionPath(actionPath)) //NOI18N
- return NbBundle.getMessage(AddActionPanel.class,"MSG_DupliciteActionPath",actionPath);
- if (CHBUseFormBean.isSelected()) {
- if (CBFormName.getSelectedItem()==null)
- NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyFormName");
- if (RBInputResource.isSelected()) {
- String inputResource = TFInputResource.getText().trim();
- if (inputResource.length()==0 || inputResource.equals("/")) //NOI18N
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyInputResource");
- } else if (CBInputAction.getSelectedItem()==null) {
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyAction");
- }
- }
- return null;
- }
-
- public javax.swing.AbstractButton[] getStateChangeComponents() {
- return new javax.swing.AbstractButton[]{ CHBUseFormBean, RBInputResource, RBInputAction };
- }
-
- public javax.swing.text.JTextComponent[] getDocumentChangeComponents() {
- return new javax.swing.text.JTextComponent[]{TFActionClass, TFActionPath, TFInputResource};
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- buttonGroup2 = new javax.swing.ButtonGroup();
- jLabelFormName = new javax.swing.JLabel();
- CBFormName = new javax.swing.JComboBox();
- CBInputAction = new javax.swing.JComboBox();
- TFInputResource = new javax.swing.JTextField();
- CHBUseFormBean = new javax.swing.JCheckBox();
- jButtonBrowse = new javax.swing.JButton();
- jLabelScope = new javax.swing.JLabel();
- jLabelAttribute = new javax.swing.JLabel();
- TFAttribute = new javax.swing.JTextField();
- CHBValidate = new javax.swing.JCheckBox();
- jLabelParameter = new javax.swing.JLabel();
- TFParameter = new javax.swing.JTextField();
- RBInputResource = new javax.swing.JRadioButton();
- RBInputAction = new javax.swing.JRadioButton();
- jPanel1 = new javax.swing.JPanel();
- RBSession = new javax.swing.JRadioButton();
- RBRequest = new javax.swing.JRadioButton();
- jLabelActionClass = new javax.swing.JLabel();
- TFActionClass = new javax.swing.JTextField();
- jButtonBrowseClass = new javax.swing.JButton();
- jLabelActionPath = new javax.swing.JLabel();
- TFActionPath = new javax.swing.JTextField();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- jLabelFormName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_FormName_mnem").charAt(0));
- jLabelFormName.setLabelFor(CBFormName);
- jLabelFormName.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_FormName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelFormName, gridBagConstraints);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(CBFormName, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- CBFormName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_CBFormName")); // NOI18N
-
- CBInputAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(CBInputAction, gridBagConstraints);
- CBInputAction.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "ACSN_TFInputAction")); // NOI18N
- CBInputAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_CBInputAction")); // NOI18N
-
- TFInputResource.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFInputResource, gridBagConstraints);
- TFInputResource.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_TFInputResource")); // NOI18N
- TFInputResource.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFinputResource")); // NOI18N
-
- CHBUseFormBean.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_UseFormBean_mnem").charAt(0));
- CHBUseFormBean.setSelected(true);
- CHBUseFormBean.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "CB_UseFormBean")); // NOI18N
- CHBUseFormBean.setMargin(new java.awt.Insets(0, 0, 0, 0));
- CHBUseFormBean.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- CHBUseFormBeanItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);
- add(CHBUseFormBean, gridBagConstraints);
- CHBUseFormBean.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_CHBUseFormBean")); // NOI18N
-
- jButtonBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_BrowseButton_mnem").charAt(0));
- jButtonBrowse.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 0);
- add(jButtonBrowse, gridBagConstraints);
- jButtonBrowse.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonBrowse")); // NOI18N
-
- jLabelScope.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Scope")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelScope, gridBagConstraints);
-
- jLabelAttribute.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Attribute_mnem").charAt(0));
- jLabelAttribute.setLabelFor(TFAttribute);
- jLabelAttribute.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Attribute")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelAttribute, gridBagConstraints);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFAttribute, gridBagConstraints);
- TFAttribute.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFAttribute")); // NOI18N
-
- CHBValidate.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "CB_Validate_mnem").charAt(0));
- CHBValidate.setSelected(true);
- CHBValidate.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "CB_Validate")); // NOI18N
- CHBValidate.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 8;
- gridBagConstraints.gridwidth = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(CHBValidate, gridBagConstraints);
- CHBValidate.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_CHBValidate")); // NOI18N
-
- jLabelParameter.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Parameter_mnem").charAt(0));
- jLabelParameter.setLabelFor(TFParameter);
- jLabelParameter.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Parameter")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 9;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);
- add(jLabelParameter, gridBagConstraints);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 9;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(20, 12, 0, 0);
- add(TFParameter, gridBagConstraints);
- TFParameter.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFParameter")); // NOI18N
-
- buttonGroup1.add(RBInputResource);
- RBInputResource.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_InputResource_mnem").charAt(0));
- RBInputResource.setSelected(true);
- RBInputResource.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_InputResource")); // NOI18N
- RBInputResource.setMargin(new java.awt.Insets(0, 0, 0, 0));
- RBInputResource.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- RBInputResourceItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(RBInputResource, gridBagConstraints);
- RBInputResource.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RBInputResources")); // NOI18N
-
- buttonGroup1.add(RBInputAction);
- RBInputAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_InputAction_mnem").charAt(0));
- RBInputAction.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_InputAction")); // NOI18N
- RBInputAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- RBInputAction.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- RBInputActionItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(RBInputAction, gridBagConstraints);
- RBInputAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RBInputAction")); // NOI18N
-
- buttonGroup2.add(RBSession);
- RBSession.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_Session_mnem").charAt(0));
- RBSession.setSelected(true);
- RBSession.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_Sesson")); // NOI18N
- RBSession.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(RBSession);
- RBSession.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RBSession")); // NOI18N
-
- buttonGroup2.add(RBRequest);
- RBRequest.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_Request_mnem").charAt(0));
- RBRequest.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "RB_Request")); // NOI18N
- RBRequest.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(RBRequest);
- RBRequest.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_RBRequest")); // NOI18N
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(jPanel1, gridBagConstraints);
- jPanel1.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_Scope")); // NOI18N
-
- jLabelActionClass.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_ActionClass_mnem").charAt(0));
- jLabelActionClass.setLabelFor(TFActionClass);
- jLabelActionClass.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_ActionClass")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- add(jLabelActionClass, gridBagConstraints);
-
- TFActionClass.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(TFActionClass, gridBagConstraints);
- TFActionClass.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFActionClass")); // NOI18N
-
- jButtonBrowseClass.setMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_Browse_mnem").charAt(0));
- jButtonBrowseClass.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonBrowseClass.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseClassActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
- add(jButtonBrowseClass, gridBagConstraints);
- jButtonBrowseClass.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonBrowseClass")); // NOI18N
-
- jLabelActionPath.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_ActionPath_mnem").charAt(0));
- jLabelActionPath.setLabelFor(TFActionPath);
- jLabelActionPath.setText(org.openide.util.NbBundle.getMessage(AddActionPanel.class, "LBL_ActionPath")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
- add(jLabelActionPath, gridBagConstraints);
-
- TFActionPath.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFActionPath, gridBagConstraints);
- TFActionPath.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFActionPath")); // NOI18N
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddActionDialog")); // NOI18N
- }// //GEN-END:initComponents
-
- private void jButtonBrowseClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseClassActionPerformed
- ClasspathInfo cpInfo = ClasspathInfo.create(config.getPrimaryFile());
- final ElementHandle handle = TypeElementFinder.find(cpInfo, new TypeElementFinder.Customizer() {
- public Set> query(ClasspathInfo classpathInfo, String textForQuery, NameKind nameKind, Set searchScopes) {
- return classpathInfo.getClassIndex().getDeclaredTypes(textForQuery, nameKind, searchScopes);
- }
-
- public boolean accept(ElementHandle typeHandle) {
- return true;
- }
- });
- if (handle != null) {
- TFActionClass.setText(handle.getQualifiedName());
- }
-
- }//GEN-LAST:event_jButtonBrowseClassActionPerformed
-
- private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed
-// TODO add your handling code here:
- try{
- org.netbeans.api.project.SourceGroup[] groups = StrutsConfigUtilities.getDocBaseGroups(config.getPrimaryFile());
- org.openide.filesystems.FileObject fo = BrowseFolders.showDialog(groups);
- if (fo!=null) {
- String res = "/"+StrutsConfigUtilities.getResourcePath(groups,fo,'/',true);
- TFInputResource.setText(res);
- }
- } catch (java.io.IOException ex) {}
- }//GEN-LAST:event_jButtonBrowseActionPerformed
-
- private void RBInputActionItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_RBInputActionItemStateChanged
-// TODO add your handling code here:
- boolean selected = RBInputAction.isSelected();
- TFInputResource.setEditable(!selected);
- jButtonBrowse.setEnabled(!selected);
- CBInputAction.setEnabled(selected);
- }//GEN-LAST:event_RBInputActionItemStateChanged
-
- private void RBInputResourceItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_RBInputResourceItemStateChanged
-// TODO add your handling code here:
- boolean selected = RBInputResource.isSelected();
- TFInputResource.setEditable(selected);
- jButtonBrowse.setEnabled(selected);
- CBInputAction.setEnabled(!selected);
- }//GEN-LAST:event_RBInputResourceItemStateChanged
-
- private void CHBUseFormBeanItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CHBUseFormBeanItemStateChanged
-// TODO add your handling code here:
- boolean selected = CHBUseFormBean.isSelected();
- CBFormName.setEnabled(selected);
- RBInputResource.setEnabled(selected);
- RBInputAction.setEnabled(selected);
- if (selected) {
- if (RBInputResource.isSelected()) {
- TFInputResource.setEditable(true);
- jButtonBrowse.setEnabled(true);
- } else {
- CBInputAction.setEnabled(true);
- }
- } else {
- TFInputResource.setEditable(false);
- jButtonBrowse.setEnabled(false);
- CBInputAction.setEnabled(false);
- }
-
- RBSession.setEnabled(selected);
- RBRequest.setEnabled(selected);
- TFAttribute.setEditable(selected);
- CHBValidate.setEnabled(selected);
- }//GEN-LAST:event_CHBUseFormBeanItemStateChanged
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JComboBox CBFormName;
- private javax.swing.JComboBox CBInputAction;
- private javax.swing.JCheckBox CHBUseFormBean;
- private javax.swing.JCheckBox CHBValidate;
- private javax.swing.JRadioButton RBInputAction;
- private javax.swing.JRadioButton RBInputResource;
- private javax.swing.JRadioButton RBRequest;
- private javax.swing.JRadioButton RBSession;
- private javax.swing.JTextField TFActionClass;
- private javax.swing.JTextField TFActionPath;
- private javax.swing.JTextField TFAttribute;
- private javax.swing.JTextField TFInputResource;
- private javax.swing.JTextField TFParameter;
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.ButtonGroup buttonGroup2;
- private javax.swing.JButton jButtonBrowse;
- private javax.swing.JButton jButtonBrowseClass;
- private javax.swing.JLabel jLabelActionClass;
- private javax.swing.JLabel jLabelActionPath;
- private javax.swing.JLabel jLabelAttribute;
- private javax.swing.JLabel jLabelFormName;
- private javax.swing.JLabel jLabelParameter;
- private javax.swing.JLabel jLabelScope;
- private javax.swing.JPanel jPanel1;
- // End of variables declaration//GEN-END:variables
-
- public String getActionClass() {
- return TFActionClass.getText().trim();
- }
-
- public String getActionPath() {
- return TFActionPath.getText().trim();
- }
-
- public String getFormName() {
- return (String)CBFormName.getSelectedItem();
- }
-
- public String getInput() {
- if (!CHBUseFormBean.isSelected()) return null;
- if (RBInputResource.isSelected()) {
- String input=TFInputResource.getText().trim();
- return input.length()==0?null:input;
- } else {
- return (String)CBInputAction.getSelectedItem();
- }
- }
-
- public String getScope() {
- if (!CHBUseFormBean.isSelected()) return null;
- if (RBSession.isSelected()) {
- return "session"; //NOI18N
- } else {
- return "request"; //NOI18N
- }
- }
-
- public String getValidate() {
- if (!CHBUseFormBean.isSelected()) return null;
- if (CHBValidate.isSelected()) return null;
- return "false"; //NOI18N
- }
-
- public String getAttribute() {
- if (!CHBUseFormBean.isSelected()) return null;
- String attr=TFAttribute.getText().trim();
- return attr.length()==0?null:attr;
- }
-
- public String getParameter() {
- String param=TFParameter.getText().trim();
- return param.length()==0?null:param;
- }
-
- public boolean isActionFormUsed(){
- return CHBUseFormBean.isSelected();
- }
-
- private boolean containsActionPath(String path) {
- DefaultComboBoxModel model = (DefaultComboBoxModel)CBInputAction.getModel();
- for (int i=0; i0) {
- StateChangeListener list = new StateChangeListener(this);
- for (int i=0;i0) {
- DocListener list = new DocListener(this);
- for (int i=0;i
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddExceptionDialogPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddExceptionDialogPanel.java
deleted file mode 100644
index 86d75ffbc307..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddExceptionDialogPanel.java
+++ /dev/null
@@ -1,475 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import javax.lang.model.element.TypeElement;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.text.JTextComponent;
-import org.netbeans.api.java.source.ClassIndex.NameKind;
-import org.netbeans.api.java.source.ClassIndex.SearchScope;
-import org.netbeans.api.java.source.ClasspathInfo;
-import org.netbeans.api.java.source.ElementHandle;
-import org.netbeans.api.java.source.ui.TypeElementFinder;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.netbeans.modules.web.struts.config.model.MessageResources;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author radko
- */
-public class AddExceptionDialogPanel extends javax.swing.JPanel implements ValidatingPanel {
- private static final String DEFAULT_BUNDLE_KEY="org.apache.struts.Globals.MESSAGES_KEY"; //NOI18N
- StrutsConfigDataObject config;
- /** Creates new form AddForwardDialog */
- public AddExceptionDialogPanel(StrutsConfigDataObject config, String targetActionPath) {
- this.config=config;
- initComponents();
- List actions = StrutsConfigUtilities.getAllActionsInModule(config);
- DefaultComboBoxModel model = (DefaultComboBoxModel)jComboBoxCallAction.getModel();
- DefaultComboBoxModel model1 = (DefaultComboBoxModel)jComboBoxActionExc.getModel();
- Iterator iter = actions.iterator();
- while (iter.hasNext()) {
- String actionPath=((Action)iter.next()).getAttributeValue("path"); //NOI18N
- model.addElement(actionPath);
- model1.addElement(actionPath);
- }
- List messageResources = StrutsConfigUtilities.getAllMessageResourcesInModule(config);
- model = (DefaultComboBoxModel)jComboBoxBundleKey.getModel();
- iter = messageResources.iterator();
- while (iter.hasNext()) {
- String key=((MessageResources)iter.next()).getAttributeValue("key"); //NOI18N
- model.addElement(key==null?DEFAULT_BUNDLE_KEY:key); //NOI18N
- }
- if (targetActionPath != null) {
- jRadioButtonActionExc.setSelected(true);
- jComboBoxActionExc.setSelectedItem(targetActionPath);
- }
- }
-
- public AddExceptionDialogPanel(StrutsConfigDataObject config) {
- this(config, null);
- }
-
- public javax.swing.AbstractButton[] getStateChangeComponents() {
- return new javax.swing.AbstractButton[]{jRadioButtonResFile, jRadioButtonGlobalExc};
- }
-
- public JTextComponent[] getDocumentChangeComponents() {
- return new JTextComponent[]{jTextFieldExcKey, jTextFieldResFile, (JTextComponent)jComboBoxExcType.getEditor().getEditorComponent()};
- }
-
- public String validatePanel() {
- if (getExceptionKey().length()==0)
- return NbBundle.getMessage(AddExceptionDialogPanel.class,"MSG_EmptyExcKey");
- if (getExceptionType().length()==0)
- return NbBundle.getMessage(AddExceptionDialogPanel.class,"MSG_EmptyExcType");
- if (jRadioButtonResFile.isSelected()) {
- String resourceFile = jTextFieldResFile.getText().trim();
- if (resourceFile.length()==0 || resourceFile.equals("/")) //NOI18N
- return NbBundle.getMessage(AddExceptionDialogPanel.class,"MSG_EmptyResourceFile");
- } else if (jComboBoxCallAction.getSelectedItem()==null) {
- return NbBundle.getMessage(AddExceptionDialogPanel.class,"MSG_EmptyAction");
- }
- if (!jRadioButtonGlobalExc.isSelected() && jComboBoxActionExc.getSelectedItem()==null) {
- return NbBundle.getMessage(AddExceptionDialogPanel.class,"MSG_EmptyAction");
- }
- return null;
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- buttonGroup2 = new javax.swing.ButtonGroup();
- buttonGroup3 = new javax.swing.ButtonGroup();
- jLabelBundleKey = new javax.swing.JLabel();
- jComboBoxBundleKey = new javax.swing.JComboBox();
- jLabelExcKey = new javax.swing.JLabel();
- jComboBoxExcType = new javax.swing.JComboBox();
- jLabelExcType = new javax.swing.JLabel();
- jTextFieldExcKey = new javax.swing.JTextField();
- jButtonExcType = new javax.swing.JButton();
- jLabelCall = new javax.swing.JLabel();
- jRadioButtonResFile = new javax.swing.JRadioButton();
- jTextFieldResFile = new javax.swing.JTextField();
- jButtonBrowse = new javax.swing.JButton();
- jRadioButtonCallAction = new javax.swing.JRadioButton();
- jComboBoxCallAction = new javax.swing.JComboBox();
- jLabelScope = new javax.swing.JLabel();
- jLabelLocation = new javax.swing.JLabel();
- jRadioButtonGlobalExc = new javax.swing.JRadioButton();
- jRadioButtonActionExc = new javax.swing.JRadioButton();
- jComboBoxActionExc = new javax.swing.JComboBox();
- jPanel1 = new javax.swing.JPanel();
- jRadioButtonSession = new javax.swing.JRadioButton();
- jRadioButtonRequest = new javax.swing.JRadioButton();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- jLabelBundleKey.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_BundleKey").charAt(0));
- jLabelBundleKey.setLabelFor(jComboBoxBundleKey);
- jLabelBundleKey.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_Bundle Key")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 12);
- add(jLabelBundleKey, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jComboBoxBundleKey, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- jComboBoxBundleKey.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxBundleKey")); // NOI18N
-
- jLabelExcKey.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_ExcKey").charAt(0));
- jLabelExcKey.setLabelFor(jTextFieldExcKey);
- jLabelExcKey.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_ExcKey")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 12);
- add(jLabelExcKey, gridBagConstraints);
-
- jComboBoxExcType.setEditable(true);
- jComboBoxExcType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "java.lang.NumberFormatException", "java.lang.NullPointerException", "java.lang.ArrayIndexOutOfBoundsException", "java.lang.StringIndexOutOfBoundsException", "java.lang.RuntimeException", "java.lang.Exception" }));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
- add(jComboBoxExcType, gridBagConstraints);
- jComboBoxExcType.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxExcType")); // NOI18N
-
- jLabelExcType.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_ExcType").charAt(0));
- jLabelExcType.setLabelFor(jComboBoxExcType);
- jLabelExcType.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_ExcType")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 12);
- add(jLabelExcType, gridBagConstraints);
-
- jTextFieldExcKey.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jTextFieldExcKey, gridBagConstraints);
- jTextFieldExcKey.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldExcKey")); // NOI18N
-
- jButtonExcType.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddFwdDialog_Browse").charAt(0));
- jButtonExcType.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonExcType.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonExcTypeActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jButtonExcType, gridBagConstraints);
- jButtonExcType.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonExcType")); // NOI18N
-
- jLabelCall.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_Call")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelCall, gridBagConstraints);
-
- buttonGroup1.add(jRadioButtonResFile);
- jRadioButtonResFile.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddFwdDialog_ResFile").charAt(0));
- jRadioButtonResFile.setSelected(true);
- jRadioButtonResFile.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "RB_ResourceFile")); // NOI18N
- jRadioButtonResFile.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButtonResFile.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButtonResFileItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 12);
- add(jRadioButtonResFile, gridBagConstraints);
- jRadioButtonResFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonResFile")); // NOI18N
-
- jTextFieldResFile.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jTextFieldResFile, gridBagConstraints);
- jTextFieldResFile.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_jTextFieldResFile")); // NOI18N
- jTextFieldResFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldResFile")); // NOI18N
-
- jButtonBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_ResFileBrowse").charAt(0));
- jButtonBrowse.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jButtonBrowse, gridBagConstraints);
- jButtonBrowse.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonBrowse")); // NOI18N
-
- buttonGroup1.add(jRadioButtonCallAction);
- jRadioButtonCallAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddFwdDialog_FwdAction").charAt(0));
- jRadioButtonCallAction.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "RB_Action")); // NOI18N
- jRadioButtonCallAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 10, 12);
- add(jRadioButtonCallAction, gridBagConstraints);
- jRadioButtonCallAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonCallAction")); // NOI18N
-
- jComboBoxCallAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
- add(jComboBoxCallAction, gridBagConstraints);
- jComboBoxCallAction.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "ACSN_EDAction")); // NOI18N
- jComboBoxCallAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxCallAction")); // NOI18N
-
- jLabelScope.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_Scope")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
- add(jLabelScope, gridBagConstraints);
-
- jLabelLocation.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddFwdDialog_Location")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelLocation, gridBagConstraints);
-
- buttonGroup3.add(jRadioButtonGlobalExc);
- jRadioButtonGlobalExc.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_GlobalExc").charAt(0));
- jRadioButtonGlobalExc.setSelected(true);
- jRadioButtonGlobalExc.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_GlobalExc")); // NOI18N
- jRadioButtonGlobalExc.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButtonGlobalExc.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButtonGlobalExcItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 8;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 12);
- add(jRadioButtonGlobalExc, gridBagConstraints);
- jRadioButtonGlobalExc.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonGlobalExc")); // NOI18N
-
- buttonGroup3.add(jRadioButtonActionExc);
- jRadioButtonActionExc.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_ActionExc").charAt(0));
- jRadioButtonActionExc.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_ActionExc")); // NOI18N
- jRadioButtonActionExc.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 9;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 12);
- add(jRadioButtonActionExc, gridBagConstraints);
- jRadioButtonActionExc.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonActionExc")); // NOI18N
-
- jComboBoxActionExc.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 9;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- add(jComboBoxActionExc, gridBagConstraints);
- jComboBoxActionExc.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "ACSN_EDAction")); // NOI18N
- jComboBoxActionExc.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxActionExc")); // NOI18N
-
- buttonGroup2.add(jRadioButtonSession);
- jRadioButtonSession.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_Session").charAt(0));
- jRadioButtonSession.setSelected(true);
- jRadioButtonSession.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_Session")); // NOI18N
- jRadioButtonSession.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(jRadioButtonSession);
- jRadioButtonSession.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonSession")); // NOI18N
-
- buttonGroup2.add(jRadioButtonRequest);
- jRadioButtonRequest.setMnemonic(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "MNE_AddExcDialog_Request").charAt(0));
- jRadioButtonRequest.setText(org.openide.util.NbBundle.getMessage(AddExceptionDialogPanel.class, "LBL_AddExcDialog_Request")); // NOI18N
- jRadioButtonRequest.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(jRadioButtonRequest);
- jRadioButtonRequest.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonReques")); // NOI18N
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 0);
- add(jPanel1, gridBagConstraints);
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddExceptionDialogPanel")); // NOI18N
- }// //GEN-END:initComponents
-
- private void jRadioButtonGlobalExcItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlobalExcItemStateChanged
-// TODO add your handling code here:
- jComboBoxActionExc.setEnabled(!jRadioButtonGlobalExc.isSelected());
- }//GEN-LAST:event_jRadioButtonGlobalExcItemStateChanged
-
- private void jRadioButtonResFileItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonResFileItemStateChanged
-// TODO add your handling code here:
- boolean selected = jRadioButtonResFile.isSelected();
- jTextFieldResFile.setEditable(selected);
- jButtonBrowse.setEnabled(selected);
- jComboBoxCallAction.setEnabled(!selected);
- }//GEN-LAST:event_jRadioButtonResFileItemStateChanged
-
- private void jButtonExcTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExcTypeActionPerformed
- ClasspathInfo cpInfo = ClasspathInfo.create(config.getPrimaryFile());
- final ElementHandle handle = TypeElementFinder.find(cpInfo, new TypeElementFinder.Customizer() {
- public Set> query(ClasspathInfo classpathInfo, String textForQuery, NameKind nameKind, Set searchScopes) {
- return classpathInfo.getClassIndex().getDeclaredTypes(textForQuery, nameKind, searchScopes);
- }
-
- public boolean accept(ElementHandle typeHandle) {
- return true;
- }
- });
- if (handle != null) {
- jComboBoxExcType.setSelectedItem(handle.getQualifiedName());
- }
- }//GEN-LAST:event_jButtonExcTypeActionPerformed
-
- private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed
-// TODO add your handling code here:
- try{
- org.netbeans.api.project.SourceGroup[] groups = StrutsConfigUtilities.getDocBaseGroups(config.getPrimaryFile());
- org.openide.filesystems.FileObject fo = BrowseFolders.showDialog(groups);
- if (fo!=null) {
- String res = "/"+StrutsConfigUtilities.getResourcePath(groups,fo,'/',true);
- jTextFieldResFile.setText(res);
- }
- } catch (java.io.IOException ex) {}
- }//GEN-LAST:event_jButtonBrowseActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.ButtonGroup buttonGroup2;
- private javax.swing.ButtonGroup buttonGroup3;
- private javax.swing.JButton jButtonBrowse;
- private javax.swing.JButton jButtonExcType;
- private javax.swing.JComboBox jComboBoxActionExc;
- private javax.swing.JComboBox jComboBoxBundleKey;
- private javax.swing.JComboBox jComboBoxCallAction;
- private javax.swing.JComboBox jComboBoxExcType;
- private javax.swing.JLabel jLabelBundleKey;
- private javax.swing.JLabel jLabelCall;
- private javax.swing.JLabel jLabelExcKey;
- private javax.swing.JLabel jLabelExcType;
- private javax.swing.JLabel jLabelLocation;
- private javax.swing.JLabel jLabelScope;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JRadioButton jRadioButtonActionExc;
- private javax.swing.JRadioButton jRadioButtonCallAction;
- private javax.swing.JRadioButton jRadioButtonGlobalExc;
- private javax.swing.JRadioButton jRadioButtonRequest;
- private javax.swing.JRadioButton jRadioButtonResFile;
- private javax.swing.JRadioButton jRadioButtonSession;
- private javax.swing.JTextField jTextFieldExcKey;
- private javax.swing.JTextField jTextFieldResFile;
- // End of variables declaration//GEN-END:variables
-
- public String getResourceBundle() {
- String key = (String)jComboBoxBundleKey.getSelectedItem();
- return DEFAULT_BUNDLE_KEY.equals(key)?null:key;
- }
-
- public String getExceptionKey() {
- String key = jTextFieldExcKey.getText().trim();
- return key==null?null:key;
- }
-
- public String getExceptionType() {
- javax.swing.text.Document doc = ((JTextComponent)jComboBoxExcType.getEditor().getEditorComponent()).getDocument();
- try {
- String exceptionType = doc.getText(0,doc.getLength());
- return exceptionType==null?null:exceptionType;
- } catch (javax.swing.text.BadLocationException ex) {
- return null;
- }
- }
-
- public String getScope() {
- return (jRadioButtonSession.isSelected()?null:"request"); //NOI18N
- }
-
- public String getForwardTo() {
- if (jRadioButtonResFile.isSelected()) {
- return jTextFieldResFile.getText().trim();
- } else {
- return (String)jComboBoxCallAction.getSelectedItem();
- }
- }
-
- public boolean isGlobal() {
- return jRadioButtonGlobalExc.isSelected();
- }
-
- public String getLocationAction() {
- return (String)jComboBoxActionExc.getSelectedItem();
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.form
deleted file mode 100644
index 99fc7b525304..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.form
+++ /dev/null
@@ -1,296 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.java
deleted file mode 100644
index e8c936287e32..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFIActionPanel.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.util.Iterator;
-import java.util.List;
-import javax.swing.DefaultComboBoxModel;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author petr
- */
-public class AddFIActionPanel extends javax.swing.JPanel implements ValidatingPanel {
- private StrutsConfigDataObject config;
- /** Creates new form AddFIActionPanel */
- public AddFIActionPanel(StrutsConfigDataObject dObject) {
- config = dObject;
- initComponents();
- List actions = StrutsConfigUtilities.getAllActionsInModule(config);
- DefaultComboBoxModel model = (DefaultComboBoxModel)cbAction.getModel();
- //model.removeAllElements();
- Iterator iter = actions.iterator();
- while (iter.hasNext())
- model.addElement(((Action)iter.next()).getAttributeValue("path"));
- }
-
- public String validatePanel() {
- String actionPath = getActionPath();
- if (actionPath==null || actionPath.equals("/")) //NOI18N
- return NbBundle.getMessage(AddFIActionPanel.class,"MSG_EmptyActionPath");
- if (!actionPath.startsWith("/") ) //NOI18N
- return NbBundle.getMessage(AddFIActionPanel.class,"MSG_IncorrectActionPath", actionPath);
- if (containsActionPath(actionPath)) //NOI18N
- return NbBundle.getMessage(AddFIActionPanel.class,"MSG_DupliciteActionPath",actionPath);
- if (rbResourceFile.isSelected() && tResourceFile.getText().trim().length()==0) {
- return NbBundle.getMessage(AddFIActionPanel.class,"MSG_EmptyResourceFile");
- } else if (rbAction.isSelected() && cbAction.getSelectedItem()==null) {
- return NbBundle.getMessage(AddFIActionPanel.class,"MSG_EmptyAction");
- } else return null;
- }
-
- public javax.swing.AbstractButton[] getStateChangeComponents() {
- return new javax.swing.AbstractButton[]{ rbResourceFile };
- }
-
- public javax.swing.text.JTextComponent[] getDocumentChangeComponents() {
- return new javax.swing.text.JTextComponent[]{jTextFieldPath, tResourceFile};
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- bgActionType = new javax.swing.ButtonGroup();
- bgCall = new javax.swing.ButtonGroup();
- jPopupMenu1 = new javax.swing.JPopupMenu();
- lActionType = new javax.swing.JLabel();
- rbIncludeAction = new javax.swing.JRadioButton();
- rbForwardAction = new javax.swing.JRadioButton();
- lCall = new javax.swing.JLabel();
- rbResourceFile = new javax.swing.JRadioButton();
- rbAction = new javax.swing.JRadioButton();
- tResourceFile = new javax.swing.JTextField();
- bBrowse = new javax.swing.JButton();
- cbAction = new javax.swing.JComboBox();
- jLabelPath = new javax.swing.JLabel();
- jTextFieldPath = new javax.swing.JTextField();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- lActionType.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_ActionType")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0);
- add(lActionType, gridBagConstraints);
-
- bgActionType.add(rbIncludeAction);
- rbIncludeAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Include_mnem").charAt(0));
- rbIncludeAction.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Include")); // NOI18N
- rbIncludeAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(6, 20, 0, 0);
- add(rbIncludeAction, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- rbIncludeAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_rbIncudeAction")); // NOI18N
-
- bgActionType.add(rbForwardAction);
- rbForwardAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Forward_mnem").charAt(0));
- rbForwardAction.setSelected(true);
- rbForwardAction.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Forward")); // NOI18N
- rbForwardAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(6, 20, 0, 0);
- add(rbForwardAction, gridBagConstraints);
- rbForwardAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_rbForwardAction")); // NOI18N
-
- lCall.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_Call")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0);
- add(lCall, gridBagConstraints);
-
- bgCall.add(rbResourceFile);
- rbResourceFile.setMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_ResourceFile_mnem").charAt(0));
- rbResourceFile.setSelected(true);
- rbResourceFile.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_ResourceFile")); // NOI18N
- rbResourceFile.setMargin(new java.awt.Insets(0, 0, 0, 0));
- rbResourceFile.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- rbResourceFileItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(6, 20, 0, 0);
- add(rbResourceFile, gridBagConstraints);
- rbResourceFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_rbResourceFile2")); // NOI18N
-
- bgCall.add(rbAction);
- rbAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Action_mnem").charAt(0));
- rbAction.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "RB_Action")); // NOI18N
- rbAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- rbAction.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- rbActionItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(6, 20, 0, 0);
- add(rbAction, gridBagConstraints);
- rbAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_rbAction")); // NOI18N
-
- tResourceFile.setMinimumSize(new java.awt.Dimension(200, 24));
- tResourceFile.setPreferredSize(new java.awt.Dimension(200, 24));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
- add(tResourceFile, gridBagConstraints);
- tResourceFile.getAccessibleContext().setAccessibleName(bundle.getString("ACSD_tResourceFile")); // NOI18N
- tResourceFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_tResourceFile")); // NOI18N
-
- bBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_Browse_mnem").charAt(0));
- bBrowse.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_BrowseButton")); // NOI18N
- bBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- bBrowseActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
- add(bBrowse, gridBagConstraints);
- bBrowse.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_bBrowse")); // NOI18N
-
- cbAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
- add(cbAction, gridBagConstraints);
- cbAction.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "ACSN_FIAction")); // NOI18N
- cbAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_cbAction")); // NOI18N
-
- jLabelPath.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_ActionPath_mnem").charAt(0));
- jLabelPath.setLabelFor(jTextFieldPath);
- jLabelPath.setText(org.openide.util.NbBundle.getMessage(AddFIActionPanel.class, "LBL_ActionPath")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- add(jLabelPath, gridBagConstraints);
-
- jTextFieldPath.setColumns(30);
- jTextFieldPath.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(jTextFieldPath, gridBagConstraints);
- jTextFieldPath.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldPath")); // NOI18N
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddFIActionPanel")); // NOI18N
- }// //GEN-END:initComponents
-
- private void bBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bBrowseActionPerformed
- try{
- org.netbeans.api.project.SourceGroup[] groups = StrutsConfigUtilities.getDocBaseGroups(config.getPrimaryFile());
- org.openide.filesystems.FileObject fo = BrowseFolders.showDialog(groups);
- if (fo!=null) {
- String res = "/"+StrutsConfigUtilities.getResourcePath(groups,fo,'/',true);
- tResourceFile.setText(res);
- }
- } catch (java.io.IOException ex) {}
- }//GEN-LAST:event_bBrowseActionPerformed
-
- private void rbResourceFileItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_rbResourceFileItemStateChanged
- tResourceFile.setEnabled(true);
- bBrowse.setEnabled(true);
- cbAction.setEnabled(false);
- }//GEN-LAST:event_rbResourceFileItemStateChanged
-
- private void rbActionItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_rbActionItemStateChanged
- tResourceFile.setEnabled(false);
- bBrowse.setEnabled(false);
- cbAction.setEnabled(true);
- }//GEN-LAST:event_rbActionItemStateChanged
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton bBrowse;
- private javax.swing.ButtonGroup bgActionType;
- private javax.swing.ButtonGroup bgCall;
- private javax.swing.JComboBox cbAction;
- private javax.swing.JLabel jLabelPath;
- private javax.swing.JPopupMenu jPopupMenu1;
- private javax.swing.JTextField jTextFieldPath;
- private javax.swing.JLabel lActionType;
- private javax.swing.JLabel lCall;
- private javax.swing.JRadioButton rbAction;
- private javax.swing.JRadioButton rbForwardAction;
- private javax.swing.JRadioButton rbIncludeAction;
- private javax.swing.JRadioButton rbResourceFile;
- private javax.swing.JTextField tResourceFile;
- // End of variables declaration//GEN-END:variables
-
- public String getActionPath() {
- String path = jTextFieldPath.getText().trim();
- return path.length()==0?null:path;
- }
-
- public boolean isForward() {
- return rbForwardAction.isSelected();
- }
-
- public String getResource() {
- if (rbResourceFile.isSelected()) {
- String resource=tResourceFile.getText().trim();
- return resource.length()==0?null:resource;
- } else {
- return StrutsConfigUtilities.getActionAsResource(
- WebModule.getWebModule(config.getPrimaryFile()),
- (String)cbAction.getSelectedItem());
- }
- }
-
- private boolean containsActionPath(String path) {
- DefaultComboBoxModel model = (DefaultComboBoxModel)cbAction.getModel();
- for (int i=0; i
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormBeanPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormBeanPanel.java
deleted file mode 100644
index 62f95ebc4c29..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormBeanPanel.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.io.IOException;
-import java.util.Hashtable;
-import java.util.Set;
-import javax.lang.model.element.TypeElement;
-import org.netbeans.api.java.source.ClassIndex.NameKind;
-import org.netbeans.api.java.source.ClassIndex.SearchScope;
-import org.netbeans.api.java.source.ClasspathInfo;
-import org.netbeans.api.java.source.ElementHandle;
-import org.netbeans.api.java.source.ui.TypeElementFinder;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author Milan Kuchtiak
- */
-public class AddFormBeanPanel extends javax.swing.JPanel implements ValidatingPanel {
-
- private StrutsConfigDataObject config;
- private Hashtable beanNames;
- /** Creates new form AddFormBeanPanel */
- public AddFormBeanPanel(StrutsConfigDataObject config) {
- initComponents();
- this.config = config;
- beanNames = null;
- }
-
- public String validatePanel() {
- //config.getStrutsConfig().getFormBeans().sizeFormBean()
- if (getFormName().length()==0)
- return NbBundle.getMessage(AddFormBeanPanel.class,"MSG_EmptyFormName");
- if (beanNames == null){
- beanNames = new Hashtable();
- try {
- FormBean[] beans = config.getStrutsConfig().getFormBeans().getFormBean();
- for (int i = 0; i < beans.length; i++){
- beanNames.put(beans[i].getAttributeValue("name"), "");
- }
- } catch (IOException ex) {
- // don't cashe
- }
- }
- if (beanNames.get(getFormName()) != null)
- return NbBundle.getMessage(AddFormBeanPanel.class,"MSG_BeanNameDefined");
- if (jRadioButton1.isSelected() && TFBeanClass.getText().trim().length()==0)
- return NbBundle.getMessage(AddFormBeanPanel.class,"MSG_EmptyFormBeanClass");
- return null;
- }
-
- public javax.swing.AbstractButton[] getStateChangeComponents() {
- return new javax.swing.AbstractButton[]{ jRadioButton1 };
- }
-
- public javax.swing.text.JTextComponent[] getDocumentChangeComponents() {
- return new javax.swing.text.JTextComponent[]{TFBeanClass, TFFormName};
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- jLabelFormName = new javax.swing.JLabel();
- CBDynamic = new javax.swing.JComboBox();
- TFBeanClass = new javax.swing.JTextField();
- jButtonBrowse = new javax.swing.JButton();
- TFFormName = new javax.swing.JTextField();
- jRadioButton1 = new javax.swing.JRadioButton();
- jRadioButton2 = new javax.swing.JRadioButton();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- jLabelFormName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_FormName_mnem").charAt(0));
- jLabelFormName.setLabelFor(TFFormName);
- jLabelFormName.setText(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_FormName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- add(jLabelFormName, gridBagConstraints);
-
- CBDynamic.setEditable(true);
- CBDynamic.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "org.apache.struts.action.DynaActionForm", "org.apache.struts.validator.DynaValidatorForm", "org.apache.struts.validator.DynaValidatorActionForm" }));
- CBDynamic.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(CBDynamic, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- CBDynamic.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_CVBDynamic")); // NOI18N
-
- TFBeanClass.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFBeanClass, gridBagConstraints);
- TFBeanClass.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_TFBeanClass")); // NOI18N
- TFBeanClass.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFBeanClass")); // NOI18N
-
- jButtonBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_Browse_mnem").charAt(0));
- jButtonBrowse.setText(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseActionPerformed(evt);
- }
- });
- jButtonBrowse.addComponentListener(new java.awt.event.ComponentAdapter() {
- public void componentHidden(java.awt.event.ComponentEvent evt) {
- jButtonBrowseComponentHidden(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 0);
- add(jButtonBrowse, gridBagConstraints);
- jButtonBrowse.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonBrowseClass")); // NOI18N
-
- TFFormName.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(TFFormName, gridBagConstraints);
- TFFormName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_TFFormName")); // NOI18N
-
- buttonGroup1.add(jRadioButton1);
- jRadioButton1.setMnemonic(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_FormBeanClass_mnem").charAt(0));
- jRadioButton1.setSelected(true);
- jRadioButton1.setText(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_FormBeanClass")); // NOI18N
- jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButton1.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButton1ItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
- add(jRadioButton1, gridBagConstraints);
- jRadioButton1.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButton1")); // NOI18N
-
- buttonGroup1.add(jRadioButton2);
- jRadioButton2.setMnemonic(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_DYNAMIC_mnem").charAt(0));
- jRadioButton2.setText(org.openide.util.NbBundle.getMessage(AddFormBeanPanel.class, "LBL_DYNAMIC")); // NOI18N
- jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
- add(jRadioButton2, gridBagConstraints);
- jRadioButton2.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButton2")); // NOI18N
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddFormBeanPanel")); // NOI18N
- }// //GEN-END:initComponents
-
- private void jButtonBrowseComponentHidden(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jButtonBrowseComponentHidden
- }//GEN-LAST:event_jButtonBrowseComponentHidden
-
- private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed
- ClasspathInfo cpInfo = ClasspathInfo.create(config.getPrimaryFile());
- final ElementHandle handle = TypeElementFinder.find(cpInfo, new TypeElementFinder.Customizer() {
- public Set> query(ClasspathInfo classpathInfo, String textForQuery, NameKind nameKind, Set searchScopes) {
- return classpathInfo.getClassIndex().getDeclaredTypes(textForQuery, nameKind, searchScopes);
- }
-
- public boolean accept(ElementHandle typeHandle) {
- return true;
- }
- });
- if (handle != null) {
- TFBeanClass.setText(handle.getQualifiedName());
- }
- }//GEN-LAST:event_jButtonBrowseActionPerformed
-
- private void jRadioButton1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButton1ItemStateChanged
-// TODO add your handling code here:
- boolean selected = jRadioButton1.isSelected();
- TFBeanClass.setEditable(selected);
- CBDynamic.setEnabled(!selected);
- }//GEN-LAST:event_jRadioButton1ItemStateChanged
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JComboBox CBDynamic;
- private javax.swing.JTextField TFBeanClass;
- private javax.swing.JTextField TFFormName;
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.JButton jButtonBrowse;
- private javax.swing.JLabel jLabelFormName;
- private javax.swing.JRadioButton jRadioButton1;
- private javax.swing.JRadioButton jRadioButton2;
- // End of variables declaration//GEN-END:variables
-
- public String getFormBeanClass() {
- return jRadioButton1.isSelected()?TFBeanClass.getText().trim():(String)CBDynamic.getSelectedItem();
- }
-
- public String getFormName() {
- return (String)TFFormName.getText().trim();
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.form
deleted file mode 100644
index 945962a550dc..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.form
+++ /dev/null
@@ -1,339 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.java
deleted file mode 100644
index 074c74c8ed5c..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddFormPropertyPanel.java
+++ /dev/null
@@ -1,353 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import javax.lang.model.element.TypeElement;
-import javax.swing.AbstractButton;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.text.JTextComponent;
-import org.netbeans.api.java.source.ClassIndex.NameKind;
-import org.netbeans.api.java.source.ClassIndex.SearchScope;
-import org.netbeans.api.java.source.ClasspathInfo;
-import org.netbeans.api.java.source.ElementHandle;
-import org.netbeans.api.java.source.ui.TypeElementFinder;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author mkuchtiak
- */
-public class AddFormPropertyPanel extends javax.swing.JPanel implements ValidatingPanel {
- StrutsConfigDataObject config;
- /** Creates new form AddForwardDialog */
- public AddFormPropertyPanel(StrutsConfigDataObject config, String targetFormName) {
- this.config=config;
- initComponents();
- List beans = StrutsConfigUtilities.getAllFormBeansInModule(config);
- DefaultComboBoxModel model = (DefaultComboBoxModel)jComboBoxFormName.getModel();
- Iterator iter = beans.iterator();
- while (iter.hasNext()) {
- String name=((FormBean)iter.next()).getAttributeValue("name"); //NOI18N
- model.addElement(name);
- }
- if (targetFormName != null) {
- jComboBoxFormName.setSelectedItem(targetFormName);
- }
- }
-
- public AddFormPropertyPanel(StrutsConfigDataObject config) {
- this(config,null);
- }
-
- public String validatePanel() {
- if (getPropertyName()==null)
- return NbBundle.getMessage(AddFormPropertyPanel.class,"MSG_EmptyPropertyName");
- if (getFormName()==null)
- return NbBundle.getMessage(AddFormPropertyPanel.class,"MSG_EmptyFormName");
- if (getPropertyType()==null)
- return NbBundle.getMessage(AddFormPropertyPanel.class,"MSG_EmptyPropertyType");
- if (jRadioButtonArray.isSelected() && getArraySize()==null) {
- return NbBundle.getMessage(AddFormPropertyPanel.class,"MSG_IncorrectSize");
- }
- return null;
- }
-
- public AbstractButton[] getStateChangeComponents() {
- return new AbstractButton[] {jRadioButtonSingle};
- }
-
- public JTextComponent[] getDocumentChangeComponents() {
- return new JTextComponent[]{jTextFieldPropertyName, jTextFieldSize, (JTextComponent)jComboBoxPropertyType.getEditor().getEditorComponent()};
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- jLabelPropertyName = new javax.swing.JLabel();
- jTextFieldPropertyName = new javax.swing.JTextField();
- jRadioButtonSingle = new javax.swing.JRadioButton();
- jTextFieldSize = new javax.swing.JTextField();
- jComboBoxFormName = new javax.swing.JComboBox();
- jLabelFormName = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jComboBoxPropertyType = new javax.swing.JComboBox();
- jLabelInitValue = new javax.swing.JLabel();
- jLabelSize = new javax.swing.JLabel();
- jRadioButtonArray = new javax.swing.JRadioButton();
- jTextFieldInitValue = new javax.swing.JTextField();
- jPanel1 = new javax.swing.JPanel();
- jButton1 = new javax.swing.JButton();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- jLabelPropertyName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_PropertyName_mnem").charAt(0));
- jLabelPropertyName.setLabelFor(jTextFieldPropertyName);
- jLabelPropertyName.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_PropertyName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelPropertyName, gridBagConstraints);
-
- jTextFieldPropertyName.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jTextFieldPropertyName, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- jTextFieldPropertyName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldPropertyName")); // NOI18N
-
- buttonGroup1.add(jRadioButtonSingle);
- jRadioButtonSingle.setMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_SingleType_mnem").charAt(0));
- jRadioButtonSingle.setSelected(true);
- jRadioButtonSingle.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_SingleType")); // NOI18N
- jRadioButtonSingle.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jRadioButtonSingle.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButtonSingle.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButtonSingleItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jRadioButtonSingle, gridBagConstraints);
- jRadioButtonSingle.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonSingle")); // NOI18N
-
- jTextFieldSize.setColumns(5);
- jTextFieldSize.setEditable(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jTextFieldSize, gridBagConstraints);
- jTextFieldSize.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldSize")); // NOI18N
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridwidth = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jComboBoxFormName, gridBagConstraints);
- jComboBoxFormName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxFormName")); // NOI18N
-
- jLabelFormName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_FormName_mnem").charAt(0));
- jLabelFormName.setLabelFor(jComboBoxFormName);
- jLabelFormName.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_FormName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelFormName, gridBagConstraints);
-
- jLabel2.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_PropertyType_mnem").charAt(0));
- jLabel2.setLabelFor(jComboBoxPropertyType);
- jLabel2.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_PropertyType")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
- add(jLabel2, gridBagConstraints);
-
- jComboBoxPropertyType.setEditable(true);
- jComboBoxPropertyType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "java.lang.String", "int", "byte", "long", "float", "double", "boolean", "char", "java.lang.Integer", "java.lang.Byte", "java.lang.Long", "java.lang.Float", "java.lang.Double", "java.lang.Boolean", "java.lang.Char" }));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 0);
- add(jComboBoxPropertyType, gridBagConstraints);
- jComboBoxPropertyType.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxPropertyType")); // NOI18N
-
- jLabelInitValue.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_InitValue_mnem").charAt(0));
- jLabelInitValue.setLabelFor(jTextFieldInitValue);
- jLabelInitValue.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_InitValue")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 20, 12, 0);
- add(jLabelInitValue, gridBagConstraints);
-
- jLabelSize.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_Size_mnem").charAt(0));
- jLabelSize.setLabelFor(jTextFieldSize);
- jLabelSize.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_Size")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 20, 0, 0);
- add(jLabelSize, gridBagConstraints);
-
- buttonGroup1.add(jRadioButtonArray);
- jRadioButtonArray.setMnemonic(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_ArrayType_mnem").charAt(0));
- jRadioButtonArray.setText(org.openide.util.NbBundle.getMessage(AddFormPropertyPanel.class, "LBL_ArrayType")); // NOI18N
- jRadioButtonArray.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jRadioButtonArray.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jRadioButtonArray, gridBagConstraints);
- jRadioButtonArray.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonArray")); // NOI18N
-
- jTextFieldInitValue.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.gridwidth = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 0);
- add(jTextFieldInitValue, gridBagConstraints);
- jTextFieldInitValue.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldInitValue")); // NOI18N
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 2.0;
- add(jPanel1, gridBagConstraints);
-
- jButton1.setMnemonic(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle").getString("ACSM_BrowseClasses").charAt(0));
- jButton1.setText(bundle.getString("B_BROWSE")); // NOI18N
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 3;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
- gridBagConstraints.insets = new java.awt.Insets(0, 6, 12, 0);
- add(jButton1, gridBagConstraints);
- jButton1.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jbBrowseClass")); // NOI18N
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddFormPropertyPanel")); // NOI18N
- }// //GEN-END:initComponents
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
- ClasspathInfo cpInfo = ClasspathInfo.create(config.getPrimaryFile());
- final ElementHandle handle = TypeElementFinder.find(cpInfo, new TypeElementFinder.Customizer() {
- public Set> query(ClasspathInfo classpathInfo, String textForQuery, NameKind nameKind, Set searchScopes) {
- return classpathInfo.getClassIndex().getDeclaredTypes(textForQuery, nameKind, searchScopes);
- }
-
- public boolean accept(ElementHandle typeHandle) {
- return true;
- }
- });
- if (handle != null) {
- jComboBoxPropertyType.setSelectedItem(handle.getQualifiedName());
- }
- }//GEN-LAST:event_jButton1ActionPerformed
-
- private void jRadioButtonSingleItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonSingleItemStateChanged
-// TODO add your handling code here:
- jTextFieldSize.setEditable(!jRadioButtonSingle.isSelected());
- }//GEN-LAST:event_jRadioButtonSingleItemStateChanged
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox jComboBoxFormName;
- private javax.swing.JComboBox jComboBoxPropertyType;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabelFormName;
- private javax.swing.JLabel jLabelInitValue;
- private javax.swing.JLabel jLabelPropertyName;
- private javax.swing.JLabel jLabelSize;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JRadioButton jRadioButtonArray;
- private javax.swing.JRadioButton jRadioButtonSingle;
- private javax.swing.JTextField jTextFieldInitValue;
- private javax.swing.JTextField jTextFieldPropertyName;
- private javax.swing.JTextField jTextFieldSize;
- // End of variables declaration//GEN-END:variables
-
- public String getFormName() {
- return (String)jComboBoxFormName.getSelectedItem();
- }
-
- public String getPropertyName() {
- String name = jTextFieldPropertyName.getText().trim();
- return name.length()==0?null:name;
- }
-
- public String getPropertyType() {
- javax.swing.text.Document doc = ((JTextComponent)jComboBoxPropertyType.getEditor().getEditorComponent()).getDocument();
- try {
- String propType = doc.getText(0,doc.getLength());
- return propType==null?null:(isArray()?propType+"[]":propType); //NOi18N
- } catch (javax.swing.text.BadLocationException ex) {
- return null;
- }
- }
-
- public boolean isArray() {
- return jRadioButtonArray.isSelected();
- }
-
- public String getInitValue() {
- return jTextFieldInitValue.getText().trim();
- }
-
- public String getArraySize() {
- String text = jTextFieldSize.getText().trim();
- try {
- Integer size = new Integer(text);
- return text;
- } catch (NumberFormatException ex) {
- return null;
- }
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.form
deleted file mode 100644
index d24bfdc07e9b..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.form
+++ /dev/null
@@ -1,330 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.java
deleted file mode 100644
index 23067e95fd89..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/AddForwardDialogPanel.java
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.util.Iterator;
-import java.util.List;
-import javax.swing.AbstractButton;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.text.JTextComponent;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author radko
- */
-public class AddForwardDialogPanel extends javax.swing.JPanel implements ValidatingPanel {
- StrutsConfigDataObject config;
- /** Creates new form AddForwardDialog */
- public AddForwardDialogPanel(StrutsConfigDataObject config, String targetActionPath) {
- this.config=config;
- initComponents();
- List actions = StrutsConfigUtilities.getAllActionsInModule(config);
- DefaultComboBoxModel model = (DefaultComboBoxModel)jComboBoxFwdAction.getModel();
- DefaultComboBoxModel model1 = (DefaultComboBoxModel)jComboBoxLocationAction.getModel();
- Iterator iter = actions.iterator();
- while (iter.hasNext()) {
- String actionPath=((Action)iter.next()).getAttributeValue("path"); //NOI18N
- model.addElement(actionPath);
- model1.addElement(actionPath);
- }
- if (targetActionPath != null) {
- jRadioButtonLocationAction.setSelected(true);
- jComboBoxLocationAction.setSelectedItem(targetActionPath);
- }
- }
- public AddForwardDialogPanel(StrutsConfigDataObject config) {
- this(config,null);
- }
-
- public String validatePanel() {
- if (getForwardName().length()==0)
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyForwardName");
- if (jRadioButtonResFile.isSelected()) {
- String resourceFile = jTextFieldResFile.getText().trim();
- if (resourceFile.length()==0 || resourceFile.equals("/")) //NOI18N
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyResourceFile");
- } else if (jComboBoxFwdAction.getSelectedItem()==null) {
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyAction");
- }
- if (jRadioButtonLocationAction.isSelected() && jComboBoxLocationAction.getSelectedItem()==null) {
- return NbBundle.getMessage(AddActionPanel.class,"MSG_EmptyAction");
- }
- return null;
- }
-
- public AbstractButton[] getStateChangeComponents() {
- return new AbstractButton[] {jRadioButtonResFile, jRadioButtonGlobal};
- }
-
- public JTextComponent[] getDocumentChangeComponents() {
- return new JTextComponent[]{jTextFieldFwdName, jTextFieldResFile};
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- buttonGroup2 = new javax.swing.ButtonGroup();
- jLabelFwdName = new javax.swing.JLabel();
- jTextFieldFwdName = new javax.swing.JTextField();
- jLabelFwdTo = new javax.swing.JLabel();
- jRadioButtonResFile = new javax.swing.JRadioButton();
- jTextFieldResFile = new javax.swing.JTextField();
- jButtonBrowse = new javax.swing.JButton();
- jRadioButtonFwdAction = new javax.swing.JRadioButton();
- jComboBoxFwdAction = new javax.swing.JComboBox();
- jCheckBoxRedirect = new javax.swing.JCheckBox();
- jLabelLocation = new javax.swing.JLabel();
- jRadioButtonGlobal = new javax.swing.JRadioButton();
- jRadioButtonLocationAction = new javax.swing.JRadioButton();
- jComboBoxLocationAction = new javax.swing.JComboBox();
-
- setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 11, 11));
- setLayout(new java.awt.GridBagLayout());
-
- jLabelFwdName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_FwdName").charAt(0));
- jLabelFwdName.setLabelFor(jTextFieldFwdName);
- jLabelFwdName.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_AddFwdDialog_ForwardName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 12);
- add(jLabelFwdName, gridBagConstraints);
-
- jTextFieldFwdName.setColumns(30);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jTextFieldFwdName, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/dialogs/Bundle"); // NOI18N
- jTextFieldFwdName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldFwdName")); // NOI18N
-
- jLabelFwdTo.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_AddFwdDialog_ForwardTo")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelFwdTo, gridBagConstraints);
-
- buttonGroup1.add(jRadioButtonResFile);
- jRadioButtonResFile.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_ResFile").charAt(0));
- jRadioButtonResFile.setSelected(true);
- jRadioButtonResFile.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "RB_ResourceFile")); // NOI18N
- jRadioButtonResFile.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButtonResFile.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButtonResFileItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 12);
- add(jRadioButtonResFile, gridBagConstraints);
- jRadioButtonResFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonResFile_Forward")); // NOI18N
-
- jTextFieldResFile.setColumns(30);
- jTextFieldResFile.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jTextFieldResFile, gridBagConstraints);
- jTextFieldResFile.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_jTextFieldResFile")); // NOI18N
- jTextFieldResFile.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldResFile_F")); // NOI18N
-
- jButtonBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_Browse").charAt(0));
- jButtonBrowse.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_BrowseButton")); // NOI18N
- jButtonBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseActionPerformed(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jButtonBrowse, gridBagConstraints);
- jButtonBrowse.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jButtonBrowse")); // NOI18N
-
- buttonGroup1.add(jRadioButtonFwdAction);
- jRadioButtonFwdAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_FwdAction").charAt(0));
- jRadioButtonFwdAction.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "RB_Action")); // NOI18N
- jRadioButtonFwdAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 12);
- add(jRadioButtonFwdAction, gridBagConstraints);
- jRadioButtonFwdAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonFwdAction")); // NOI18N
-
- jComboBoxFwdAction.setEditable(true);
- jComboBoxFwdAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
- add(jComboBoxFwdAction, gridBagConstraints);
- jComboBoxFwdAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxFwdAction")); // NOI18N
-
- jCheckBoxRedirect.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_Redirect").charAt(0));
- jCheckBoxRedirect.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_AddFwdDialog_Redirect")); // NOI18N
- jCheckBoxRedirect.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
- add(jCheckBoxRedirect, gridBagConstraints);
- jCheckBoxRedirect.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jCheckBoxRedirect")); // NOI18N
-
- jLabelLocation.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_AddFwdDialog_Location")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabelLocation, gridBagConstraints);
-
- buttonGroup2.add(jRadioButtonGlobal);
- jRadioButtonGlobal.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_Global").charAt(0));
- jRadioButtonGlobal.setSelected(true);
- jRadioButtonGlobal.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "LBL_AddFwdDialog_Global")); // NOI18N
- jRadioButtonGlobal.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jRadioButtonGlobal.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- jRadioButtonGlobalItemStateChanged(evt);
- }
- });
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jRadioButtonGlobal, gridBagConstraints);
- jRadioButtonGlobal.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonGlobal")); // NOI18N
-
- buttonGroup2.add(jRadioButtonLocationAction);
- jRadioButtonLocationAction.setMnemonic(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "MNE_AddFwdDialog_LocationAction").charAt(0));
- jRadioButtonLocationAction.setText(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "RB_Action")); // NOI18N
- jRadioButtonLocationAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 12);
- add(jRadioButtonLocationAction, gridBagConstraints);
- jRadioButtonLocationAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jRadioButtonLocationAction")); // NOI18N
-
- jComboBoxLocationAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- add(jComboBoxLocationAction, gridBagConstraints);
- jComboBoxLocationAction.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(AddForwardDialogPanel.class, "ACSN_FAction")); // NOI18N
- jComboBoxLocationAction.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxLocationAction")); // NOI18N
-
- getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_AddForwardDialog")); // NOI18N
- }// //GEN-END:initComponents
-
- private void jRadioButtonGlobalItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonGlobalItemStateChanged
-// TODO add your handling code here:
- jComboBoxLocationAction.setEnabled(!jRadioButtonGlobal.isSelected());
- }//GEN-LAST:event_jRadioButtonGlobalItemStateChanged
-
- private void jRadioButtonResFileItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButtonResFileItemStateChanged
-// TODO add your handling code here:
- boolean selected = jRadioButtonResFile.isSelected();
- jTextFieldResFile.setEditable(selected);
- jButtonBrowse.setEnabled(selected);
- jComboBoxFwdAction.setEnabled(!selected);
- }//GEN-LAST:event_jRadioButtonResFileItemStateChanged
-
- private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed
-// TODO add your handling code here:
- try{
- org.netbeans.api.project.SourceGroup[] groups = StrutsConfigUtilities.getDocBaseGroups(config.getPrimaryFile());
- org.openide.filesystems.FileObject fo = BrowseFolders.showDialog(groups);
- if (fo!=null) {
- String res = "/"+StrutsConfigUtilities.getResourcePath(groups,fo,'/',true);
- jTextFieldResFile.setText(res);
- }
- } catch (java.io.IOException ex) {}
- }//GEN-LAST:event_jButtonBrowseActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.ButtonGroup buttonGroup2;
- private javax.swing.JButton jButtonBrowse;
- private javax.swing.JCheckBox jCheckBoxRedirect;
- private javax.swing.JComboBox jComboBoxFwdAction;
- private javax.swing.JComboBox jComboBoxLocationAction;
- private javax.swing.JLabel jLabelFwdName;
- private javax.swing.JLabel jLabelFwdTo;
- private javax.swing.JLabel jLabelLocation;
- private javax.swing.JRadioButton jRadioButtonFwdAction;
- private javax.swing.JRadioButton jRadioButtonGlobal;
- private javax.swing.JRadioButton jRadioButtonLocationAction;
- private javax.swing.JRadioButton jRadioButtonResFile;
- private javax.swing.JTextField jTextFieldFwdName;
- private javax.swing.JTextField jTextFieldResFile;
- // End of variables declaration//GEN-END:variables
-
- public String getForwardName() {
- return jTextFieldFwdName.getText().trim();
- }
-
- public boolean isGlobal() {
- return jRadioButtonGlobal.isSelected();
- }
-
- public String getRedirect() {
- return (jCheckBoxRedirect.isSelected()?"true":null);
- }
-
- public String getForwardTo() {
- if (jRadioButtonResFile.isSelected()) {
- return jTextFieldResFile.getText().trim();
- } else {
- return StrutsConfigUtilities.getActionAsResource(
- WebModule.getWebModule(config.getPrimaryFile()),
- (String)jComboBoxFwdAction.getSelectedItem());
- }
- }
-
- public String getLocationAction() {
- return (String)jComboBoxLocationAction.getSelectedItem();
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.form
deleted file mode 100644
index 19f44b77a140..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.form
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.java
deleted file mode 100644
index 387021f6aadd..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/BrowseFolders.java
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import java.awt.Dialog;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import javax.swing.JButton;
-import javax.swing.JScrollPane;
-import org.netbeans.api.project.SourceGroup;
-import org.openide.util.NbBundle;
-import org.openide.DialogDescriptor;
-import org.openide.DialogDisplayer;
-import org.openide.explorer.ExplorerManager;
-import org.openide.explorer.view.BeanTreeView;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.loaders.DataFolder;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-import org.openide.nodes.AbstractNode;
-import org.openide.nodes.FilterNode;
-
-// XXX I18N
-
-/**
- *
- * @author phrebejk, mkuchtiak
- */
-public class BrowseFolders extends javax.swing.JPanel implements ExplorerManager.Provider {
-
- private ExplorerManager manager;
- private SourceGroup[] folders;
-
- private static JScrollPane SAMPLE_SCROLL_PANE = new JScrollPane();
-
- /** Creates new form BrowseFolders */
- public BrowseFolders( SourceGroup[] folders) {
- initComponents();
- this.folders = folders;
- manager = new ExplorerManager();
- AbstractNode rootNode = new AbstractNode( new SourceGroupsChildren( folders ) );
- manager.setRootContext( rootNode );
-
- // Create the templates view
- BeanTreeView btv = new BeanTreeView();
- btv.setRootVisible( false );
- btv.setSelectionMode( javax.swing.tree.TreeSelectionModel.SINGLE_TREE_SELECTION );
- btv.setBorder( SAMPLE_SCROLL_PANE.getBorder() );
- btv.getAccessibleContext().setAccessibleDescription(
- NbBundle.getMessage(BrowseFolders.class, "ACSD_SelectFile"));
- folderPanel.add( btv, java.awt.BorderLayout.CENTER );
- }
-
- // ExplorerManager.Provider implementation ---------------------------------
-
- public ExplorerManager getExplorerManager() {
- return manager;
- }
-
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabel1 = new javax.swing.JLabel();
- folderPanel = new javax.swing.JPanel();
-
- setLayout(new java.awt.GridBagLayout());
-
- setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(12, 12, 12, 12)));
- jLabel1.setText(org.openide.util.NbBundle.getMessage(BrowseFolders.class, "LBL_Folders"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 2, 0);
- add(jLabel1, gridBagConstraints);
-
- folderPanel.setLayout(new java.awt.BorderLayout());
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.weighty = 1.0;
- add(folderPanel, gridBagConstraints);
-
- }//GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel folderPanel;
- private javax.swing.JLabel jLabel1;
- // End of variables declaration//GEN-END:variables
-
- public static FileObject showDialog( SourceGroup[] folders ) {
-
- BrowseFolders bf = new BrowseFolders( folders );
-
- JButton options[] = new JButton[] {
- //new JButton( NbBundle.getMessage( BrowseFolders.class, "LBL_BrowseFolders_Select_Option") ), // NOI18N
- //new JButton( NbBundle.getMessage( BrowseFolders.class, "LBL_BrowseFolders_Cancel_Option") ), // NOI18N
- new JButton( NbBundle.getMessage(BrowseFolders.class,"LBL_SelectFile")),
- new JButton( NbBundle.getMessage(BrowseFolders.class,"LBL_Cancel") ),
- };
- options[0].getAccessibleContext().setAccessibleDescription(
- NbBundle.getMessage(BrowseFolders.class, "ACSD_SelectFile"));
- options[1].getAccessibleContext().setAccessibleDescription(
- NbBundle.getMessage(BrowseFolders.class, "ACSD_Cancel"));
-
- OptionsListener optionsListener = new OptionsListener( bf );
-
- options[ 0 ].setActionCommand( OptionsListener.COMMAND_SELECT );
- options[ 0 ].addActionListener( optionsListener );
- options[ 1 ].setActionCommand( OptionsListener.COMMAND_CANCEL );
- options[ 1 ].addActionListener( optionsListener );
-
- DialogDescriptor dialogDescriptor = new DialogDescriptor(
- bf, // innerPane
- NbBundle.getMessage(BrowseFolders.class, "LBL_BrowseFiles"), // displayName
- true, // modal
- options, // options
- options[ 0 ], // initial value
- DialogDescriptor.BOTTOM_ALIGN, // options align
- null, // helpCtx
- null ); // listener
-
- dialogDescriptor.setClosingOptions( new Object[] { options[ 0 ], options[ 1 ] } );
-
- Dialog dialog = DialogDisplayer.getDefault().createDialog( dialogDescriptor );
- dialog.getAccessibleContext().setAccessibleDescription(
- NbBundle.getMessage(BrowseFolders.class, "ACSD_BrowseFoldersDialog"));
- dialog.setVisible(true);
-
- return optionsListener.getResult();
-
- }
-
-
- // Innerclasses ------------------------------------------------------------
-
- /** Children to be used to show FileObjects from given SourceGroups
- */
-
- private final class SourceGroupsChildren extends Children.Keys {
-
- private SourceGroup[] groups;
- private SourceGroup group;
- private FileObject fo;
-
- public SourceGroupsChildren( SourceGroup[] groups ) {
- this.groups = groups;
- }
-
- public SourceGroupsChildren( FileObject fo, SourceGroup group ) {
- this.fo = fo;
- this.group = group;
- }
-
- protected void addNotify() {
- super.addNotify();
- setKeys( getKeys() );
- }
-
- protected void removeNotify() {
- setKeys( Collections.emptySet());
- super.removeNotify();
- }
-
- protected Node[] createNodes(Object key) {
-
- FileObject fObj = null;
- SourceGroup group = null;
- boolean isFile=false;
-
- if ( key instanceof SourceGroup ) {
- fObj = ((SourceGroup)key).getRootFolder();
- group = (SourceGroup)key;
- }
- else if ( key instanceof Key ) {
- fObj = ((Key)key).folder;
- group = ((Key)key).group;
- if (!fObj.isFolder()) isFile=true;
- }
-
- try {
- DataObject dobj = DataObject.find( fObj );
- FilterNode fn = (isFile?new SimpleFilterNode(dobj.getNodeDelegate(),Children.LEAF):
- new SimpleFilterNode(dobj.getNodeDelegate(), new SourceGroupsChildren( fObj, group )));
- if ( key instanceof SourceGroup ) {
- fn.setDisplayName( group.getDisplayName() );
- }
-
- return new Node[] { fn };
- }
- catch ( DataObjectNotFoundException e ) {
- return null;
- }
- }
-
- private Collection getKeys() {
-
- if ( groups != null ) {
- return Arrays.asList( groups );
- }
- else {
- FileObject files[] = fo.getChildren();
- Arrays.sort(files,new BrowseFolders.FileObjectComparator());
- ArrayList children = new ArrayList( files.length );
- /*
- if (BrowseFolders.this.target==org.openide.loaders.DataFolder.class)
- for( int i = 0; i < files.length; i++ ) {
- if ( files[i].isFolder() && group.contains( files[i] ) ) {
- children.add( new Key( files[i], group ) );
- }
- }*/
- //else {
- // add folders
- for( int i = 0; i < files.length; i++ ) {
- if ( group.contains( files[i]) && files[i].isFolder() ) children.add( new Key( files[i], group ) );
- }
- // add files
- for( int i = 0; i < files.length; i++ ) {
- if ( group.contains( files[i]) && !files[i].isFolder() ) children.add( new Key( files[i], group ) );
- }
- //}
-
- return children;
- }
-
- }
-
- private class Key {
-
- private FileObject folder;
- private SourceGroup group;
-
- private Key ( FileObject folder, SourceGroup group ) {
- this.folder = folder;
- this.group = group;
- }
-
-
- }
-
- }
-
- private class FileObjectComparator implements java.util.Comparator {
- public int compare(Object o1, Object o2) {
- FileObject fo1 = (FileObject)o1;
- FileObject fo2 = (FileObject)o2;
- return fo1.getName().compareTo(fo2.getName());
- }
- }
-
- private static final class OptionsListener implements ActionListener {
-
- public static final String COMMAND_SELECT = "SELECT"; //NOI18N
- public static final String COMMAND_CANCEL = "CANCEL"; //NOI18N
-
- private BrowseFolders browsePanel;
-
- private FileObject result;
- //private Class target;
-
- public OptionsListener( BrowseFolders browsePanel ) {
- this.browsePanel = browsePanel;
- }
-
- public void actionPerformed( ActionEvent e ) {
- String command = e.getActionCommand();
-
- if ( COMMAND_SELECT.equals( command ) ) {
- Node selection[] = browsePanel.getExplorerManager().getSelectedNodes();
-
- if ( selection != null && selection.length > 0 ) {
- DataObject dobj = (DataObject)selection[0].getLookup().lookup( DataObject.class );
- //if (dobj!=null && dobj.getClass().isAssignableFrom(target)) {
- result = dobj.getPrimaryFile();
- //}
- /*
- if ( dobj != null ) {
- FileObject fo = dobj.getPrimaryFile();
- if ( fo.isFolder() ) {
- result = fo;
- }
- }
- */
- }
-
-
- }
- }
-
- public FileObject getResult() {
- return result;
- }
- }
-
- class SimpleFilterNode extends FilterNode {
-
- public SimpleFilterNode(org.openide.nodes.Node node, org.openide.nodes.Children children) {
- super(node, children);
-
- }
-
- public org.openide.util.actions.SystemAction[] getActions() {
- return new org.openide.util.actions.SystemAction[]{};
- }
- public org.openide.util.actions.SystemAction getDefaultAction() {
- return null;
- }
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/Bundle.properties b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/Bundle.properties
deleted file mode 100644
index a2c06d7d847f..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/Bundle.properties
+++ /dev/null
@@ -1,333 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# AddFIActionPanel
-ActionType=Action Type\:
-RB_Forward=Forward Action
-RB_Include=Include Action
-LBL_Call=Call\:
-RB_ResourceFile=Resource File\:
-RB_Action=Action\:
-MSG_EmptyResourceFile=Resource File Value is missing.
-MSG_EmptyAction=Action value is missing.
-MSG_DupliciteActionPath=Duplicate Action Path: {0}
-MSG_IncorrectActionPath=Incorrect Action Path: {0}
-RB_ResourceFile_mnem=R
-RB_Action_mnem=A
-RB_Forward_mnem=F
-RB_Include_mnem=I
-
-# AddActionPanel
-MSG_EmptyInputResource=Input Resource Value is missing.
-MSG_EmptyActionClass=Action Class Value is missing.
-MSG_EmptyActionPath=Action Path Value is missing.
-MSG_EmptyFormName=ActionForm Bean Name value is missing.
-LBL_ActionClass=Action Class:
-LBL_ActionPath=Action Path:
-LBL_FormName=ActionForm Bean Name\:
-CB_UseFormBean=Use ActionForm Bean
-RB_InputResource=Input Resource\:
-RB_InputAction=Input Action\:
-CB_Validate=Validate Form Bean
-LBL_Scope=Scope\:
-RB_Sesson=Session
-RB_Request=Request
-LBL_Attribute=Attribute\:
-LBL_Parameter=Parameter\:
-TITLE_StrutsAction=Struts Action
-LBL_ConfigFile=Configuration File\:
-LBL_BrowseButton=Browse...
-LBL_ActionClass_mnem=C
-LBL_ActionPath_mnem=P
-LBL_Browse_mnem=B
-LBL_UseFormBean_mnem=U
-LBL_FormName_mnem=N
-RB_Session_mnem=S
-RB_Request_mnem=R
-CB_Validate_mnem=V
-LBL_Attribute_mnem=A
-LBL_Parameter_mnem=M
-RB_InputResource_mnem=I
-RB_InputAction_mnem=O
-LBL_BrowseButton_mnem=W
-
-# AddDialog
-TTL_ADD=Add {0}
-LBL_Add=Add
-LBL_Help=Help
-
-# The BrowseFolders dialog
-LBL_Folders=Folders\:
-LBL_SelectFile=Select File
-LBL_BrowseFiles=Browse Files
-LBL_Cancel=Cancel
-ACSD_SelectFile=Select File
-ACSD_Cancel=Cancel Select
-ACSD_BrowseFoldersDialog=Select the file in the web module."
-
-# AddForwardDialogPanel
-LBL_AddFwdDialog_ForwardName=Forward Name\:
-LBL_AddFwdDialog_ForwardTo=Forward To\:
-LBL_AddFwdDialog_Redirect=Redirect
-LBL_AddFwdDialog_Location=Location\:
-LBL_AddFwdDialog_Global=Global
-
-MNE_AddFwdDialog_FwdName=N
-MNE_AddFwdDialog_ResFile=F
-MNE_AddFwdDialog_FwdAction=A
-MNE_AddFwdDialog_Browse=B
-MNE_AddFwdDialog_Redirect=R
-MNE_AddFwdDialog_Global=G
-MNE_AddFwdDialog_LocationAction=T
-
-MSG_EmptyForwardName=Forward Name value is missing.
-
-# AddExceptionDialogPanel
-LBL_AddExcDialog_Bundle\ Key=Resource Bundle\:
-LBL_AddExcDialog_ExcKey=Bundle Key\:
-LBL_AddExcDialog_ExcType=Exception Type\:
-LBL_AddExcDialog_Call=Call\:
-LBL_AddExcDialog_Scope=Scope\:
-LBL_AddExcDialog_Session=Session
-LBL_AddExcDialog_Request=Request
-LBL_AddExcDialog_GlobalExc=Global
-LBL_AddExcDialog_ActionExc=Action\:
-
-MNE_AddExcDialog_BundleKey=N
-MNE_AddExcDialog_ExcKey=K
-MNE_AddExcDialog_ExcType=E
-MNE_AddExcDialog_ResFileBrowse=O
-MNE_AddExcDialog_Session=S
-MNE_AddExcDialog_Request=R
-MNE_AddExcDialog_GlobalExc=G
-MNE_AddExcDialog_ActionExc=C
-
-MSG_EmptyExcKey=Exception Key value is missing.
-MSG_EmptyExcType=Exception Type value is missing.
-
-# AddFormBeanPanel
-LBL_FormBeanClass=ActionForm Bean Class\:
-LBL_FormBeanClass_mnem=C
-LBL_DYNAMIC=Dynamic\:
-LBL_DYNAMIC_mnem=D
-MSG_EmptyFormBeanClass=ActionForm Bean Class Value is missing.
-MSG_BeanNameDefined=There is already ActionForm bean with the same name defined.
-
-# AddFornPropertyPanel
-LBL_PropertyName=Property Name:
-LBL_PropertyName_mnem=P
-LBL_PropertyType=Property Type:
-LBL_PropertyType_mnem=T
-LBL_SingleType=Single Property
-LBL_SingleType_mnem=S
-LBL_ArrayType=Array Property
-LBL_ArrayType_mnem=A
-LBL_InitValue=Initial Value:
-LBL_InitValue_mnem=I
-LBL_Size=Size
-LBL_Size_mnem=Z
-MSG_EmptyPropertyName=Property Name Value is missing.
-MSG_EmptyPropertyType=Property Type Value is missing.
-MSG_IncorrectSize=Missing or incorrect Size Value.
-
-LBL_ActionType=Action Type\:
-B_BROWSE=Browse...
-
-ACSD_AddActionDialog=Adding an action to the Struts configuration file.
-ACSD_TFActionClass=The fully-qualified Java class name of the ActionMapping subclass to use for this action mapping object.
-
-ACSD_TFActionPath=The module-relative path of the submitted request, starting \
- with a "/" character, and without the filename extension if \
- extension mapping is used.
-
-ACSD_CBFormName=Name of the form bean, if any, that is associated with this action mapping.
-
-ACSD_TFinputResource=Module-relative path of resource to \
- which control should be returned if a validation error is \
- encountered. Valid only when "name" is specified. Required \
- if "name" is specified and the input bean returns \
- validation errors. Optional if "name" is specified and the \
- input bean does not return validation errors.
-
-ACSD_CBInputAction=Module-relative path of the action \
- which control should be returned if a validation error is \
- encountered. Valid only when "name" is specified. Required \
- if "name" is specified and the input bean returns \
- validation errors. Optional if "name" is specified and the \
- input bean does not return validation errors.
-
-ACSD_TFAttribute=Name of the request-scope or session-scope attribute that \
- is used to access the ActionForm bean, if it is other than \
- the bean's specified "name". Optional if "name" is specified, \
- else not valid.
-
-ACSD_TFParameter=General-purpose configuration parameter that can be used to \
- pass extra information to the Action object selected by \
- this action mapping.
-
-ACSD_CHBValidate=Set to "true" if the validate method of the ActionForm bean \
- should be called prior to calling the Action object for this \
- action mapping, or set to "false" if you do not want the \
- validate method called.
-
-ACSD_Scope=The context ("request" or "session") that is used to \
- access the ActionForm bean, if any. Optional if "name" is \
- specified, else not valid.
-
-ACSD_jButtonBrowseClass=Browse java classes
-
-ACSD_jButtonBrowse=Browse resources in the web module.
-
-ACSD_CHBUseFormBean=Does a form use this action?
-
-ACSD_RBInputResources=As input is other resource then action.
-
-ACSD_RBInputAction=As input is other action.
-
-ACSD_RBSession=Session scope
-
-ACSD_RBRequest=Request scope.
-
-ACSN_TFInputResource=Input Resource
-
-ACSD_jComboBoxBundleKey=Servlet context attribute for the message resources bundle \
- associated with this handler. The default attribute is the \
- value specified by the string constant declared at \
- Globals.MESSAGES_KEY.
-
-ACSD_jTextFieldExcKey=The key to use with this handler's message resource bundle \
- that will retrieve the error message template for this \
- exception.
-
-ACSD_jComboBoxExcType=Fully-qualified Java class name of the exception type to register with this handler.
-
-ACSD_jTextFieldResFile=The module-relative URI to the resource that will complete \
- the request/response if this exception occurs.
-
-ACSD_jComboBoxCallAction=The module-relative URI to the action that will complete \
- the request/response if this exception occurs.
-
-ACSD_jRadioButtonSession=Session scope
-
-ACSD_jRadioButtonReques=Request scope
-
-ACSD_jRadioButtonGlobalExc=This exception definition is global
-
-ACSD_jRadioButtonActionExc=This exception is defined only for selected action.
-
-ACSD_jComboBoxActionExc=Select an action, for which the action is defined.
-
-ACSD_jButtonExcType=Find the fully qualified Java class name
-
-ACSD_jRadioButtonCallAction=The resource that will complete the request/response is an action.
-
-ACSD_jRadioButtonResFile=The resource that will complete the request/response is not an action.
-
-ACSD_AddExceptionDialogPanel=Add Exception Definition
-ACSN_jTextFieldResFile=Resource File
-
-ACSD_jTextFieldPath=The module-relative path of the submitted request, starting \
- with a "/" character, and without the filename extension if \
- extension mapping is used.
-
-ACSD_rbForwardAction=Create Forward Action
-
-ACSD_rbIncudeAction=Create Include Action
-
-ACSD_rbResourceFile=As input is other resource then action.
-
-ACSD_rbResourceFile2=Call Resource File
-
-ACSD_rbAction=Call Action
-
-ACSD_tResourceFile=Resource File
-
-ACSD_cbAction=Select an action
-
-ACSD_bBrowse=Browse resource files.
-
-ACSD_AddFIActionPanel=Add Forward or Input Action Definition
-ACSD_TFFormName=The unique identifier for this form bean. Referenced by the \
- element to specify which form bean to use with its request.
-
-ACSD_TFBeanClass=The configuration bean for this form bean object. If \
- specified, the object must be a subclass of the default \
- configuration bean.
-
-ACSD_jRadioButton2=Create Dynamic Form
-
-ACSD_jRadioButton1=Form Bean Class
-ACSD_CVBDynamic=Dynamic form has to be DynaActionForm or a subclass of DynaActionForm.
-
-ACSD_AddFormBeanPanel=Add Form Bean Definition
-
-ACSN_TFBeanClass=Form Bean Class
-
-ACSD_AddFormPropertyPanel=Add Form Property Definition
-
-ACSD_jComboBoxFormName=Select from already defined forms.
-
-ACSD_jTextFieldPropertyName=The name of the JavaBean property described by this element.
-
-ACSD_jComboBoxPropertyType=Fully-qualified Java class name of the field underlying this property.
-
-ACSD_jbBrowseClass=Browse Java classes
-
-ACSD_jRadioButtonSingle=The property is single.
-
-ACSD_jTextFieldInitValue=String representation of the initial value for this property.
-
-ACSD_jRadioButtonArray=The property is array.
-
-ACSD_jTextFieldSize=Size of the array.
-
-ACSM_BrowseClasses=B
-
-ACSD_jTextFieldFwdName=The unique identifier for this forward. Referenced by the \
- Action object at runtime to select - by its logical name - \
- the resource that should complete the request/response.
-
-ACSD_jRadioButtonResFile_Forward=Forward to resource file.
-
-ACSD_jRadioButtonFwdAction=Forward to Action
-
-ACSD_jTextFieldResFile_F=The module-relative or context-relative path to the resources \
- that is encapsulated by the logical name of this ActionForward.
-
-ACSD_jComboBoxFwdAction=Select an action from the list.
-
-ACSD_jRadioButtonGlobal=The Forward is defined in the global section.
-
-ACSD_jRadioButtonLocationAction=The Forward is defined for an action.
-
-ACSD_jComboBoxLocationAction=Select an Action from the list.
-
-ACSD_AddForwardDialog=Add Forward Definition
-
-ACSD_jCheckBoxRedirect=Set to "true" if a redirect instruction should be issued to \
- the user-agent so that a new request is issued for this \
- forward's resource. If true, RequestDispatcher.Redirect is \
- called. If "false", RequestDispatcher.forward is called instead.
-
-ACSN_TFInputAction=Input Action
-
-ACSN_FIAction=Select an action
-
-ACSN_FAction=Select an action
-
-ACSN_EDAction=Select an action
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/ValidatingPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/ValidatingPanel.java
deleted file mode 100644
index d0d3ded0712e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/dialogs/ValidatingPanel.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.dialogs;
-
-import javax.swing.AbstractButton;
-import javax.swing.text.JTextComponent;
-
-/**
- * ValidatingPanel.java
- *
- * @author mkuchtiak
- */
-public interface ValidatingPanel {
-
- /** Returns error message or null according to component values
- * @return error message or null (if values are correct)
- */
- public String validatePanel();
-
- /** Returns the array of components (radio buttons, check boxes) whose state-change can influence
- * the data correctness
- */
- public AbstractButton[] getStateChangeComponents();
-
- /** Returns the array of text components (text fields, text areas) whose document-change can influence
- * the data correctness
- */
- public JTextComponent[] getDocumentChangeComponents();
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/Bundle.properties b/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/Bundle.properties
deleted file mode 100644
index 649a630e89bf..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/Bundle.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
- #
-
-# Sample ResourceBundle properties file
-org-netbeans-modules-web-struts-editor-StrutsPopupAction.instance=Struts
-add-form-bean-action=Add ActionForm Bean
-add-forward-include-action-action=Add Forward/Include Action
-add-action-action=Add Action
-add-forward-action=Add Forward
-add-exception-action=Add Exception
-add-form-property-action=Add ActionForm Bean Property
-
-#Hyperlink
-goto_formbean_not_found=ActionForm Bean {0} not found.
-
-# StrutsPopupAction
-TTL_Forward-Include=Forward/Include Action
-TTL_AddAction=Action
-TTL_AddFormBean=ActionForm Bean
-TTL_AddException=Exception
-TTL_AddFormProperty=ActionForm Bean Property
-TTL_AddForward=Forward
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsConfigHyperlinkProvider.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsConfigHyperlinkProvider.java
deleted file mode 100644
index a0b59c05ceeb..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsConfigHyperlinkProvider.java
+++ /dev/null
@@ -1,433 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.modules.web.struts.editor;
-
-import java.awt.Toolkit;
-import java.io.IOException;
-import java.util.Hashtable;
-import java.util.Map;
-import java.util.concurrent.atomic.AtomicBoolean;
-
-import javax.lang.model.element.TypeElement;
-import javax.swing.text.BadLocationException;
-import javax.swing.text.JTextComponent;
-import org.netbeans.api.java.source.*;
-import org.netbeans.api.java.source.ui.ElementOpen;
-import org.netbeans.api.java.source.ui.ScanDialog;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.editor.TokenItem;
-import org.netbeans.editor.Utilities;
-import org.netbeans.editor.ext.ExtSyntaxSupport;
-//import org.netbeans.jmi.javamodel.JavaClass;
-import org.netbeans.lib.editor.hyperlink.spi.HyperlinkProvider;
-import org.netbeans.modules.editor.NbEditorUtilities;
-//import org.netbeans.modules.editor.java.JMIUtils;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.openide.awt.StatusDisplayer;
-import org.openide.cookies.OpenCookie;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.nodes.Node;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author petr
- */
-public class StrutsConfigHyperlinkProvider implements HyperlinkProvider {
-
- private static boolean debug = false;
- private static Map hyperlinkTable;
-
- private final int JAVA_CLASS = 0;
- private final int FORM_NAME = 1;
- private final int RESOURCE_PATH = 2;
-
- {
- hyperlinkTable = new Hashtable<>();
- hyperlinkTable.put("data-source#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("data-source#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("form-beans#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("form-bean#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("form-bean#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("form-property#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("form-property#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("exception#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("exception#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("exception#handler", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("exception#path", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("global-forwards#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("forward#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("forward#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("forward#path", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("action-mappings#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("action#name", new Integer(FORM_NAME)); //NOI18N
- hyperlinkTable.put("action#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("action#type", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("action#forward", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("action#include", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("action#input", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("action#path", new Integer(RESOURCE_PATH)); //NOI18N
- hyperlinkTable.put("controller#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("controller#processorClass", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("controller#multipartClass", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("message-resources#className", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("message-resources#factory", new Integer(JAVA_CLASS)); //NOI18N
- hyperlinkTable.put("plug-in#className", new Integer(JAVA_CLASS)); //NOI18N
- }
-
- private int valueOffset;
- private String [] eav = null;
- /** Creates a new instance of StrutsHyperlinkProvider */
- public StrutsConfigHyperlinkProvider() {
- }
-
- public int[] getHyperlinkSpan(javax.swing.text.Document doc, int offset) {
- if (debug) debug(":: getHyperlinkSpan");
- if (eav != null){
- return new int []{valueOffset, valueOffset + eav[2].length()};
- }
- return null;
- }
-
- public boolean isHyperlinkPoint(javax.swing.text.Document doc, int offset) {
- if (debug) debug(":: isHyperlinkSpan - offset: " + offset); //NOI18N
-
- // PENDING - this check should be removed, when
- // the issue #61704 is solved.
- DataObject dObject = NbEditorUtilities.getDataObject(doc);
- if (! (dObject instanceof StrutsConfigDataObject))
- return false;
-
- eav = getElementAttrValue(doc, offset);
- if (eav != null){
- if (hyperlinkTable.get(eav[0]+"#"+eav[1])!= null)
- return true;
- }
- return false;
- }
-
- public void performClickAction(javax.swing.text.Document doc, int offset) {
- if (debug) debug(":: performClickAction");
- if (hyperlinkTable.get(eav[0]+"#"+eav[1])!= null){
- int type = ((Integer)hyperlinkTable.get(eav[0]+"#"+eav[1]));
- switch (type){
- case JAVA_CLASS: findJavaClass(eav[2], doc); break;
- case FORM_NAME: findForm(eav[2], (BaseDocument)doc);break;
- case RESOURCE_PATH: findResourcePath(eav[2], (BaseDocument)doc);break;
- }
- }
- }
-
- static void debug(String message){
- System.out.println("StrutsHyperlinkProvider: " + message); //NoI18N
- }
- /** This method finds the value for an attribute of element of on the offset.
- * @return Returns null, when the offset is not a value of an attribute. If the there is value
- * of an attribute, then returns String array [element, attribute, value].
- */
- private String[] getElementAttrValue(javax.swing.text.Document doc, int offset){
- String attribute = null;
- String tag = null;
- String value = null;
-
- try {
- BaseDocument bdoc = (BaseDocument) doc;
- JTextComponent target = Utilities.getFocusedComponent();
-
- if (target == null || target.getDocument() != bdoc)
- return null;
-
- ExtSyntaxSupport sup = (ExtSyntaxSupport)bdoc.getSyntaxSupport();
- //TokenID tokenID = sup.getTokenID(offset);
- TokenItem token = sup.getTokenChain(offset, offset+1);
- //if (debug) debug ("token: " +token.getTokenID().getNumericID() + ":" + token.getTokenID().getName());
- // when it's not a value -> do nothing.
- if (token == null || token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ATTRIBUTE_VALUE)
- return null;
- value = token.getImage();
- if (value != null){
- // value = value.substring(0, offset - token.getOffset());
- //if (debug) debug ("value to cursor: " + value);
- value = value.trim();
- valueOffset = token.getOffset();
- if (value.charAt(0) == '"') {
- value = value.substring(1);
- valueOffset ++;
- }
-
- if (value.length() > 0 && value.charAt(value.length()-1) == '"') value = value.substring(0, value.length()-1);
- value = value.trim();
- //if (debug) debug ("value: " + value);
- }
-
- //if (debug) debug ("Token: " + token);
- // Find attribute and tag
- // 5 - attribute
- // 4 - tag
- while(token != null && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ATTRIBUTE
- && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT)
- token = token.getPrevious();
- if (token != null && token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ATTRIBUTE){
- attribute = token.getImage();
- while(token != null && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT)
- token = token.getPrevious();
- if (token != null && token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ELEMENT)
- tag = token.getImage();
- }
- if (attribute == null || tag == null)
- return null;
- tag = tag.substring(1);
- if (debug) debug("element: " + tag ); // NOI18N
- if (debug) debug("attribute: " + attribute ); //NOI18N
- if (debug) debug("value: " + value ); //NOI18N
- return new String[]{tag, attribute, value};
- } catch (BadLocationException e) {
- }
- return null;
- }
-
- @NbBundle.Messages("title.go.to.class.action=Searching Class")
- private void findJavaClass(final String fqn, javax.swing.text.Document doc) {
- FileObject fo = NbEditorUtilities.getFileObject(doc);
- if (fo != null) {
- WebModule wm = WebModule.getWebModule(fo);
- if (wm != null) {
- ClasspathInfo cpi = ClasspathInfo.create(wm.getDocumentBase());
- ClassSeekerTask classSeekerTask = new ClassSeekerTask(cpi, fqn);
- runClassSeekerUserTask(classSeekerTask);
- if (!classSeekerTask.wasElementFound() && SourceUtils.isScanInProgress()) {
- ScanDialog.runWhenScanFinished(classSeekerTask, Bundle.title_go_to_class_action());
- }
- }
- }
- }
-
- @NbBundle.Messages({
- "lbl.goto.formbean.not.found=ActionForm Bean {0} not found."
- })
- private void findForm(String name, BaseDocument doc){
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
-
- int offset = findDefinitionInSection(sup, "form-beans", "form-bean", "name", name);
- if (offset > 0){
- JTextComponent target = Utilities.getFocusedComponent();
- target.setCaretPosition(offset);
- } else {
- StatusDisplayer.getDefault().setStatusText(Bundle.lbl_goto_formbean_not_found(name));
- }
- }
-
- private void findResourcePath(String path, BaseDocument doc){
- path = path.trim();
- if (debug) debug("path: " + path);
- if (path.indexOf('?') > 0){
- // remove query from the path
- path = path.substring(0, path.indexOf('?'));
- }
- WebModule wm = WebModule.getWebModule(NbEditorUtilities.getFileObject(doc));
- if (wm != null){
- FileObject docBase= wm.getDocumentBase();
- FileObject fo = docBase.getFileObject(path);
- if (fo == null){
- // maybe an action
- String servletMapping = StrutsConfigUtilities.getActionServletMapping(wm.getDeploymentDescriptor());
- if (servletMapping != null){
- String actionPath = null;
- if (servletMapping != null && servletMapping.lastIndexOf('.')>0){
- // the mapping is in *.xx way
- String extension = servletMapping.substring(servletMapping.lastIndexOf('.'));
- if (path.endsWith(extension))
- actionPath = path.substring(0, path.length()-extension.length());
- else
- actionPath = path;
- } else{
- // the mapping is /xx/* way
- servletMapping = servletMapping.trim();
- String prefix = servletMapping.substring(0, servletMapping.length()-2);
- if (path.startsWith(prefix))
- actionPath = path.substring(prefix.length());
- else
- actionPath = path;
- }
- if (debug) debug(" actionPath: " + actionPath);
- if(actionPath != null){
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
- int offset = findDefinitionInSection(sup, "action-mappings","action","path", actionPath);
- if (offset > 0){
- JTextComponent target = Utilities.getFocusedComponent();
- target.setCaretPosition(offset);
- }
- }
- }
- } else
- openInEditor(fo);
- }
- }
-
- private int findDefinitionInSection(ExtSyntaxSupport sup, String section, String tag, String attribute, String value){
- TokenItem token;
- String startSection = "<"+ section;
- String endSection = "" + section;
- String element = "<" + tag;
- String attributeValue = "\""+ value + "\"";
- int tagOffset = 0;
- try{
- token = sup.getTokenChain(0, 1);
- //find section
- while (token != null
- && !(token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ELEMENT
- && token.getImage().equals(startSection))){
- token = token.getNext();
- }
- if (token != null && token.getImage().equals(startSection)){
- //find out, whether the section is empty
- token = token.getNext();
- while (token != null
- && (token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT
- || token.getImage().equals(">")))
- token = token.getNext();
- if(token.getImage().equals("/>") || token.getImage().equals(endSection))
- //section is empty
- return -1;
- while(token != null
- && !(token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ELEMENT
- && token.getImage().equals(endSection))){
- //find tag
- while (token != null
- && (token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT
- || (!token.getImage().equals(endSection)
- && !token.getImage().equals(element))) )
- token = token.getNext();
- if (token == null) return -1;
- tagOffset = token.getOffset();
- if (token.getImage().equals(element)){
- //find attribute
- token = token.getNext();
- while (token != null
- && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT
- && !(token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ATTRIBUTE
- && token.getImage().equals(attribute)))
- token = token.getNext();
- if (token == null) return -1;
- if (token.getImage().equals(attribute)){
- //find value
- token = token.getNext();
- while (token != null
- && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ATTRIBUTE_VALUE
- && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ELEMENT
- && token.getTokenID().getNumericID() != StrutsEditorUtilities.XML_ATTRIBUTE)
- token = token.getNext();
- if (token.getImage().equals(attributeValue))
- return tagOffset;
- }
- } else
- token = token.getNext();
- }
- }
- } catch (BadLocationException e){
- e.printStackTrace(System.out);
- }
- return -1;
- }
-
- private void openInEditor(FileObject fObj){
- if (fObj != null){
- DataObject dobj = null;
- try{
- dobj = DataObject.find(fObj);
- } catch (DataObjectNotFoundException e){
- Exceptions.printStackTrace(e);
- return;
- }
- if (dobj != null){
- Node.Cookie cookie = dobj.getCookie(OpenCookie.class);
- if (cookie != null)
- ((OpenCookie)cookie).open();
- }
- }
- }
-
- private void runClassSeekerUserTask(ClassSeekerTask csTask) {
- JavaSource js = JavaSource.create(csTask.getClasspathInfo());
- if (js != null) {
- try {
- js.runUserActionTask(csTask, true);
- } catch (IOException ex) {
- Exceptions.printStackTrace(ex);
- }
- }
- }
-
- private class ClassSeekerTask implements Runnable, CancellableTask {
-
- private final AtomicBoolean elementFound = new AtomicBoolean(false);
- private final ClasspathInfo cpi;
- private final String fqn;
-
- public ClassSeekerTask(ClasspathInfo cpi, String fqn) {
- this.cpi = cpi;
- this.fqn = fqn;
- }
-
- public ClasspathInfo getClasspathInfo() {
- return cpi;
- }
-
- public boolean wasElementFound() {
- return elementFound.get();
- }
-
- @Override
- public void run() {
- runClassSeekerUserTask(this);
- }
-
- @Override
- public void cancel() {
- }
-
- @NbBundle.Messages({
- "lbl.goto.source.not.found=Source file for {0} not found.",
- "lbl.class.not.found=Class {0} not found."
- })
- @Override
- public void run(CompilationController cc) throws Exception {
- cc.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
- TypeElement element = cc.getElements().getTypeElement(fqn.trim());
- if (element != null) {
- elementFound.set(true);
- if (!ElementOpen.open(cpi, element)) {
- StatusDisplayer.getDefault().setStatusText(Bundle.lbl_goto_source_not_found(fqn));
- Toolkit.getDefaultToolkit().beep();
- }
- } else {
- if (!SourceUtils.isScanInProgress()) {
- StatusDisplayer.getDefault().setStatusText(Bundle.lbl_class_not_found(fqn));
- Toolkit.getDefaultToolkit().beep();
- }
- }
- }
-
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilities.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilities.java
deleted file mode 100644
index dd7d48a6c0cf..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilities.java
+++ /dev/null
@@ -1,415 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.editor;
-
-
-import java.io.IOException;
-import java.io.StringWriter;
-import javax.swing.text.BadLocationException;
-import javax.swing.text.Position;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.editor.TokenItem;
-import org.netbeans.editor.ext.ExtSyntaxSupport;
-import org.netbeans.modules.editor.indent.api.Indent;
-import org.netbeans.modules.editor.indent.api.Reformat;
-import org.netbeans.modules.schema2beans.BaseBean;
-import org.netbeans.modules.web.struts.config.model.FormProperty;
-import org.netbeans.modules.web.struts.config.model.Forward;
-import org.netbeans.modules.web.struts.config.model.StrutsException;
-import org.openide.util.Exceptions;
-
-/**
- *
- * @author Petr Pisl
- */
-
-public class StrutsEditorUtilities {
-
- /** The constant from XML editor
- */
- protected static int XML_ATTRIBUTE = 5;
- protected static int XML_ELEMENT = 4;
- protected static int XML_ATTRIBUTE_VALUE = 7;
-
- public static String END_LINE = System.getProperty("line.separator"); //NOI18N
-
-
- /** Returns the value of the path attribute, when there is an action
- * definition on the offset possition. Otherwise returns null.
- */
- public static String getActionPath(BaseDocument doc, int offset){
- try {
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
- TokenItem token = sup.getTokenChain(offset, offset+1);
- // find the element, which is on the offset
- while (token != null
- && !(token.getTokenID().getNumericID() == StrutsEditorUtilities.XML_ELEMENT
- && !( token.getImage().equals("/>")
- || token.getImage().equals(">")
- || token.getImage().equals("")
- || token.getImage().equals(">")
- || token.getImage().equals(" 0 && token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals("<"+father))); //NOI18N
- if (token != null && token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals("<"+father)){ //NOI18N
- token = token.getNext();
- // find the /> or >
- while (token != null && token.getTokenID().getNumericID() != XML_ELEMENT )
- token = token.getNext();
- if (token != null && token.getImage().equals("/>")){ //NOI18N
- StringBuffer text = new StringBuffer();
- offset = token.getOffset();
- text.append(">"); //NOI18N
- text.append(END_LINE);
- text.append(addNewLines(bean));
- text.append(END_LINE);
- text.append(""); text.append(father); text.append(">"); //NOI18N
- Reformat fmt = Reformat.get(doc);
- fmt.lock();
- try {
- doc.atomicLock();
- try{
- doc.remove(offset, 2);
- doc.insertString(offset, text.toString(), null);
- Position endPos = doc.createPosition(offset + text.length() - 1);
- fmt.reformat(offset, endPos.getOffset());
- offset += Math.max(0, endPos.getOffset() - offset);
- possition = offset;
- }
- finally{
- doc.atomicUnlock();
- }
- } finally {
- fmt.unlock();
- }
- }
- if (token != null && token.getImage().equals(">")){ //NOI18N
- offset = -1;
- while (token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals(""+father))){ //NOI18N
- while(token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && (token.getImage().equals("<"+element) //NOI18N
- || token.getImage().equals(""+father)))) //NOI18N
- token = token.getNext();
- if (token != null && token.getImage().equals("<"+element)){ //NOI18N
- while (token!= null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && (token.getImage().equals("/>") //NOI18N
- || token.getImage().equals(""+element)))) //NOI18N
- token = token.getNext();
- if (token != null && token.getImage().equals(""+element)) //NOI18N
- while (token!= null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals(">"))) //NOI18N
- token = token.getNext();
- if (token != null )
- offset = token.getOffset() + token.getImage().length()-1;
- }
- if (token != null && token.getImage().equals(""+father) && offset == -1){ //NOI18N
- while (token!= null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && (token.getImage().equals("/>") //NOI18N
- || token.getImage().equals(">")))) //NOI18N
- token = token.getPrevious();
- offset = token.getOffset()+token.getImage().length()-1;
- }
- }
- if (offset > 0)
- possition = writeString(doc, addNewLines(bean), offset);
- }
- }
-
- } catch (BadLocationException ex) {
- Exceptions.printStackTrace(ex);
- }
- return possition;
- }
-
- public static int writeBean(BaseDocument doc, BaseBean bean, String element, String section) throws IOException{
- int possition = -1;
- boolean addroot = false;
- boolean addsection = false;
- String sBean = addNewLines(bean);
- StringBuffer appendText = new StringBuffer();
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
- TokenItem token;
- int offset;
- try {
- String docText = doc.getText(0, doc.getLength());
- //Check whether there is root element
- String findString = "" + element; //NOI18N
-
- //find index of last definition
- offset = docText.lastIndexOf(findString);
- if (offset == -1){
- if ((offset = findEndOfElement(doc, "struts-config")) == -1){ //NOI18N
- offset = doc.getLength();
- appendText = new StringBuffer();
- appendText.append(""); //NOI18N
- appendText.append(END_LINE);
- if (section != null && section.length()>0 ){
- appendText.append("<"+section+">"); //NOI18N
- appendText.append(END_LINE);
- appendText.append(sBean);
- appendText.append(END_LINE);
- appendText.append(""+section+">"); //NOI18N
- }
- else{
- appendText.append(sBean);
- }
- appendText.append(END_LINE);
- appendText.append(""); //NOI18N
- appendText.append(END_LINE);
- possition = writeString(doc, appendText.toString(), offset);
- }
- else{
- if (section != null && section.length()>0){
- int offsetSection;
- if ((offsetSection = findEndOfElement(doc, section)) == -1){
- appendText.append("<"+section+">"); //NOI18N
- appendText.append(END_LINE);
- appendText.append(sBean);
- appendText.append(END_LINE);
- appendText.append(""+section+">"); //NOI18N
- }
- else {
- appendText.append(sBean);
- offset = offsetSection;
- }
- }
- else
- appendText.append(sBean);
- token = sup.getTokenChain(offset, offset+1);
- if (token != null) token = token.getPrevious();
- while (token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals(">"))) //NOI18N
- token = token.getPrevious();
- if (token != null)
- offset = token.getOffset();
- possition=writeString(doc, appendText.toString(), offset);
- }
- }
- else{
- token = sup.getTokenChain(offset, offset+1);
- if (token != null && token.getTokenID().getNumericID() == XML_ELEMENT){
- while (token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals(">"))) //NOI18N
- token = token.getPrevious();
- if (token != null)
- possition = writeString(doc, sBean, token.getOffset());
- }
- }
- } catch (BadLocationException ex) {
- Exceptions.printStackTrace(ex);
- }
- return possition;
- }
-
- private static String addNewLines(final BaseBean bean) throws IOException {
- StringWriter sWriter = new StringWriter();
- bean.writeNode(sWriter);
- return sWriter.toString().replace("><", ">"+END_LINE+"<"); //NOI18N
- }
-
- private static int writeString(BaseDocument doc, String text, int offset) throws BadLocationException {
- int formatLength = 0;
- Indent indent = Indent.get(doc);
- Reformat fmt = Reformat.get(doc);
- indent.lock();
- try {
- fmt.lock();
- try {
- doc.atomicLock();
- try{
- offset = indent.indentNewLine(offset + 1);
- doc.insertString(Math.min(offset, doc.getLength()), text, null );
- Position endPos = doc.createPosition(offset + text.length() - 1);
- fmt.reformat(offset, endPos.getOffset());
- formatLength = Math.max(0, endPos.getOffset() - offset);
- }
- finally{
- doc.atomicUnlock();
- }
- } finally {
- fmt.unlock();
- }
- } finally {
- indent.unlock();
- }
- return Math.min(offset + formatLength + 1, doc.getLength());
- }
-
- private static int findStartOfElement(BaseDocument doc, String element) throws BadLocationException{
- String docText = doc.getText(0, doc.getLength());
- int offset = doc.getText(0, doc.getLength()).indexOf("<" + element); //NOI18N
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
- TokenItem token;
- while (offset > 0){
- token = sup.getTokenChain(offset, offset+1);
- if (token != null && token.getTokenID().getNumericID() == XML_ELEMENT)
- return token.getOffset();
- offset = doc.getText(0, doc.getLength()).indexOf("<" + element); //NOI18N
- }
- return -1;
- }
-
- private static int findEndOfElement(BaseDocument doc, String element) throws BadLocationException{
- String docText = doc.getText(0, doc.getLength());
- int offset = doc.getText(0, doc.getLength()).indexOf("" + element); //NOI18N
- ExtSyntaxSupport sup = (ExtSyntaxSupport)doc.getSyntaxSupport();
- TokenItem token;
- while (offset > 0){
- token = sup.getTokenChain(offset, offset+1);
- if (token != null && token.getTokenID().getNumericID() == XML_ELEMENT){
- offset = token.getOffset();
- token = token.getNext();
- while (token != null
- && !(token.getTokenID().getNumericID() == XML_ELEMENT
- && token.getImage().equals(">"))) //NOI18N
- token = token.getNext();
- if (token != null)
- offset = token.getOffset();
- return offset;
- }
- offset = doc.getText(0, doc.getLength()).indexOf("" + element); //NOI18N
- }
- return -1;
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsPopupAction.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsPopupAction.java
deleted file mode 100644
index a0e2e2a04230..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/editor/StrutsPopupAction.java
+++ /dev/null
@@ -1,408 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.modules.web.struts.editor;
-
-import java.awt.event.ActionEvent;
-import java.util.ArrayList;
-import javax.swing.JMenu;
-import javax.swing.JPopupMenu;
-import javax.swing.JSeparator;
-import javax.swing.text.Document;
-import javax.swing.text.JTextComponent;
-import org.netbeans.editor.BaseAction;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.modules.editor.NbEditorUtilities;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.netbeans.modules.web.struts.config.model.ActionMappings;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.netbeans.modules.web.struts.config.model.FormBeans;
-import org.netbeans.modules.web.struts.config.model.FormProperty;
-import org.netbeans.modules.web.struts.config.model.Forward;
-import org.netbeans.modules.web.struts.config.model.GlobalExceptions;
-import org.netbeans.modules.web.struts.config.model.GlobalForwards;
-import org.netbeans.modules.web.struts.config.model.StrutsConfig;
-import org.netbeans.modules.web.struts.config.model.StrutsException;
-import org.netbeans.modules.web.struts.dialogs.AddDialog;
-import org.netbeans.modules.web.struts.dialogs.AddExceptionDialogPanel;
-import org.netbeans.modules.web.struts.dialogs.AddFIActionPanel;
-import org.netbeans.modules.web.struts.dialogs.AddActionPanel;
-import org.netbeans.modules.web.struts.dialogs.AddFormBeanPanel;
-import org.netbeans.modules.web.struts.dialogs.AddFormPropertyPanel;
-import org.netbeans.modules.web.struts.dialogs.AddForwardDialogPanel;
-import org.openide.loaders.DataObject;
-import org.openide.util.Exceptions;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.Presenter;
-import org.openide.util.actions.SystemAction;
-
-
-/**
- *
- * @author Petr Pisl
- */
-public final class StrutsPopupAction extends SystemAction implements Presenter.Popup {
-
- private ArrayList actions = null;
-
- public String getName() {
- return NbBundle.getMessage(StrutsPopupAction.class, "org-netbeans-modules-web-struts-editor-StrutsPopupAction.instance"); // NOI18N
- }
-
- public void actionPerformed(ActionEvent ev) {
- // do nothing - should never be called
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- public javax.swing.JMenuItem getPopupPresenter() {
- return new SubMenu(getName());
- }
-
- public class SubMenu extends JMenu {
-
- public SubMenu(String s){
- super(s);
- }
-
- /** Gets popup menu. Overrides superclass. Adds lazy menu items creation. */
- public JPopupMenu getPopupMenu() {
- JPopupMenu pm = super.getPopupMenu();
- pm.removeAll();
- pm.add(new AddActionAction());
- pm.add(new AddForwardInlcudeAction());
- pm.add(new AddForwardAction());
- pm.add(new AddExceptionAction());
- pm.add(new JSeparator());
- pm.add(new AddFormBeanAction());
- pm.add(new AddFormPropertyAction());
- pm.pack();
- return pm;
- }
- }
-
- public static class AddFormBeanAction extends BaseAction{
- public AddFormBeanAction(){
- super(NbBundle.getBundle(StrutsPopupAction.class).getString("add-form-bean-action")); //NOI18N
- }
-
- public void actionPerformed(ActionEvent evt, JTextComponent target) {
- Document doc = target.getDocument();
- DataObject data = NbEditorUtilities.getDataObject(doc);
- AddFormBeanPanel dialogPanel = new AddFormBeanPanel((StrutsConfigDataObject)data);
- AddDialog dialog = new AddDialog(dialogPanel,
- NbBundle.getMessage(StrutsPopupAction.class,"TTL_AddFormBean"), //NOI18N
- new HelpCtx(AddFormBeanPanel.class));
- dialog.disableAdd(); // disable Add button
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- if (dialog.getValue().equals(dialog.ADD_OPTION)) {
- //TODO:implement action
- try {
- StrutsConfig config = ((StrutsConfigDataObject)data).getStrutsConfig();
- if (config==null) return; //TODO:inform that XML file is corrupted
- FormBeans beans = config.getFormBeans();
- if (beans==null) {
- beans = new FormBeans();
- config.setFormBeans(beans);
- }
- FormBean bean = new FormBean();
- bean.setAttributeValue("type",dialogPanel.getFormBeanClass()); //NOI18N
- bean.setAttributeValue("name",dialogPanel.getFormName()); //NOI18N
- beans.addFormBean(bean);
- //((StrutsConfigDataObject)data).write(config);
- target.setCaretPosition(StrutsEditorUtilities.writeBean((BaseDocument)doc, bean, "form-bean", "form-beans")); //NOI18N
- } catch (java.io.IOException ex) {
- Exceptions.printStackTrace(ex);
- }
- }
-
- }
- }
-
- public static class AddActionAction extends BaseAction {
- public AddActionAction(){
- super(NbBundle.getBundle(StrutsPopupAction.class).getString("add-action-action")); //NOI18N
- }
-
- public void actionPerformed(ActionEvent evt, JTextComponent target) {
- Document doc = target.getDocument();
- DataObject data = NbEditorUtilities.getDataObject(doc);
- AddActionPanel dialogPanel = new AddActionPanel((StrutsConfigDataObject)data);
- AddDialog dialog = new AddDialog(dialogPanel,
- NbBundle.getMessage(StrutsPopupAction.class,"TTL_AddAction"), //NOI18N
- new HelpCtx(AddActionPanel.class));
- dialog.disableAdd(); // disable Add button
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- if (dialog.getValue().equals(dialog.ADD_OPTION)) {
- //TODO:implement action
- try {
- StrutsConfig config = ((StrutsConfigDataObject)data).getStrutsConfig();
- if (config==null) return; //TODO:inform that XML file is corrupted
- ActionMappings mappings = config.getActionMappings();
- if (mappings==null) {
- mappings = new ActionMappings();
- config.setActionMappings(mappings);
- }
- Action action = new Action();
- action.setAttributeValue("type",dialogPanel.getActionClass()); //NOI18N
- action.setAttributeValue("path",dialogPanel.getActionPath()); //NOI18N
- if (dialogPanel.isActionFormUsed()){
- action.setAttributeValue("name",dialogPanel.getFormName()); //NOI18N
- action.setAttributeValue("input",dialogPanel.getInput()); //NOI18N
- action.setAttributeValue("validate",dialogPanel.getValidate()); //NOI18N
- action.setAttributeValue("scope",dialogPanel.getScope()); //NOI18N
- action.setAttributeValue("attribute",dialogPanel.getAttribute()); //NOI18N
- }
- action.setAttributeValue("parameter",dialogPanel.getParameter()); //NOI18N
- mappings.addAction(action);
- target.setCaretPosition(StrutsEditorUtilities.writeBean((BaseDocument)doc, action, "action", "action-mappings")); //NOI18N
- } catch (java.io.IOException ex) {}
- }
- }
- }
-
- public static class AddForwardInlcudeAction extends BaseAction {
- public AddForwardInlcudeAction(){
- super(NbBundle.getBundle(StrutsPopupAction.class).getString("add-forward-include-action-action")); //NOI18N
- }
-
- public void actionPerformed(ActionEvent evt, JTextComponent target) {
- Document doc = target.getDocument();
- DataObject data = NbEditorUtilities.getDataObject(doc);
-
- AddFIActionPanel dialogPanel = new AddFIActionPanel((StrutsConfigDataObject)data);
- AddDialog dialog = new AddDialog(dialogPanel,
- NbBundle.getMessage(StrutsPopupAction.class,"TTL_Forward-Include"), //NOI18N
- new HelpCtx(AddFIActionPanel.class));
- dialog.disableAdd(); // disable Add button
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- if (dialog.getValue().equals(dialog.ADD_OPTION)) {
- try {
- StrutsConfig config = ((StrutsConfigDataObject)data).getStrutsConfig();
- if (config==null) return; //TODO:inform that XML file is corrupted
- ActionMappings mappings = config.getActionMappings();
- if (mappings==null) {
- mappings = new ActionMappings();
- config.setActionMappings(mappings);
- }
- Action action = new Action();
- action.setAttributeValue("path",dialogPanel.getActionPath()); //NOI18N
- if (dialogPanel.isForward()) {
- action.setAttributeValue("forward",dialogPanel.getResource()); //NOI18N
- } else {
- action.setAttributeValue("include",dialogPanel.getResource()); //NOI18N
- }
- mappings.addAction(action);
- target.setCaretPosition(StrutsEditorUtilities.writeBean((BaseDocument)doc, action, "action", "action-mappings"));
- } catch (java.io.IOException ex) {}
- }
- }
- }
-
- public static class AddFormPropertyAction extends BaseAction {
- public AddFormPropertyAction(){
- super(NbBundle.getBundle(StrutsPopupAction.class).getString("add-form-property-action")); //NOI18N
- }
-
- public void actionPerformed(ActionEvent evt, JTextComponent target) {
- Document doc = target.getDocument();
- DataObject data = NbEditorUtilities.getDataObject(doc);
- String formName = StrutsEditorUtilities.getActionFormBeanName((BaseDocument)doc, target.getCaretPosition());
- AddFormPropertyPanel dialogPanel = new AddFormPropertyPanel((StrutsConfigDataObject)data, formName);
- AddDialog dialog = new AddDialog(dialogPanel,
- NbBundle.getMessage(StrutsPopupAction.class,"TTL_AddFormProperty"), //NOI18N
- new HelpCtx(AddFormPropertyPanel.class));
- dialog.disableAdd(); // disable Add button
- java.awt.Dialog d = org.openide.DialogDisplayer.getDefault().createDialog(dialog);
- d.setVisible(true);
- if (dialog.getValue().equals(dialog.ADD_OPTION)) {
- //TODO:implement action
- try {
- StrutsConfig config = ((StrutsConfigDataObject)data).getStrutsConfig();
- if (config==null) return; //TODO:inform that XML file is corrupted
- FormProperty prop = new FormProperty();
- prop.setAttributeValue("name",dialogPanel.getPropertyName()); //NOI18N
- prop.setAttributeValue("type",dialogPanel.getPropertyType()); //NOI18N
- if (dialogPanel.isArray()) {
- prop.setAttributeValue("size",dialogPanel.getArraySize()); //NOI18N
- } else {
- prop.setAttributeValue("initial",dialogPanel.getInitValue()); //NOI18N
- }
- FormBean[] beans = config.getFormBeans().getFormBean();
- for (int i=0;i
-errors.prefix=
-errors.suffix=
-errors.footer=
-# -- validator --
-errors.invalid={0} is invalid.
-errors.maxlength={0} can not be greater than {1} characters.
-errors.minlength={0} can not be less than {1} characters.
-errors.range={0} is not in the range {1} through {2}.
-errors.required={0} is required.
-errors.byte={0} must be an byte.
-errors.date={0} is not a date.
-errors.double={0} must be an double.
-errors.float={0} must be an float.
-errors.integer={0} must be an integer.
-errors.long={0} must be an long.
-errors.short={0} must be an short.
-errors.creditcard={0} is not a valid credit card number.
-errors.email={0} is an invalid e-mail address.
-# -- other --
-errors.cancel=Operation cancelled.
-errors.detail={0}
-errors.general=The process did not complete. Details should follow.
-errors.token=Request could not be completed. Operation is not in sequence.
-# -- welcome --
-welcome.title=Struts Application
-welcome.heading=Struts Applications in Netbeans!
-welcome.message=It's easy to create Struts applications with NetBeans.
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsAction.html b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsAction.html
deleted file mode 100644
index 9f08f5e89ce6..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsAction.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-Creates a new Action class. Extends Struts Action class.
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsCatalog.png b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsCatalog.png
deleted file mode 100644
index 97fe7e044e7a0bab1bf4b7c9953742e43fa7d27d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 870
zcmV-s1DX7ZP)pVa$D#B|Mv3_9B(^(@jpnc
zqQY4Bx)9o(It&KDru^J`ey1Af~^6
z|1kXi`=8;}+fNJ?-3!5NkQ@g)8-tOq8km0f;R{?2hC%v303d*v{`~pP@cYj{hW6>p
z7>bho!EBHXe}T^Z`0*o{o-lt6Tn>go`al36fLQ+h`NQxBXk})MA4BWpB@E4F=?u;N
z^B8iHLK(jQ_{H!K7*L6RjtpBm+8GpoyoQH?9}sUyj+q7!KrDZN27qi477}78&4>cC
za}z@tK;iZC=P!o;Ao|Q923Koc1|1(Cl&D>kUyun9KrA4?`~`Z0ao)CsJVFa&SHQ7Vpcb_Y0%P8W#HoC0y`U|@$cWi3_pMUVmN)_
zGJ}DRCd1pOj~Py_TESp!Wx-(JAH-nb=Em^n>sKucUM>!R0Ag0rwMad6_9EYh51$#>
z+1VKc1^9sm07LrMZw8<^gNcDI1DmW8!{>Kz7>=x7$?)~r69z?5VFr0^ZHA+J_Lu?$
z06_r0{{!04#k%k3-KhNo2n5j7*)Pe=&Hw`h1poyG1pv^~)c_?VA^_X2r2zHS%>e!W
z{s8CZ=Kwo3Gynkg^Z>%d#sC6{5tN=885x;?-jV`haaLAVCI_Fm3|3x&q)+c(Gw=zD
zGFZJh$57qdiwLAg_ZhbB-OsT9^w~840R%Px9RLlK22v6*ZkD-mgD5wbH?o?KKYp&6
waO_kuKmcJi0E>ZgKuQ!%_%%@PBY*${0E5M)Uw|S!Pyhe`07*qoM6N<$f-=c|yZ`_I
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsConfigIcon.png
deleted file mode 100644
index 0edfa3548eeffe6787d36c6f971c1780accf4752..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 629
zcmV-*0*d{KP)K`Km!?`1q<1EnC0R#{O$bh7YhyDZA
zqTt_ufSQ3AL|=XOCou+3Y9VOWB*8pDFUx4`Ukcbi`0X5f%%xb8W!_K-(}BU0=U|
z;qi$*=)%*zdzNMa1P}|h!29zTWGe#$$fz6Z=P^7vzMH|jbry=ct<`CnKq?C$fG`ZO
z13GcuY-jLmnZdBBA_>CXHVP9K5k>SaqO{h`F$qDq*Z!jAmfZzsrl`X-Vq!VAR
zV~EX&LJ?ckHxV9)009K{0zNP^*kT%x%0!QW^tC6zfd~*l1Pver00ImETdP)G0F3z~
P00000NkvXXu0mjf@8l4e
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsFormBean.html b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsFormBean.html
deleted file mode 100644
index 037cc6473655..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/StrutsFormBean.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-Creates a new form bean class. Extends Struts ActionForm class.
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/layer.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/layer.xml
deleted file mode 100644
index a51f56ed1087..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/layer.xml
+++ /dev/null
@@ -1,199 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-bean.tld b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-bean.tld
deleted file mode 100644
index ebcf6dc376d0..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-bean.tld
+++ /dev/null
@@ -1,1153 +0,0 @@
-
-
-
-
- 1.3
- 1.2
- bean
- http://struts.apache.org/tags-bean
-
- Note: Some of the features in this taglib are also
- available in the JavaServer Pages Standard Tag Library (JSTL).
- The Struts team encourages the use of the standard tags over the Struts
- specific tags when possible.
-
- This tag library contains tags useful in accessing beans and their
- properties, as well as defining new beans (based on these accesses)
- that are accessible to the remainder of the page via scripting variables
- and page scope attributes. Convenient mechanisms to create new beans
- based on the value of request cookies, headers, and parameters are also
- provided.
-
- Many of the tags in this tag library will throw a
- JspException at runtime when they are utilized incorrectly
- (such as when you specify an invalid combination of tag attributes). JSP
- allows you to declare an "error page" in the <%@ page %>
- directive. If you wish to process the actual exception that caused the
- problem, it is passed to the error page as a request attribute under key
- org.apache.struts.action.EXCEPTION.
-
- ]]>
-
-
- cookie
- org.apache.struts.taglib.bean.CookieTag
- org.apache.struts.taglib.bean.CookieTei
- empty
-
-
- Define a scripting variable based on the value(s) of the specified
- request cookie.
-
-
- Retrieve the value of the specified request cookie (as a single
- value or multiple values, depending on the multiple attribute),
- and define the result as a page scope attribute of type Cookie
- (if multiple is not specified) or Cookie[]
- (if multiple is specified).
-
- If no cookie with the specified name can be located, and no default
- value is specified, a request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified request cookie.
- ]]>
-
-
-
- multiple
- false
- true
-
- If any arbitrary value for this attribute is specified, causes all
- matching cookies to be accumulated and stored into a bean of type
- Cookie[]. If not specified, the first value for the
- specified cookie will be retrieved as a value of type
- Cookie.
- ]]>
-
-
-
- name
- true
- true
-
- Specifies the name of the request cookie whose value, or values,
- is to be retrieved.
- ]]>
-
-
-
- value
- false
- true
-
- The default cookie value to return if no cookie with the
- specified name was included in this request.
- ]]>
-
-
-
-
- define
- org.apache.struts.taglib.bean.DefineTag
- org.apache.struts.taglib.bean.DefineTei
- JSP
-
-
- Define a scripting variable based on the value(s) of the specified
- bean property.
-
-
- Create a new attribute (in the scope specified by the
- toScope property, if any), and a corresponding scripting
- variable, both of which are named by the value of the id
- attribute. The corresponding value to which this new attribute (and
- scripting variable) is set are specified via use of exactly one of the
- following approaches (trying to use more than one will result in a
- JspException being thrown):
-
- - Specify a
name attribute (plus optional
- property and scope attributes) -
- The created attribute and scripting variable will be of the type of the
- retrieved JavaBean property, unless it is a Java primitive type,
- in which case it will be wrapped in the appropriate wrapper class
- (i.e. int is wrapped by java.lang.Integer).
- - Specify a
value attribute - The created attribute and
- scripting variable will be of type java.lang.String,
- set to the value of this attribute.
- - Specify nested body content - The created attribute and scripting
- variable will be of type
java.lang.String, set to
- the value of the nested body content.
-
-
- If a problem occurs while retrieving the specified bean property, a
- request time exception will be thrown.
-
- The <bean:define> tag differs from
- <jsp:useBean> in several ways, including:
-
- - Unconditionally creates (or replaces) a bean under the
- specified identifier.
- - Can create a bean with the value returned by a property getter
- of a different bean (including properties referenced with a
- nested and/or indexed property name).
- - Can create a bean whose contents is a literal string (or the result
- of a runtime expression) specified by the
value
- attribute.
- - Does not support nested content (such as
-
<jsp:setProperty> tags) that are only executed
- if a bean was actually created.
-
-
- USAGE NOTE - There is a restriction in the JSP 1.1
- Specification that disallows using the same value for an id
- attribute more than once in a single JSP page. Therefore, you will not
- be able to use <bean:define> for the same bean
- name more than once in a single page.
-
- USAGE NOTE - If you use another tag to create the
- body content (e.g. bean:write), that tag must return a non-empty String.
- An empty String equates to an empty body or a null String, and a new
- scripting variable cannot be defined as null. Your bean must return a
- non-empty String, or the define tag must be wrapped within a logic tag
- to test for an empty or null value.
-
- USAGE NOTE - You cannot use bean:define to instantiate
- a DynaActionForm (type="org.apache.struts.action.DynaActionForm") with
- the properties specified in the struts-config. The mechanics of creating
- the dyna-properties is complex and cannot be handled by a no-argument
- constructor. If you need to create an ActionForm this way, you must use
- a conventional ActionForm.
-
-
- See the Bean Developer's Guide section on
-
- bean creation for more information about these differences, as well
- as alternative approaches to introducing beans into a JSP page.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified property.
- ]]>
-
-
-
- name
- false
- true
-
- Specifies the attribute name of the bean whose property is accessed
- to define a new page scope attribute (if property is also
- specified) or the attribute name of the bean that is duplicated with
- the new reference created by this tag (if property is not
- also specified). This attribute is required unless you specify
- a value attribute or nested body content.
- ]]>
-
-
-
- property
- false
- true
-
- Specifies the name of the property to be accessed on the bean
- specified by name. This value may be a simple, indexed,
- or nested property reference expression. If not specified, the bean
- identified by name is given a new reference identified by
- id.
- ]]>
-
-
-
- scope
- false
- true
-
- Specifies the variable scope searched to retrieve the bean specified
- by name. If not specified, the default rules applied by
- PageContext.findAttribute() are applied.
- ]]>
-
-
-
- toScope
- false
- true
-
- Specifies the variable scope into which the newly defined bean will
- be created. If not specified, the bean will be created in
- page scope.
- ]]>
-
-
-
- type
- false
- true
-
- Specifies the fully qualified class name of the value to be exposed
- as the id attribute.
- ]]>
-
-
-
- value
- false
- true
-
- The java.lang.String value to which the exposed bean
- should be set. This attribute is required unless you specify the
- name attribute or nested body content.
- ]]>
-
-
-
-
- header
- org.apache.struts.taglib.bean.HeaderTag
- org.apache.struts.taglib.bean.HeaderTei
- empty
-
-
- Define a scripting variable based on the value(s) of the specified
- request header.
-
-
- Retrieve the value of the specified request header (as a single
- value or multiple values, depending on the multiple attribute),
- and define the result as a page scope attribute of type String
- (if multiple is not specified) or String[]
- (if multiple is specified).
-
- If no header with the specified name can be located, and no default
- value is specified, a request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified request header.
- ]]>
-
-
-
- multiple
- false
- true
-
- If any arbitrary value for this attribute is specified, causes a call
- to HttpServletRequest.getHeaders() and a definition of the
- result as a bean of type String[]. Otherwise,
- HttpServletRequest.getHeader() will be called, and a
- definition of the result as a bean of type String
- will be performed.
- ]]>
-
-
-
- name
- true
- true
-
- Specifies the name of the request header whose value, or values,
- is to be retrieved.
- ]]>
-
-
-
- value
- false
- true
-
- The default header value to return if no header with the
- specified name was included in this request.
- ]]>
-
-
-
-
- include
- org.apache.struts.taglib.bean.IncludeTag
- org.apache.struts.taglib.bean.IncludeTei
- empty
-
-
- Load the response from a dynamic application request and make it available
- as a bean.
-
-
- Perform an internal dispatch to the specified application component
- (or external URL)
- and make the response data from that request available as a bean of
- type String. This tag has a function similar to that of
- the standard <jsp:include> tag, except that the
- response data is stored in a page scope attribute instead of being
- written to the output stream. If the current request is part of a
- session, the generated request for the include will also include the
- session identifier (and thus be part of the same session).
-
- The URL used to access the specified application component is
- calculated based on which of the following attributes you specify
- (you must specify exactly one of them):
-
- - forward - Use the value of this attribute as the name
- of a global
ActionForward to be looked up, and
- use the module-relative or context-relative URI found there.
- - href - Use the value of this attribute unchanged (since
- this might link to a resource external to the application, the
- session identifier is not included.
- - page - Use the value of this attribute as an
- module-relative URI to the desired resource.
-
- ]]>
-
-
- anchor
- false
- true
-
- Optional anchor tag ("#xxx") to be added to the generated
- hyperlink. Specify this value without any
- "#" character.
- ]]>
-
-
-
- forward
- false
- true
-
- Logical name of a global ActionForward that contains
- the actual content-relative URI of the resource to be included.
- ]]>
-
-
-
- href
- false
- true
-
- Absolute URL (including the appropriate protocol prefix such as
- "http:") of the resource to be included. Because this URL could be
- external to the current web application, the session identifier will
- not be included in the request.
- ]]>
-
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified web application resource.
- ]]>
-
-
-
- page
- false
- true
-
- Module-relative URI (starting with a '/') of the web application
- resource to be included.
- ]]>
-
-
-
- transaction
- false
- true
- boolean
-
- Set to true if you want the current
- transaction control token included in the generated
- URL for this include.
- ]]>
-
-
-
-
- message
- org.apache.struts.taglib.bean.MessageTag
- empty
-
-
- Render an internationalized message string to the response.
-
-
- Retrieves an internationalized message for the specified locale,
- using the specified message key, and write it to the output stream.
- Up to five parametric replacements (such as "{0}") may be specified.
-
- The message key may be specified directly, using the key
- attribute, or indirectly, using the name and
- property attributes to obtain it from a bean.
-
-
- JSTL: The equivalent JSTL tag is <fmt:message>. For example,
-
-
- <fmt:message key="my.msg.key">
- <fmt:param value="replacement text"/>
- </fmt:message>
-
-
- ]]>
-
-
- arg0
- false
- true
-
- First parametric replacement value, if any.
- ]]>
-
-
-
- arg1
- false
- true
-
- Second parametric replacement value, if any.
- ]]>
-
-
-
- arg2
- false
- true
-
- Third parametric replacement value, if any.
- ]]>
-
-
-
- arg3
- false
- true
-
- Fourth parametric replacement value, if any.
- ]]>
-
-
-
- arg4
- false
- true
-
- Fifth parametric replacement value, if any.
- ]]>
-
-
-
- bundle
- false
- true
-
- The name of the application scope bean under which the
- MessageResources object containing our messages
- is stored.
- ]]>
-
-
-
- key
- false
- true
-
- The message key of the requested message, which must have
- a corresponding value in the message resources. If not specified,
- the key is obtained from the name and
- property attributes.
- ]]>
-
-
-
- locale
- false
- true
-
- The name of the session scope bean under which our currently
- selected Locale object is stored.
- ]]>
-
-
-
- name
- false
- true
-
- Specifies the attribute name of the bean whose property is accessed
- to retrieve the value specified by property (if
- specified). If property is not specified, the value of
- this bean itself will be used as the message resource key.
- ]]>
-
-
-
- property
- false
- true
-
- Specifies the name of the property to be accessed on the bean
- specified by name. This value may be a simple, indexed,
- or nested property reference expression. If not specified, the value
- of the bean identified by name will itself be used as the
- message resource key.
- ]]>
-
-
-
- scope
- false
- true
-
- Specifies the variable scope searched to retrieve the bean specified
- by name. If not specified, the default rules applied by
- PageContext.findAttribute() are applied.
- ]]>
-
-
-
-
- page
- org.apache.struts.taglib.bean.PageTag
- org.apache.struts.taglib.bean.PageTei
- empty
-
-
- Expose a specified item from the page context as a bean.
-
-
- Retrieve the value of the specified item from the page context
- for this page, and define it as a scripting variable, and a page scope
- attribute accessible to the remainder of the current page.
-
- If a problem occurs while retrieving the specified configuration
- object, a request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated
- page scope attribute) that will be made available with the value of
- the specified page context property.
- ]]>
-
-
-
- property
- true
- true
-
- Name of the property from our page context to be retrieved and
- exposed. Must be one of application, config,
- request, response, or session.
-
- ]]>
-
-
-
-
- parameter
- org.apache.struts.taglib.bean.ParameterTag
- org.apache.struts.taglib.bean.ParameterTei
- empty
-
-
- Define a scripting variable based on the value(s) of the specified
- request parameter.
-
-
- Retrieve the value of the specified request parameter (as a single
- value or multiple values, depending on the multiple attribute),
- and define the result as a page scope attribute of type String
- (if multiple is not specified) or String[]
- (if multiple is specified).
-
- If no request parameter with the specified name can be located, and
- no default value is specified, a request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified request parameter.
- ]]>
-
-
-
- multiple
- false
- true
-
- If any arbitrary value for this attribute is specified, causes a call
- to ServletRequest.getParameterValues() and a definition of
- the result as a bean of type String[]. Otherwise,
- ServletRequest.getParameter() will be called, and a
- definition of the result as a bean of type String
- will be performed.
- ]]>
-
-
-
- name
- true
- true
-
- Specifies the name of the request parameter whose value, or values,
- is to be retrieved.
- ]]>
-
-
-
- value
- false
- true
-
- The default parameter value to return if no parameter with the
- specified name was included in this request.
- ]]>
-
-
-
-
- resource
- org.apache.struts.taglib.bean.ResourceTag
- org.apache.struts.taglib.bean.ResourceTei
- empty
-
-
- Load a web application resource and make it available as a bean.
-
-
- Retrieve the value of the specified web application resource, and make
- it available as either a InputStream or a String,
- depending on the value of the input attribute.
-
- If a problem occurs while retrieving the specified resource, a
- request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated page
- scope attribute) that will be made available with the value of the
- specified web application resource.
- ]]>
-
-
-
- input
- false
- true
-
- If any arbitrary value for this attribute is specified, the resource
- will be made available as an InputStream. If this
- attribute is not specified, the resource will be made available
- as a String.
- ]]>
-
-
-
- name
- true
- true
-
- Module-relative name (starting with a '/') of the web application
- resource to be loaded and made available.
- ]]>
-
-
-
-
- size
- org.apache.struts.taglib.bean.SizeTag
- org.apache.struts.taglib.bean.SizeTei
- empty
-
-
- Define a bean containing the number of elements in a Collection or Map.
-
-
- Given a reference to an array, Collection or Map, creates a new bean, of
- type java.lang.Integer, whose value is the number of elements
- in that collection. You can specify the collection to be counted in any
- one of the following ways:
-
- - As a runtime expression specified as the value of the
-
collection attribute.
- - As a JSP bean specified by the
name attribute.
- - As the property, specified by the
property attribute,
- of the JSP bean specified by the name attribute.
-
- ]]>
-
-
- collection
- false
- true
- java.lang.Object
-
- A runtime expression that evaluates to an array, a Collection, or
- a Map.
- ]]>
-
-
-
- id
- true
- false
-
- The name of a page scope JSP bean, of type
- java.lang.Integer, that will be created to contain the
- size of the underlying collection being counted.
- ]]>
-
-
-
- name
- false
- true
-
- The name of the JSP bean (optionally constrained to the scope
- specified by the scope attribute) that contains the
- collection to be counted (if property is not specified),
- or whose property getter is called to return the collection to be
- counted (if property is specified.
- ]]>
-
-
-
- property
- false
- true
-
- The name of the property, of the bean specified by the
- name attribute, whose getter method will return the
- collection to be counted.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the JSP bean specified
- by the name attribute. If not specified, the available
- scopes are searched in ascending sequence.
- ]]>
-
-
-
-
- struts
- org.apache.struts.taglib.bean.StrutsTag
- org.apache.struts.taglib.bean.StrutsTei
- empty
-
-
- Expose a named Struts internal configuration object as a bean.
-
-
- Retrieve the value of the specified Struts internal configuration
- object, and define it as a scripting variable and as a page scope
- attribute accessible to the remainder of the current page. You must
- specify exactly one of the formBean, forward,
- and mapping attributes to select the configuration object
- to be exposed.
-
- If a problem occurs while retrieving the specified configuration
- object, a request time exception will be thrown.
- ]]>
-
-
- id
- true
- false
-
- Specifies the name of the scripting variable (and associated
- page scope attribute) that will be made available with the value of
- the specified Struts internal configuration object.
- ]]>
-
-
-
- formBean
- false
- true
-
- Specifies the name of the Struts ActionFormBean
- definition object to be exposed.
- ]]>
-
-
-
- forward
- false
- true
-
- Specifies the name of the global Struts ActionForward
- definition object to be exposed.
- ]]>
-
-
-
- mapping
- false
- true
-
- Specifies the matching path of the Struts ActionMapping
- definition object to be exposed.
- ]]>
-
-
-
-
- write
- org.apache.struts.taglib.bean.WriteTag
- empty
-
-
- Render the value of the specified bean property to the current
- JspWriter.
-
-
- Retrieve the value of the specified bean property, and render it to the
- current JspWriter as a String by the ways:
-
- - If
format attribute exists then value will be formatted on base of format
- string from format attribute and default system locale.
- - If in resources exists format string for value data type (view
format
- attribute description) then value will be formatted on base of format string
- from resources. Resources bundle and target locale can be specified with
- bundle and locale attributes. If nothing specified then
- default resource bundle and current user locale will be used.
- - If there is a PropertyEditor configured for the property value's class, the
-
getAsText() method will be called.
- - Otherwise, the usual
toString() conversions will be applied.
-
- When a format string is provided, numeric values are formatted using the
- java.text.DecimalFormat class; if the format string came from
- a resource, the applyLocalisedPattern() method is used, and
- applyPattern() is used otherwise. Dates are formatted using
- the SimpleDateFormat class. For details of the specific format
- patterns, please see the Javadocs for those classes.
- If a problem occurs while retrieving the specified bean property, a
- request time exception will be thrown.
- ]]>
-
-
- bundle
- false
- true
-
- The name of the application scope bean under which the
- MessageResources object containing our messages
- is stored.
- ]]>
-
-
-
- filter
- false
- true
- boolean
-
- If this attribute is set to true, the rendered property
- value will be filtered for characters that are sensitive in HTML, and any
- such characters will be replaced by their entity equivalents.
- ]]>
-
-
-
- format
- false
- true
-
- Specifies the format string to use to convert bean or property value
- to the String. If nothing specified, then default format
- string for value data type will be searched in message resources by
- according key.
-
- ]]>
-
-
-
- formatKey
- false
- true
-
- Specifies the key to search format string in application resources.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
- If this attribute is set to true, and the bean specified
- by the name and scope attributes does not
- exist, simply return without writing anything. If this attribute is
- set to false, a runtime exception to be thrown,
- consistent with the other tags in this tag library.
- ]]>
-
-
-
- locale
- false
- true
-
- The name of the session scope bean under which our currently
- selected Locale object is stored.
- ]]>
-
-
-
- name
- true
- true
-
- Specifies the attribute name of the bean whose property is accessed
- to retrieve the value specified by property (if
- specified). If property is not specified, the value of
- this bean itself will be rendered.
- ]]>
-
-
-
- property
- false
- true
-
- Specifies the name of the property to be accessed on the bean
- specified by name. This value may be a simple, indexed,
- or nested property reference expression. If not specified, the bean
- identified by name will itself be rendered. If the
- specified property returns null, no output will be rendered.
- ]]>
-
-
-
- scope
- false
- true
-
- Specifies the variable scope searched to retrieve the bean specified
- by name. If not specified, the default rules applied by
- PageContext.findAttribute() are applied.
- ]]>
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config.xml
deleted file mode 100644
index 04671d489b90..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd
deleted file mode 100644
index 063c021a980e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_0.dtd
+++ /dev/null
@@ -1,424 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd
deleted file mode 100644
index 0ecb92a55866..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_1.dtd
+++ /dev/null
@@ -1,712 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd
deleted file mode 100644
index ec1a3d0aaff2..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.dtd
+++ /dev/null
@@ -1,702 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.mdd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.mdd
deleted file mode 100644
index a7fd4b3fef56..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_2.mdd
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
-
- struts-config
- StrutsConfig
-
- DisplayName
-
-
- Description
-
-
- DataSources
-
-
- FormBeans
-
-
- GlobalExceptions
-
-
- GlobalForwards
-
-
- ActionMappings
-
-
- Controller
-
-
- MessageResources
-
-
- PlugIn
-
-
-
- display-name
- DisplayName
- String
-
-
- description
- Description
- String
-
-
- data-sources
- DataSources
-
- DataSource
-
-
-
- form-beans
- FormBeans
-
- FormBean
-
-
-
- global-exceptions
- GlobalExceptions
-
- StrutsException
-
-
-
- global-forwards
- GlobalForwards
-
- Forward
-
-
-
- action-mappings
- ActionMappings
-
- Action
-
-
-
- controller
- Controller
-
- SetProperty
-
-
-
- message-resources
- MessageResources
-
- SetProperty
-
-
-
- plug-in
- PlugIn
-
- SetProperty
-
-
-
- set-property
- SetProperty
- Boolean
-
-
- EMPTY
- Empty
- String
-
-
- action
- Action
-
- Icon
-
-
- DisplayName
-
-
- Description
-
-
- SetProperty
-
-
- StrutsException
-
-
- Forward
-
-
-
- icon
- Icon
-
- SmallIcon
-
-
- LargeIcon
-
-
-
- exception
- StrutsException
-
- Icon
-
-
- DisplayName
-
-
- Description
-
-
- SetProperty
-
-
-
- forward
- Forward
-
- Icon
-
-
- DisplayName
-
-
- Description
-
-
- SetProperty
-
-
-
- small-icon
- SmallIcon
- String
-
-
- large-icon
- LargeIcon
- String
-
-
- #PCDATA
- Pcdata
- String
-
-
- form-bean
- FormBean
-
- Icon
-
-
- DisplayName
-
-
- Description
-
-
- SetProperty
-
-
- FormProperty
-
-
-
- form-property
- FormProperty
-
- SetProperty
-
-
-
- data-source
- DataSource
-
- SetProperty
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3-custom.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3-custom.dtd
deleted file mode 100644
index 85870decd96d..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3-custom.dtd
+++ /dev/null
@@ -1,682 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd
deleted file mode 100644
index a9aed162c567..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-config_1_3.dtd
+++ /dev/null
@@ -1,726 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-html.tld b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-html.tld
deleted file mode 100644
index e6ae8712c380..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-html.tld
+++ /dev/null
@@ -1,9283 +0,0 @@
-
-
-
-
- 1.3
- 1.2
- html
- http://struts.apache.org/tags-html
-
-
- This taglib contains tags used to create struts
- input forms, as well as other tags generally useful
- in the creation of HTML-based user interfaces.
-
-
- Many of the tags in this tag library will throw a
- JspException at runtime when they are utilized incorrectly
- (such as when you specify an invalid combination of tag attributes). JSP
- allows you to declare an "error page" in the <%@ page %>
- directive. If you wish to process the actual exception that caused the
- problem, it is passed to the error page as a request attribute under key
- org.apache.struts.action.EXCEPTION.
- ]]>
-
-
- base
- org.apache.struts.taglib.html.BaseTag
- empty
-
- Render an HTML <base> Element
-
- Renders an HTML <base> element with an
- href attribute pointing to the absolute location of
- the enclosing JSP page. This tag is valid only when nested inside
- an HTML <head> element.
-
- This tag is useful because it allows you to use relative URL
- references in the page that are calculated based on the URL of the
- page itself, rather than the URL to which the most recent submit
- took place (which is where the browser would normally resolve
- relative references against).
- ]]>
-
-
- target
- false
- true
-
- The window target for this base reference.
- ]]>
-
-
-
- server
- false
- true
-
- The server name to use instead of request.getServerName().
- ]]>
-
-
-
- ref
- false
- true
-
- The reference from which the base uri will created. Possible values are:
-
-
- page - The base uri will be the jsp page location. (default)
- site - The base uri will be the application context path.
-
-
- - Since:
- - Struts 1.3
-
- ]]>
-
-
-
-
- button
- org.apache.struts.taglib.html.ButtonTag
-
- Render A Button Input Field
-
-
- Renders an HTML <input> element of type
- button, populated from the specified value or the
- content of this tag body. This tag is only valid when nested
- inside a form tag body.
-
-
- If a graphical button is needed (a button with an image), then the
- <html:image> tag is more appropriate.
-
- ]]>
-
-
- accesskey
- false
- true
-
- The keyboard character used to move focus immediately to this
- element.
- ]]>
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- The servlet context attributes key for the MessageResources
- instance to use. If not specified, defaults to the
- application resources configured for our action servlet.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- Set to true if this input field should be
- disabled.
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- Valid only inside of logic:iterate tag.
- If true then name of the html tag will be rendered as
- "propertyName[34]". Number in brackets will be generated for
- every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- cancel
- org.apache.struts.taglib.html.CancelTag
-
-
- Render a Cancel Button
-
-
-
- Renders an HTML <input> element of type submit. This tag is only
- valid when nested inside a form tag body. Pressing of this submit
- button causes the action servlet to bypass calling the associated
- form bean validate() method. The action is called normally.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- false
- true
-
- WARNING - If you set this attribute to a
- value other than the default, this will NOT be
- recognized as the cancel key by the Struts controller servlet
- or the Action.isCancelled() method. You will
- need to do your own cancel detection.
- ]]>
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- checkbox
- org.apache.struts.taglib.html.CheckboxTag
-
-
- Render A Checkbox Input Field
-
-
- Renders an HTML <input> element of type
- checkbox, populated from the specified
- value or the specified property of the bean associated
- with our current form. This tag is only valid when
- nested inside a form tag body.
-
- NOTE: The underlying property value
- associated with this field should be of type boolean,
- and any value you specify should correspond to one
- of the Strings that indicate a true value ("true", "yes", or
- "on"). If you wish to utilize a set of related String values,
- consider using the multibox tag.
-
- WARNING: In order to correctly
- recognize unchecked checkboxes, the
- ActionForm bean associated with this form
- must include a statement setting the corresponding
- boolean property to false in the
- reset() method.
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- logic:iterate tag.
- If true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- errors
- org.apache.struts.taglib.html.ErrorsTag
- empty
-
-
- Conditionally display a set of accumulated error messages.
-
-
- Displays a set of error messages prepared by a business
- logic component and stored as an ActionMessages
- object, an ActionErrors
- object, a String, or a String array in any scope. If
- such a bean is not found, nothing will be rendered.
-
- In order to use this tag successfully, you must have
- defined an application scope MessageResources
- bean under the default attribute name, with optional
- definitions of message keys specified in the following
- attributes:
-
- - header - Text that will be rendered
- before the error messages list. Typically, this message text
- will end with
<ul> to start the
- error messages list (default "errors.header").
- - footer - Text that will be rendered
- after the error messages list. Typically, this message text
- will begin with
</ul> to end the error
- messages list (default "errors.footer").
- - prefix - Text that will be rendered
- before each individual error in the list (default "errors.prefix").
- - suffix - Text that will be rendered
- after each individual error in the list (default "errors.suffix").
-
-
- See the messages tag for an alternative to this tag that
- does not rely on HTML in your MessageResources.
-
- ]]>
-
-
- bundle
- false
- true
-
-
-
-
-
- footer
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- header
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- locale
- false
- true
-
-
-
-
-
- name
- false
- true
-
- Globals.ERROR_KEY constant string will be used.
- ]]>
-
-
-
- prefix
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- property
- false
- true
-
-
-
-
-
- suffix
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
-
- file
- org.apache.struts.taglib.html.FileTag
-
-
- Render A File Select Input Field
-
-
-
- Renders an HTML <input> element of type file, defaulting to
- the specified value or the specified property of the bean
- associated with our current form. This tag is only valid when
- nested inside a form tag body.
-
-
- As with the corresponding HTML <input> element, the
- enclosing form element must specify "POST" for the method
- attribute, and "multipart/form-data" for the enctype
- attribute. For example:
-
-
- <html:form method="POST" enctype="multipart/form-data">
- <html:file property="theFile" />
- </html:form>
-
-
- WARNING: In order to correctly recognize uploaded files, the ActionForm bean
- associated with this form must include a statement setting the corresponding
- org.apache.struts.upload.FormFile property to null in the reset() method.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- accept
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- logic:iterate tag.
- If true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- size
- false
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
- NOTE: When setting this to some value, whether
- intentional or as the result (for example) of validation errors
- forcing the user back to the original jsp, this value is ignored
- by most browsers (for security reasons).
- This means that your users will have to re-select any previously
- selected files when submitting the form. Opera web browser will
- prompt the user so they have a chance to abort the submit.
-
- Value to which this field should be initialized. [Use the
- corresponding bean property value or body content (if any) if
- property is not specified]
- ]]>
-
-
-
-
- form
- org.apache.struts.taglib.html.FormTag
- JSP
-
-
- Define An Input Form
-
-
-
- Renders an HTML <form> element whose contents are described
- by the body content of this tag. The form implicitly interacts
- with the specified request scope or session scope bean to populate
- the input fields with the current property values from the bean.
-
-
- The form bean is located, and created if necessary, based on the
- form bean specification for the associated ActionMapping.
-
- ]]>
-
-
- action
- false
- true
-
- The URL to which this form will be submitted. This
- value is also used to select the ActionMapping we are
- assumed to be processing, from which we can identify
- the appropriate form bean and scope. If a value is not
- provided, the original URI (servletPath) for the request is
- used.
-
- If you are using extension mapping for selecting the
- controller servlet, this value should be equal to the
- path attribute of the corresponding
- <action> element, optionally
- followed by the correct extension suffix.
-
- If you are using path mapping to select the
- controller servlet, this value should be exactly equal
- to the path attribute of the corresponding
- <action> element.
- ]]>
-
-
-
- acceptCharset
- false
- true
-
- Since:
- Struts 1.2.2
- ]]>
-
-
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if the Form's input fields should be
- disabled.
-
- - Since:
- - Struts 1.2.7
- ]]>
-
-
-
- enctype
- false
- true
-
-
-
-
-
- focus
- false
- true
-
-
-
-
-
- focusIndex
- false
- true
-
- Since:
- Struts 1.1
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- method
- false
- true
-
-
-
-
-
- onreset
- false
- true
-
-
-
-
-
- onsubmit
- false
- true
-
-
-
-
-
- readonly
- false
- true
- boolean
-
- true if the Form's input fields should be
- read only.
-
- - Since:
- - Struts 1.2.7
- ]]>
-
-
-
- scriptLanguage
- false
- true
- boolean
-
- Since:
- Struts 1.2
- ]]>
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- target
- false
- true
-
-
-
-
-
-
- frame
- org.apache.struts.taglib.html.FrameTag
- JSP
-
- Render an HTML frame element
-
-
- Renders an HTML <frame> element
- with processing for the src attribute that is
- identical to that performed by the <html:link>
- tag for the href attribute. URL rewriting will be
- applied automatically, to maintain session state in the
- absence of cookies.
-
- The base URL for this frame is calculated based on
- which of the following attributes you specify (you must
- specify exactly one of them):
-
- - forward - Use the value of this attribute as the
- name of a global
ActionForward to be looked
- up, and use the module-relative or context-relative
- URI found there.
- - href - Use the value of this attribute unchanged.
-
- - page - Use the value of this attribute as a
- module-relative URI, and generate a server-relative
- URI by including the context path and application
- prefix.
- - action - Use the value of this attribute as the
- logical name of a global Action that contains the actual
- content-relative URI of the destination of this transfer.
-
-
- Normally, the hyperlink you specify with one of the
- attributes described in the previous paragraph will be left
- unchanged (other than URL rewriting if necessary). However,
- there are two ways you can append one or more dynamically
- defined query parameters to the hyperlink -- specify a single
- parameter with the paramId attribute (and its
- associated attributes to select the value), or specify the
- name (and optional property)
- attributes to select a java.util.Map bean that
- contains one or more parameter ids and corresponding values.
-
-
- To specify a single parameter, use the paramId
- attribute to define the name of the request parameter to be
- submitted. To specify the corresponding value, use one of the
- following approaches:
-
- - Specify only the
paramName attribute
- - The named JSP bean (optionally scoped by the value of the
- paramScope attribute) must identify a value
- that can be converted to a String.
- - Specify both the
paramName and
- paramProperty attributes - The specified
- property getter method will be called on the JSP bean
- identified by the paramName (and optional
- paramScope) attributes, in order to select
- a value that can be converted to a String.
-
-
- If you prefer to specify a java.util.Map that
- contains all of the request parameters to be added to the
- hyperlink, use one of the following techniques:
-
- - Specify only the
name attribute -
- The named JSP bean (optionally scoped by the value of
- the scope attribute) must identify a
- java.util.Map containing the parameters.
- - Specify both
name and
- property attributes - The specified
- property getter method will be called on the bean
- identified by the name (and optional
- scope) attributes, in order to return the
- java.util.Map containing the parameters.
-
-
- As the Map is processed, the keys are assumed
- to be the names of query parameters to be appended to the
- hyperlink. The value associated with each key must be either
- a String or a String array representing the parameter value(s),
- or an object whose toString() method will be called.
- If a String array is specified, more than one value for the
- same query parameter name will be created.
-
- Additionally, you can request that the current transaction
- control token, if any, be included in the generated hyperlink
- by setting the transaction attribute to
- true.
- You can also request that an anchor ("#xxx") be added to the
- end of the URL that is created by any of the above mechanisms,
- by using the anchor attribute.
-
- ]]>
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- action
- false
- true
-
- Logical name of a global Action that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute,
- or the page attribute.
-
- Additionally, you can specify a module prefix
- for linking to other modules.
-
- ]]>
-
-
-
- module
- false
- true
-
- Prefix name of a Module that
- contains the action mapping for the Action
- that is specified by the action attribute.
- You must specify an action
- attribute for this to have an effect.
-
- Note: Use "" to map to the default module.
- ]]>
-
-
-
- anchor
- false
- true
-
- Optional anchor tag ("#xxx") to be added to the generated
- hyperlink. Specify this value without any
- "#" character.
- ]]>
-
-
-
- forward
- false
- true
-
- Logical name of a global ActionForward that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute,
- or the page attribute.
- ]]>
-
-
-
- frameborder
- false
- true
-
- Should a frame border be generated around this frame (1)
- or not (0)?
- ]]>
-
-
-
- frameName
- false
- true
-
- Value for the name attribute of the rendered
- <frame> element.
- ]]>
-
-
-
- href
- false
- true
-
- The URL to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute,
- or the page attribute.
- ]]>
-
-
-
- longdesc
- false
- true
-
- URI of a long description of the frame. This description
- should supplement the short description provided by the
- title attribute, and may be particularly useful
- for non-visual user agents.
- ]]>
-
-
-
- marginheight
- false
- true
- java.lang.Integer
-
- The amount of space (in pixels) to be left between the
- frame's contents and its top and bottom margins.
- ]]>
-
-
-
- marginwidth
- false
- true
- java.lang.Integer
-
- The amount of space (in pixels) to be left between the
- frame's contents and its left and right margins.
- ]]>
-
-
-
- name
- false
- true
-
- The name of a JSP bean that contains a Map
- representing the query parameters (if property
- is not specified), or a JSP bean whose property getter is
- called to return a Map (if property
- is specified).
- ]]>
-
-
-
- noresize
- false
- true
- boolean
-
- Should users be disallowed from resizing the frame?
- (true, false).
- ]]>
-
-
-
- page
- false
- true
-
- The module-relative path (beginning with a "/"
- character) to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify exactly
- one of the action attribute, the
- forward attribute, the
- href attribute,
- or the page attribute.
- ]]>
-
-
-
- paramId
- false
- true
-
- The name of the request parameter that will be dynamically
- added to the generated hyperlink. The corresponding value is
- defined by the paramName and (optional)
- paramProperty attributes, optionally scoped by
- the paramScope attribute
- ]]>
-
-
-
- paramName
- false
- true
-
- The name of a JSP bean that is a String containing the
- value for the request parameter named by paramId
- (if paramProperty is not specified), or a JSP
- bean whose property getter is called to return a String
- (if paramProperty is specified). The JSP bean
- is constrained to the bean scope specified by the
- paramScope property, if it is specified.
- ]]>
-
-
-
- paramProperty
- false
- true
-
- The name of a property of the bean specified by the
- paramName attribute, whose return value must
- be a String containing the value of the request parameter
- (named by the paramId attribute) that will be
- dynamically added to this hyperlink.
- ]]>
-
-
-
- paramScope
- false
- true
-
- The scope within which to search for the bean specified
- by the paramName attribute. If not specified,
- all scopes are searched.
- ]]>
-
-
-
- property
- false
- true
-
- The name of a property of the bean specified by the
- name attribute, whose return value must be
- a java.util.Map containing the query parameters
- to be added to the hyperlink. You must
- specify the name attribute if you specify
- this attribute.
- ]]>
-
-
-
- scope
- false
- true
-
- The scope within which to search for the bean specified
- by the name attribute. If not specified, all
- scopes are searched.
- ]]>
-
-
-
- scrolling
- false
- true
-
- Should scroll bars be created unconditionally (yes),
- never (no), or only when needed (auto)?
- ]]>
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this element.
- ]]>
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- transaction
- false
- true
- boolean
-
- If set to true, any current transaction
- control token will be included in the generated hyperlink,
- so that it will pass an isTokenValid() test
- in the receiving Action.
- ]]>
-
-
-
-
- hidden
- org.apache.struts.taglib.html.HiddenTag
- empty
-
-
- Render A Hidden Field
-
-
-
- Renders an HTML <input> element of type hidden, populated
- from the specified value or the specified property of the bean
- associated with our current form. This tag is only valid when
- nested inside a form tag body.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- logic:iterate tag.
- If true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
- write
- false
- true
- boolean
-
-
-
-
-
-
- html
- org.apache.struts.taglib.html.HtmlTag
- JSP
-
- Render an HTML <html> Element
-
- Renders an HTML <html> element with
- language attributes extracted from the user's current Locale
- object, if there is one.
- ]]>
-
-
- lang
- false
- true
- boolean
-
- Accept-Language
- HTTP header is used. If still not found, the default language for the server
- is used.
-
- - Since:
- - Struts 1.2
- ]]>
-
-
-
- xhtml
- false
- true
- boolean
-
- Set to true in order to render
- xml:lang and xmlns attributes
- on the generated html element. This also
- causes all other html tags to render as XHTML 1.0 (the
- <html:xhtml/> tag has a similar purpose).
-
-
- - Since:
- - Struts 1.1
- ]]>
-
-
-
-
- image
- org.apache.struts.taglib.html.ImageTag
-
-
- Render an input tag of type "image"
-
-
-
- Renders an HTML <input> tag of type
- "image". The base URL for this image is calculated directly
- based on the value specified in the src or
- page attributes, or indirectly by looking up a
- message resource string based on the srcKey or
- pageKey attributes. You must
- specify exactly one of these attributes.
-
- If you would like to obtain the coordinates of the mouse
- click that submitted this request, see the information below
- on the property attribute.
-
- This tag is only valid when nested inside a form tag body.
-
- ]]>
-
-
- accesskey
- false
- true
-
- The keyboard character used to move focus immediately
- to this element.
- ]]>
-
-
-
- align
- false
- true
-
- The alignment option for this image.
- ]]>
-
-
-
- alt
- false
- true
-
- The alternate text for this image.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- image.
- ]]>
-
-
-
- border
- false
- true
-
- The width (in pixels) of the border around this image.
- ]]>
-
-
-
- bundle
- false
- true
-
- The servlet context attribute key for the MessageResources
- instance to use. If not specified, defaults to the
- application resources configured for our action servlet.
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true
- then name of the html tag will be rendered as
- "propertyName[34]". Number in brackets will be generated for
- every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- locale
- false
- true
-
- The session attribute key for the Locale used to select
- internationalized messages. If not specified, defaults to the
- Struts standard value.
- ]]>
-
-
-
- module
- false
- true
-
- Prefix name of a Module that
- the page or pageKey
- attributes relate to.
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- page
- false
- true
-
- The module-relative path of the image for this
- input tag.
- ]]>
-
-
-
- pageKey
- false
- true
-
- The key of the message resources string specifying the
- module-relative path of the image for this input tag.
- ]]>
-
-
-
- property
- false
- true
-
- The property name of this image tag. The parameter names
- for the request will appear as "property.x" and "property.y",
- the x and y representing the coordinates of the mouse click
- for the image. A way of retrieving these values through a
- form bean is to define getX(), getY(), setX(), and setY()
- methods, and specify your property as a blank string
- (property="").
- ]]>
-
-
-
- src
- false
- true
-
- The source URL of the image for this input tag.
- ]]>
-
-
-
- srcKey
- false
- true
-
- The key of the message resources string specifying the
- source URL of the image for this input tag.
- ]]>
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
- The value that will be submitted if this image button
- is pressed.
- ]]>
-
-
-
-
- img
- org.apache.struts.taglib.html.ImgTag
- empty
-
- Render an HTML img tag
-
-
- Renders an HTML <img> element with
- the image at the specified URL. Like the link tag, URL
- rewriting will be applied automatically to the value
- specified in src, page, or
- action to maintain session state
- in the absence of cookies. This will allow dynamic
- generation of an image where the content displayed for this
- image will be taken from the attributes of this tag.
-
- The base URL for this image is calculated directly based on
- the value specified in src, page, or
- action or page,
- or indirectly by looking up a message resource string based on
- the srcKey or pageKey attributes.
- You must specify exactly one of these
- attributes.
-
- Normally, the src, page, or
- action that you specify will be left
- unchanged (other than URL rewriting if necessary). However,
- there are two ways you can append one or more dynamically
- defined query parameters to the src URL --
- specify a single parameter with the paramId
- attribute (at its associated attributes to select the value),
- or specify the name (and optional
- property) attributes to select a
- java.util.Map bean that contains one or more
- parameter ids and corresponding values.
-
- To specify a single parameter, use the paramId
- attribute to define the name of the request parameter to be
- submitted. To specify the corresponding value, use one of the
- following approaches:
-
- - Specify only the
paramName attribute
- - The named JSP bean (optionally scoped by the value of the
- paramScope attribute) must identify a value
- that can be converted to a String.
- - Specify both the
paramName and
- paramProperty attributes - The specified
- property getter will be called on the JSP bean identified
- by the paramName (and optional
- paramScope) attributes, in order to select
- a value that can be converted to a String.
-
-
- If you prefer to specify a java.util.Map that
- contains all of the request parameters to be added to the
- hyperlink, use one of the following techniques:
-
- - Specify only the
name attribute -
- The named JSP bean (optionally scoped by the value of
- the scope attribute) must identify a
- java.util.Map containing the parameters.
- - Specify both
name and
- property attributes - The specified
- property getter method will be called on the bean
- identified by the name (and optional
- scope) attributes, in order to return the
- java.util.Map containing the parameters.
-
-
- As the Map is processed, the keys are assumed
- to be the names of query parameters to be appended to the
- src URL. The value associated with each key
- must be either a String or a String array representing the
- parameter value(s), or an object whose toString() method
- will be called. If a String array is specified, more than
- one value for the same query parameter name will be
- created.
-
- You can specify the alternate text for this image (which
- most browsers display as pop-up text block when the user
- hovers the mouse over this image) either directly, through
- the alt attribute, or indirectly from a message
- resources bundle, using the bundle and
- altKey attributes.
-
- ]]>
-
-
- align
- false
- true
-
- Where the image is aligned to. Can be one of the
- following attributes:
-
- - left - left justify, wrapping text on right
- - right -right justify, wrapping test on left
- - top - aligns the image with the top of the text on
- the same row
- - middle - aligns the image's vertical center with the
- text base line
- - bottom - aligns the image with the bottom of the
- text's base line
- - texttop - aligns the image's top with that of the
- text font on the same line
- - absmiddle - aligns the image's vertical center with the
- absolute center of the text
- - absbottom - aligns the image with the absolute bottom
- of the text font on the same row
-
- ]]>
-
-
-
- alt
- false
- true
-
- And alternative text to be displayed in browsers that
- don't support graphics. Also used often as type of
- context help over images.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- border
- false
- true
-
- The width of the border surrounding the image.
- ]]>
-
-
-
- bundle
- false
- true
-
- The servlet context attribute key for the MessageResources
- instance to use. If not specified, defaults to the
- application resources configured for our action servlet.
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- height
- false
- true
-
- The height of the image being displayed. This parameter
- is very nice to specify (along with width)
- to help the browser render the page faster.
- ]]>
-
-
-
- hspace
- false
- true
-
- The amount of horizontal spacing between the icon and
- the text. The text may be in the same paragraph, or
- be wrapped around the image.
- ]]>
-
-
-
- imageName
- false
- true
-
- The scriptable name to be defined within this page, so
- that you can reference it with intra-page scripts. In other
- words, the value specified here will render a "name" element
- in the generated image tag.
- ]]>
-
-
-
- ismap
- false
- true
-
- The name of the server-side map that this image belongs
- to.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- locale
- false
- true
-
- The name of the request or session Locale attribute used
- to look up internationalized messages.
- ]]>
-
-
-
- name
- false
- true
-
- The name of a JSP bean that contains a Map
- representing the query parameters (if property
- is not specified), or a JSP bean whose property getter is
- called to return a Map (if property
- is specified).
- ]]>
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key down event.
- ]]>
-
-
-
- onkeypress
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key press event.
- ]]>
-
-
-
- onkeyup
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key up event.
- ]]>
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- paramId
- false
- true
-
- The name of the request parameter that will be dynamically
- added to the generated src URL. The corresponding value is
- defined by the paramName and (optional)
- paramProperty attributes, optionally scoped by
- the paramScope attribute
- ]]>
-
-
-
- page
- false
- true
-
- The module-relative path, starting with a slash, of
- the image to be displayed by this tag. The rendered
- URL for this image will automatically prepend the context
- path of this web application (in the same manner as the
- page attribute on the link tag works),
- in addition to any necessary URL rewriting. You
- must specify either the page
- attribute or the src attribute.
- ]]>
-
-
-
- pageKey
- false
- true
-
- The message key, in the message resources bundle named by
- the bundle attribute, of the String to be
- used as the module-relative path for this image.
- ]]>
-
-
-
- action
- false
- true
-
- The action, starting with a slash, that will render
- the image to be displayed by this tag. The rendered
- URL for this image will automatically prepend the context
- path of this web application (in the same manner as the
- action attribute on the link tag works),
- in addition to any necessary URL rewriting. You
- must specify the action,
- page
- attribute or the src attribute.
-
- Additionally, you can specify a module prefix
- for linking to other modules.
-
- ]]>
-
-
-
- module
- false
- true
-
- Prefix name of a Module that
- contains the action mapping for the Action
- that is specified by the action attribute.
- You must specify an action
- attribute for this to have an effect.
-
- Note: Use "" to map to the default module.
- ]]>
-
-
-
- paramName
- false
- true
-
- The name of a JSP bean that is a String containing the
- value for the request parameter named by paramId
- (if paramProperty is not specified), or a JSP
- bean whose property getter is called to return a String
- (if paramProperty is specified). The JSP bean
- is constrained to the bean scope specified by the
- paramScope property, if it is specified.
- ]]>
-
-
-
- paramProperty
- false
- true
-
- The name of a property of the bean specified by the
- paramName attribute, whose return value must
- be a String containing the value of the request parameter
- (named by the paramId attribute) that will be
- dynamically added to this src URL.
- ]]>
-
-
-
- paramScope
- false
- true
-
- The scope within which to search for the bean specified
- by the paramName attribute. If not specified,
- all scopes are searched.
- ]]>
-
-
-
- property
- false
- true
-
- The name of a property of the bean specified by the
- name attribute, whose return value must be
- a java.util.Map containing the query parameters
- to be added to the src URL. You must
- specify the name attribute if you specify
- this attribute.
- ]]>
-
-
-
- scope
- false
- true
-
- The scope within which to search for the bean specified
- by the name attribute. If not specified, all
- scopes are searched.
- ]]>
-
-
-
- src
- false
- true
-
- The URL to which this image will be transferred from
- This image may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. This value will be used unmodified (other
- than potential URL rewriting) as the value of the "src"
- attribute in the rendered tag. You must
- specify either the page attribute or the
- src attribute.
- ]]>
-
-
-
- srcKey
- false
- true
-
- The message key, in the message resources bundle named by
- the bundle attribute, of the String to be
- used as the URL of this image.
- ]]>
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this element.
- ]]>
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
- If set to true, LocalCharacterEncoding will be
- used, that is, the characterEncoding set to the HttpServletResponse,
- as prefered character encoding rather than UTF-8, when
- URLEncoding is done on parameters of the URL.
- ]]>
-
-
-
- usemap
- false
- true
-
- The name of the map as defined within this page for
- mapping hot-spot areas of this image.
- ]]>
-
-
-
- vspace
- false
- true
-
- The amount of vertical spacing between the icon and
- the text, above and below.
- ]]>
-
-
-
- width
- false
- true
-
- The width of the image being displayed. This parameter
- is very nice to specify (along with height)
- to help the browser render the page faster.
- ]]>
-
-
-
-
- javascript
- org.apache.struts.taglib.html.JavascriptValidatorTag
- empty
-
-
- Render JavaScript validation based on the
- validation rules loaded by the ValidatorPlugIn.
-
-
-
- Render JavaScript validation based on the
- validation rules loaded by the ValidatorPlugIn.
- The set of validation rules that should be generated is based
- on the formName attribute passed in, which should match
- the name attribute of the form element in the xml file.
-
-
- The dynamicJavascript and staticJavascript attributes
- default to true, but if dynamicJavascript is set to true
- and staticJavascript is set to false then only
- the dynamic JavaScript will be rendered. If dynamicJavascript
- is set to false
- and staticJavascript is set to true then only
- the static JavaScript will be rendered which can then be put in
- separate JSP page so the browser can cache the static JavaScript.
-
- ]]>
-
-
- cdata
- false
- true
-
-
- If set to "true" and XHTML has been enabled, the JavaScript will
- be wrapped in a CDATA section to prevent XML parsing. The default is
- "true" to comply with the W3C's recommendation.
-
-
- - Since:
- - Struts 1.1
- ]]>
-
-
-
- dynamicJavascript
- false
- true
-
-
- Whether or not to render the dynamic JavaScript.
- Defaults to true.
-
- ]]>
-
-
-
- formName
- false
- true
-
-
- The key (form name) to retrieve a specific
- set of validation rules. If "dynamicJavascript" is set
- to true and formName is missing or is not
- recognized by the ValidatorPlugIn, a
- JspException will be thrown.
-
- ]]>
-
-
-
- method
- false
- true
-
-
- The alternate JavaScript method name to be used
- instead of the of the default. The default is
- 'validate' concatenated in front of
- the key (form name) passed in (ex: validateRegistrationForm).
-
- ]]>
-
-
-
- page
- false
- true
- int
-
-
- The current page of a set of validation rules
- if the page attribute for the field element
- in the xml file is in use.
-
- ]]>
-
-
-
- scriptLanguage
- false
- true
- boolean
-
- Since:
- Struts 1.2
- ]]>
-
-
-
- src
- false
- true
-
-
- The src attribute's value when defining
- the html script element.
-
- ]]>
-
-
-
- staticJavascript
- false
- true
-
-
- Whether or not to render the static JavaScript.
- Defaults to true.
-
- ]]>
-
-
-
- htmlComment
- false
- true
-
-
- Whether or not to enclose the javascript
- with HTML comments. This attribute is ignored in XHTML
- mode because the script would be deleted by the XML parser. See
- the cdata attribute for details on hiding scripts from XML
- parsers.
- Defaults to true.
-
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
-
- link
- org.apache.struts.taglib.html.LinkTag
- JSP
-
- Render an HTML anchor or hyperlink
-
-
- Renders an HTML <a> element as an
- anchor definition (if "linkName" is specified) or as a
- hyperlink to the specified URL. URL rewriting will be
- applied automatically, to maintain session state in the
- absence of cookies. The content displayed for this
- hyperlink will be taken from the body of this tag.
-
- The base URL for this hyperlink is calculated based on
- which of the following attributes you specify (you must
- specify exactly one of them):
-
- - forward - Use the value of this attribute as the
- name of a global
ActionForward to be looked
- up, and use the module-relative or context-relative
- URI found there. If the forward is module-relative then
- it must point to an action and NOT to a page.
- - action - Use the value of this attribute as the
- name of a
Action to be looked
- up, and use the module-relative or context-relative
- URI found there.
- - href - Use the value of this attribute unchanged.
-
- - page - Use the value of this attribute as a
- module-relative URI, and generate a server-relative
- URI by including the context path and module
- prefix.
-
-
- Normally, the hyperlink you specify with one of the
- attributes described in the previous paragraph will be left
- unchanged (other than URL rewriting if necessary). However,
- there are three ways you can append one or more dynamically
- defined query parameters to the hyperlink -- specify a single
- parameter with the paramId attribute (and its
- associated attributes to select the value), or specify the
- name (and optional property)
- attributes to select a java.util.Map bean that
- contains one or more parameter ids and corresponding values,
- or nest one or more <html:param> tags in the tag body.
-
-
- To specify a single parameter, use the paramId
- attribute to define the name of the request parameter to be
- submitted. To specify the corresponding value, use one of the
- following approaches:
-
- - Specify only the
paramName attribute
- - The named JSP bean (optionally scoped by the value of the
- paramScope attribute) must identify a value
- that can be converted to a String.
- - Specify both the
paramName and
- paramProperty attributes - The specified
- property getter method will be called on the JSP bean
- identified by the paramName (and optional
- paramScope) attributes, in order to select
- a value that can be converted to a String.
-
-
- If you prefer to specify a java.util.Map that
- contains all of the request parameters to be added to the
- hyperlink, use one of the following techniques:
-
- - Specify only the
name attribute -
- The named JSP bean (optionally scoped by the value of
- the scope attribute) must identify a
- java.util.Map containing the parameters.
- - Specify both
name and
- property attributes - The specified
- property getter method will be called on the bean
- identified by the name (and optional
- scope) attributes, in order to return the
- java.util.Map containing the parameters.
-
-
- As the Map is processed, the keys are assumed
- to be the names of query parameters to be appended to the
- hyperlink. The value associated with each key must be either
- a String or a String array representing the parameter value(s),
- or an object whose toString() method will be called.
- If a String array is specified, more than one value for the
- same query parameter name will be created.
-
- Supplmenting these two methods, you can nest one or more
- <html:param> tags to dynamically add parameters in a
- logic-friendly way (such as executing a for loop that
- assigns the name/value pairs at runtime). This method does
- not compete with the aforementioned; it will adds its
- parameters in addition to whatever parameters are
- already specified.
-
- Additionally, you can request that the current transaction
- control token, if any, be included in the generated hyperlink
- by setting the transaction attribute to
- true.
- You can also request that an anchor ("#xxx") be added to the
- end of the URL that is created by any of the above mechanisms,
- by using the anchor attribute.
-
- ]]>
-
-
- accesskey
- false
- true
-
- The keyboard character used to move focus immediately
- to this element.
- ]]>
-
-
-
- action
- false
- true
-
- Logical name of a Action that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
-
- Additionally, you can specify a module prefix
- for linking to other modules.
-
- ]]>
-
-
-
- module
- false
- true
-
- Prefix name of a Module that
- contains the action mapping for the Action
- that is specified by the action attribute.
- You must specify an action
- attribute for this to have an effect.
-
- Note: Use "" to map to the default module.
- ]]>
-
-
-
- anchor
- false
- true
-
- Optional anchor tag ("#xxx") to be added to the generated
- hyperlink. Specify this value without any
- "#" character.
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- forward
- false
- true
-
- Logical name of a global ActionForward that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- href
- false
- true
-
- The URL to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then indexed parameter with name from indexId attribute
- will be added to the query string. Indexed parameter looks like
- "index[32]". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- indexId
- false
- true
-
-
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- linkName
- false
- true
-
- The anchor name to be defined within this page, so that
- you can reference it with intra-page hyperlinks. In other
- words, the value specified here will render a "name" element
- in the generated anchor tag.
- ]]>
-
-
-
- name
- false
- true
-
- The name of a JSP bean that contains a Map
- representing the query parameters (if property
- is not specified), or a JSP bean whose property getter is
- called to return a Map (if property
- is specified).
- ]]>
-
-
-
- onblur
- false
- true
-
- JavaScript event handler that is executed when
- this element loses input focus.
- ]]>
-
-
-
- onclick
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse click.
- ]]>
-
-
-
- ondblclick
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse double click.
- ]]>
-
-
-
- onfocus
- false
- true
-
- JavaScript event handler that is executed when
- this element receives input focus.
- ]]>
-
-
-
- onkeydown
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key down event.
- ]]>
-
-
-
- onkeypress
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key press event.
- ]]>
-
-
-
- onkeyup
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a key up event.
- ]]>
-
-
-
- onmousedown
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse down event.
- ]]>
-
-
-
- onmousemove
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse move event.
- ]]>
-
-
-
- onmouseout
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse out event.
- ]]>
-
-
-
- onmouseover
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse over event.
- ]]>
-
-
-
- onmouseup
- false
- true
-
- JavaScript event handler that is executed when
- this element receives a mouse up event.
- ]]>
-
-
-
- page
- false
- true
-
- The module-relative path (beginning with a "/"
- character) to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify exactly
- one of the action attribute,
- forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- paramId
- false
- true
-
- The name of the request parameter that will be dynamically
- added to the generated hyperlink. The corresponding value is
- defined by the paramName and (optional)
- paramProperty attributes, optionally scoped by
- the paramScope attribute
- ]]>
-
-
-
- paramName
- false
- true
-
- The name of a JSP bean that is a String containing the
- value for the request parameter named by paramId
- (if paramProperty is not specified), or a JSP
- bean whose property getter is called to return a String
- (if paramProperty is specified). The JSP bean
- is constrained to the bean scope specified by the
- paramScope property, if it is specified.
- ]]>
-
-
-
- paramProperty
- false
- true
-
- The name of a property of the bean specified by the
- paramName attribute, whose return value must
- be a String containing the value of the request parameter
- (named by the paramId attribute) that will be
- dynamically added to this hyperlink.
- ]]>
-
-
-
- paramScope
- false
- true
-
- The scope within which to search for the bean specified
- by the paramName attribute. If not specified,
- all scopes are searched.
- ]]>
-
-
-
- property
- false
- true
-
- The name of a property of the bean specified by the
- name attribute, whose return value must be
- a java.util.Map containing the query parameters
- to be added to the hyperlink. You must
- specify the name attribute if you specify
- this attribute.
- ]]>
-
-
-
- scope
- false
- true
-
- The scope within which to search for the bean specified
- by the name attribute. If not specified, all
- scopes are searched.
- ]]>
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this element.
- ]]>
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
- The tab order (ascending positive integers) for
- this element.
- ]]>
-
-
-
- target
- false
- true
-
- The window target in which the resource requested by this
- hyperlink will be displayed, for example in a framed
- presentation.
- ]]>
-
-
-
- title
- false
- true
-
- The advisory title for this hyperlink.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- transaction
- false
- true
- boolean
-
- If set to true, any current transaction
- control token will be included in the generated hyperlink,
- so that it will pass an isTokenValid() test
- in the receiving Action.
- ]]>
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
- If set to true, LocalCharacterEncoding will be
- used, that is, the characterEncoding set to the HttpServletResponse,
- as prefered character encoding rather than UTF-8, when
- URLEncoding is done on parameters of the URL.
- ]]>
-
-
-
-
- param
- org.apache.struts.taglib.html.ParamTag
-
- Adds a parameter to the following tags:
-
- - <html:frame>
- - <html:link>
- - <html:rewrite>
-
-
-
- - Since:
- - Struts 1.3.6
- ]]>
-
-
- name
- true
- true
-
- The String containing the name of the request parameter.
- ]]>
-
-
-
- value
- false
- true
-
- The value of the request parameter specified by the
- name attribute, whose return value must
- be a String or String[] that will be dynamically added to
- this hyperlink.
- ]]>
-
-
-
-
- messages
- org.apache.struts.taglib.html.MessagesTag
- org.apache.struts.taglib.html.MessagesTei
- JSP
-
-
- Conditionally display a set of accumulated messages.
-
-
- Displays a set of messages prepared by a business
- logic component and stored as an ActionMessages
- object, ActionErrors object, a String,
- or a String array in any scope. If
- such a bean is not found, nothing will be rendered. The messages are
- placed into the page scope in the body of this tag where they can be displayed
- by standard JSP methods. (For example: <bean:write>,<c:out>)
-
-
- In order to use this tag successfully, you must have
- defined an application scope MessageResources
- bean under the default attribute name.
- ]]>
-
-
- id
- true
- false
-
- null.
- ]]>
-
-
-
- bundle
- false
- true
-
-
-
-
-
- locale
- false
- true
-
-
-
-
-
- name
- false
- true
-
- Globals.ERROR_KEY constant string will be used.
- ]]>
-
-
-
- property
- false
- true
-
-
-
-
-
- header
- false
- true
-
-
-
-
-
- footer
- false
- true
-
-
-
-
-
- message
- false
- true
-
- Globals.ERROR_KEY constant string,
- but if this attribute is set to 'true' the bean
- will be retrieved from the Globals.MESSAGE_KEY
- constant string. Also if this is set to 'true', any value
- assigned to the name attribute will be ignored.
- ]]>
-
-
-
-
- multibox
- org.apache.struts.taglib.html.MultiboxTag
-
-
- Render A Checkbox Input Field
-
-
- Renders an HTML <input> element of type
- checkbox, whose "checked" status is
- initialized based on whether the specified value
- matches one of the elements of the underlying
- property's array of current values. This element is
- useful when you have large numbers of checkboxes, and
- prefer to combine the values into a single
- array-valued property instead of multiple boolean
- properties. This tag is only valid when nested
- inside a form tag body.
-
- WARNING: In order to correctly
- recognize cases where none of the associated checkboxes
- are selected, the ActionForm bean
- associated with this form must include a statement
- setting the corresponding array to zero length in the
- reset() method.
-
- The value to be returned to the server, if this checkbox is
- selected, must be defined by one of the following methods:
-
- - Specify a
value attribute, whose contents will
- be used literally as the value to be returned.
- - Specify no
value attribute, and the nested
- body content of this tag will be used as the value to be
- returned.
-
-
-
- Also note that a map backed attribute cannot be used to hold a the String[]
- for a group of multibox tags.
-
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- option
- org.apache.struts.taglib.html.OptionTag
-
-
- Render A Select Option
-
-
- Render an HTML <option> element,
- representing one of the choices for an enclosing
- <select> element. The text displayed to the
- user comes from either the body of this tag, or from a message
- string looked up based on the bundle,
- locale, and key attributes.
-
- If the value of the corresponding bean property matches the
- specified value, this option will be marked selected. This tag
- is only valid when nested inside a
- <html:select> tag body.
- ]]>
-
-
- bundle
- false
- true
-
-
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this option should be
- disabled.
- ]]>
-
-
-
- filter
- false
- true
- boolean
-
- true if you want the option label to be
- filtered for sensitive characters in HTML. By default, such
- a value is NOT filtered.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- key
- false
- true
-
- bundle for
- the text displayed to the user for this option. If not
- specified, the text to be displayed is taken from the body
- content of this tag.
- ]]>
-
-
-
- locale
- false
- true
-
- key attribute. If not specified, uses the
- standard Struts session attribute name.
- ]]>
-
-
-
- style
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- value
- true
- true
-
-
-
-
-
-
- options
- org.apache.struts.taglib.html.OptionsTag
- empty
-
-
- Render a Collection of Select Options
-
-
- Renders a set of HTML <option> elements,
- representing possible choices for a <select>
- element. This tag can be used multiple times within a single
- <html:select> element, either in conjunction
- with or instead of one or more <html:option>
- or <html:optionsCollection> elements.
-
- This tag operates in one of two major modes, depending on
- whether or not the collection attribute is
- specified. If the collection attribute is
- included, the following rules apply:
-
- - The collection attribute is interpreted
- as the name of a JSP bean, in some scope, that itself
- represents a collection of individual beans, one per option
- value to be rendered.
- - The property attribute is interpreted as
- the name of a property of the individual beans included in
- the collection, and is used to retrieve the value that will
- be returned to the server if this option is selected.
- - The labelProperty attribute is interpreted
- as the name of a property of the individual beans included
- in the collection, and is used to retrieve the label that
- will be displayed to the user for this option. If the
-
labelProperty attribute is not specified, the
- property named by the property attribute will
- be used to select both the value returned to the server and
- the label displayed to the user for this option.
-
-
- If the collection attribute is not specified,
- the rules described in the remainder of this section apply.
-
- The collection of values actually selected depends on the presence or
- absence of the name and property attributes. The
- following combinations are allowed:
-
- - Only
name is specified - The value of this attribute
- is the name of a JSP bean in some scope that is the
- collection.
- - Only
property is specified - The value of this
- attribute is the name of a property of the ActionForm bean associated
- with our form, which will return the collection.
- - Both
name and property are specified -
- The value of the name attribute identifies a JSP bean
- in some scope. The value of the property attribute is the
- name of some property of that bean which will return the collection.
-
-
- The collection of labels displayed to the user can be the same as the
- option values themselves, or can be different, depending on the presence or
- absence of the labelName and labelProperty
- attributes. If this feature is used, the collection of labels must contain
- the same number of elements as the corresponding collection of values.
- The following combinations are allowed:
-
- - Neither
labelName nor labelProperty is
- specified - The labels will be the same as the option values
- themselves.
- - Only
labelName is specified - The value of this
- attribute is the name of a JSP bean in some scope that is the
- collection.
- - Only
labelProperty is specified - The value of this
- attribute is the name of a property of the ActionForm bean associated
- with our form, which will return the collection.
- - Both
labelName and labelProperty are
- specified - The value of the labelName attribute
- identifies a JSP bean in some scope. The value of the
- labelProperty attribute is the name of some property of
- that bean which will return the collection.
-
-
-
- Note that this tag does not support a styleId
- attribute, as it would have to apply the value to all the
- option elements created by this element, which would
- mean that more than one id element might have the same
- value, which the HTML specification says is illegal.
-
- ]]>
-
-
- collection
- false
- true
-
-
-
-
-
- filter
- false
- true
- boolean
-
- false if you do NOT want the option labels
- filtered for sensitive characters in HTML. By default, such
- values are filtered.
- ]]>
-
-
-
- labelName
- false
- true
-
-
-
-
-
- labelProperty
- false
- true
-
-
-
-
-
- name
- false
- true
-
-
-
-
-
- property
- false
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
-
- optionsCollection
- org.apache.struts.taglib.html.OptionsCollectionTag
- empty
-
-
- Render a Collection of Select Options
-
-
- Renders a set of HTML <option> elements,
- representing possible choices for a <select>
- element. This tag can be used multiple times within a single
- <html:select> element, either in conjunction
- with or instead of one or more <html:option>
- or <html:options> elements.
-
- This tag operates on a collection of beans, where each bean
- has a label property and a value
- property. The actual names of these properties can be configured
- using the label and value attributes
- of this tag.
-
- This tag differs from the <html:options> tag
- in that it makes more consistent use of the name and
- property attributes, and allows the collection to be
- more easily obtained from the enclosing form bean.
-
- Note that this tag does not support a styleId
- attribute, as it would have to apply the value to all the
- option elements created by this element, which would
- mean that more than one id element might have the same
- value, which the HTML specification says is illegal.
- ]]>
-
-
- filter
- false
- true
- boolean
-
- false if you do NOT want the option labels
- filtered for sensitive characters in HTML. By default, such
- values are filtered.
- ]]>
-
-
-
- label
- false
- true
-
-
-
-
-
- name
- false
- true
-
-
-
-
-
- property
- false
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- value
- false
- true
-
-
-
-
-
-
- password
- org.apache.struts.taglib.html.PasswordTag
-
-
- Render A Password Input Field
-
-
- Renders an HTML <input> element of type password, populated
- from the specified value or the specified property of the bean
- associated with our current form. This tag is only valid when
- nested inside a form tag body.
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- onselect
- false
- true
-
- Since:
- Struts 1.3.10
- ]]>
-
-
-
- property
- true
- true
-
-
-
-
-
- readonly
- false
- true
- boolean
-
- true if this input field should be
- read only.
- ]]>
-
-
-
- redisplay
- false
- true
- boolean
-
- false on login pages.
- Defaults to true for consistency with
- all other form tags that redisplay their contents.
- ]]>
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- size
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- radio
- org.apache.struts.taglib.html.RadioTag
-
-
- Render A Radio Button Input Field
-
-
-
- Renders an HTML <input> element of type radio, populated from
- the specified property of the bean associated with our current form.
- This tag is only valid when nested inside a form tag body.
-
-
- If an iterator is used to render a series of radio tags, the
- idName attribute may be used to specify the name of the bean
- exposed by the iterator. In this case, the value attribute is
- used as the name of a property on the idName bean that returns
- the value of the radio tag in this iteration.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- true
- true
-
-
-
-
-
- idName
- false
- true
-
- Name of the bean (in some scope) that will return the
- value of the radio tag. Usually exposed
- by an iterator. When the idName attribute is
- present, the value attribute is used as the name of the
- property on the idName bean that will return the
- value of the radio tag for this iteration.
-
- - Since:
- - Struts 1.1
- ]]>
-
-
-
-
- reset
- org.apache.struts.taglib.html.ResetTag
-
-
- Render A Reset Button Input Field
-
-
- Renders an HTML <input> element of type reset.
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- false
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- rewrite
- org.apache.struts.taglib.html.RewriteTag
- JSP
-
- Render an URI
-
- Renders a request URI based on exactly the same rules
- as the <html:link> tag does,
- but without creating
- the <a> hyperlink. This value is useful
- when you want to generate a string constant for use by
- a JavaScript procedure.
- ]]>
-
-
- action
- false
- true
-
- Logical name of a Action that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, or the page
- attribute.
-
- Additionally, you can specify a module prefix
- for linking to other modules.
-
-
- - Since:
- - Struts 1.2.0
- ]]>
-
-
-
- module
- false
- true
-
- Prefix name of a Module that
- contains the action mapping for the Action
- that is specified by the action attribute.
- You must specify an action
- attribute for this to have an effect.
-
- Note: Use "" to map to the default module.
- ]]>
-
-
-
- anchor
- false
- true
-
- Optional anchor tag ("#xxx") to be added to the generated
- hyperlink. Specify this value without any
- "#" character.
- ]]>
-
-
-
- forward
- false
- true
-
- Logical name of a global ActionForward that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, or the page
- attribute.
- ]]>
-
-
-
- href
- false
- true
-
- The URL to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute, or the page
- attribute.
- ]]>
-
-
-
- name
- false
- true
-
- The name of a JSP bean that contains a Map
- representing the query parameters (if property
- is not specified), or a JSP bean whose property getter is
- called to return a Map (if property
- is specified).
- ]]>
-
-
-
- page
- false
- true
-
- The module-relative path (beginning with a "/"
- character) to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify exactly
- one of the action attribute, the
- forward attribute, the
- href attribute, or the page
- attribute.
- ]]>
-
-
-
- paramId
- false
- true
-
- The name of the request parameter that will be dynamically
- added to the generated hyperlink. The corresponding value is
- defined by the paramName and (optional)
- paramProperty attributes, optionally scoped by
- the paramScope attribute
- ]]>
-
-
-
- paramName
- false
- true
-
- The name of a JSP bean that is a String containing the
- value for the request parameter named by paramId
- (if paramProperty is not specified), or a JSP
- bean whose property getter is called to return a String
- (if paramProperty is specified). The JSP bean
- is constrained to the bean scope specified by the
- paramScope property, if it is specified.
- ]]>
-
-
-
- paramProperty
- false
- true
-
- The name of a property of the bean specified by the
- paramName attribute, whose return value must
- be a String containing the value of the request parameter
- (named by the paramId attribute) that will be
- dynamically added to this hyperlink.
- ]]>
-
-
-
- paramScope
- false
- true
-
- The scope within which to search for the bean specified
- by the paramName attribute. If not specified,
- all scopes are searched.
- ]]>
-
-
-
- property
- false
- true
-
- The name of a property of the bean specified by the
- name attribute, whose return value must be
- a java.util.Map containing the query parameters
- to be added to the hyperlink. You must
- specify the name attribute if you specify
- this attribute.
- ]]>
-
-
-
- scope
- false
- true
-
- The scope within which to search for the bean specified
- by the name attribute. If not specified, all
- scopes are searched.
- ]]>
-
-
-
- transaction
- false
- true
- boolean
-
- If set to true, any current transaction
- control token will be included in the generated hyperlink,
- so that it will pass an isTokenValid() test
- in the receiving Action.
- ]]>
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
- If set to true, LocalCharacterEncoding will be
- used, that is, the characterEncoding set to the HttpServletResponse,
- as prefered character encoding rather than UTF-8, when
- URLEncoding is done on parameters of the URL.
- ]]>
-
-
-
-
- select
- org.apache.struts.taglib.html.SelectTag
- JSP
-
-
- Render A Select Element
-
-
- Renders an HTML <select> element, associated
- with a bean property specified by our attributes. This
- tag is only valid when nested inside a form tag body.
-
-
- This tag operates in two modes, depending upon the
- state of the multiple attribute, which
- affects the data type of the associated property you
- should use:
-
- - multiple="true" IS NOT selected -
- The corresponding property should be a scalar
- value of any supported data type.
- - multiple="true" IS selected -
- The corresponding property should be an array
- of any supported data type.
-
-
- WARNING: In order to correctly
- recognize cases where no selection at all is made, the
- ActionForm bean associated with this form
- must include a statement resetting the scalar property
- to a default value (if multiple is not
- set), or the array property to zero length (if
- multiple is set) in the
- reset() method.
- ]]>
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- multiple
- false
- true
-
-
-
-
-
- name
- false
- true
-
- <html:form> tag is utilized.
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- size
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- submit
- org.apache.struts.taglib.html.SubmitTag
-
-
- Render A Submit Button
-
-
- Renders an HTML <input> element of type submit.
-
- If a graphical button is needed (a button with an image), then the
- <html:image> tag is more appropriate.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true
- then name of the html tag will be rendered as
- "propertyName[34]". Number in brackets will be generated for
- every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- property
- false
- true
-
-
-
-
-
- style
- false
- true
-
-
-
-
-
- styleClass
- false
- true
-
-
-
-
-
- styleId
- false
- true
-
-
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- text
- org.apache.struts.taglib.html.TextTag
-
- Render An Input Field of Type text
-
- Render an input field of type text. This tag is only valid when
- nested inside a form tag body.
- ]]>
-
-
- accesskey
- false
- true
-
- The keyboard character used to move focus immediately to this
- element.
- ]]>
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- onselect
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- readonly
- false
- true
- boolean
-
- true if this input field should be
- read only.
- ]]>
-
-
-
- size
- false
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- textarea
- org.apache.struts.taglib.html.TextareaTag
-
-
- Render A Textarea
-
-
- Render a textarea element. This tag is only valid when nested
- inside a form tag body.
- ]]>
-
-
- accesskey
- false
- true
-
-
-
-
-
- alt
- false
- true
-
- The alternate text for this element.
- ]]>
-
-
-
- altKey
- false
- true
-
- The message resources key of the alternate text for this
- element.
- ]]>
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- cols
- false
- true
-
-
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- true if this input field should be
- disabled.
- ]]>
-
-
-
- errorKey
- false
- true
-
- Name of the bean (in any scope) under which our error messages
- have been stored. If not present, the name specified by the
- Globals.ERROR_KEY constant string will be used.
-
- N.B. This is used in conjunction with the
- errorStyle, errorStyleClass and
- errorStyleId attributes and should be set to
- the same value as the name attribute on the
- <html:errors/> tag.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- CSS styles to be applied to this HTML element if
- an error exists for it.
-
- N.B. If present, this overrides the
- style attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element if
- an error exists for it (renders a "class" attribute).
-
- N.B. If present, this overrides the
- styleClass attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Identifier to be assigned to this HTML element if
- an error exists for it (renders an "id" attribute).
-
- N.B. If present, this overrides the
- styleId attribute in the event of an error.
-
- - Since:
- - Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
- true then name of the html tag will be rendered as
- "id[34].propertyName". Number in brackets will be generated
- for every iteration and taken from ancestor logic:iterate tag.
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
-
-
- onblur
- false
- true
-
-
-
-
-
- onchange
- false
- true
-
-
-
-
-
- onclick
- false
- true
-
-
-
-
-
- ondblclick
- false
- true
-
-
-
-
-
- onfocus
- false
- true
-
-
-
-
-
- onkeydown
- false
- true
-
-
-
-
-
- onkeypress
- false
- true
-
-
-
-
-
- onkeyup
- false
- true
-
-
-
-
-
- onmousedown
- false
- true
-
-
-
-
-
- onmousemove
- false
- true
-
-
-
-
-
- onmouseout
- false
- true
-
-
-
-
-
- onmouseover
- false
- true
-
-
-
-
-
- onmouseup
- false
- true
-
-
-
-
-
- onselect
- false
- true
-
-
-
-
-
- property
- true
- true
-
-
-
-
-
- readonly
- false
- true
- boolean
-
- true if this input field should be
- read only.
- ]]>
-
-
-
- rows
- false
- true
-
-
-
-
-
- style
- false
- true
-
- CSS styles to be applied to this HTML element.
-
- N.B. If present, the errorStyle
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleClass
- false
- true
-
- CSS stylesheet class to be applied to this HTML element
- (renders a "class" attribute).
-
- N.B. If present, the errorStyleClass
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- styleId
- false
- true
-
- Identifier to be assigned to this HTML element (renders
- an "id" attribute).
-
- N.B. If present, the errorStyleId
- overrides this attribute in the event of an error for the element.
- ]]>
-
-
-
- tabindex
- false
- true
-
-
-
-
-
- title
- false
- true
-
- The advisory title for this element.
- ]]>
-
-
-
- titleKey
- false
- true
-
- The message resources key for the advisory title
- for this element.
- ]]>
-
-
-
- value
- false
- true
-
-
-
-
-
-
- xhtml
- org.apache.struts.taglib.html.XhtmlTag
- empty
-
- Render HTML tags as XHTML
-
-
- Using this tag in a page tells all other html taglib tags
- to render themselves as XHTML 1.0. This is useful
- when composing pages with JSP includes or Tiles.
- <html:html xhtml="true"> has a similar effect. This
- tag has no attributes; you use it like this: <html:xhtml/>.
-
-
- Note: Included pages do not inherit the rendering
- style of the including page. Each JSP fragment or Tile must use this
- tag to render as XHTML.
-
- ]]>
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-logic.tld b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-logic.tld
deleted file mode 100644
index 303ae5725702..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-logic.tld
+++ /dev/null
@@ -1,1891 +0,0 @@
-
-
-
-
- 1.3
- 1.2
- logic
- http://struts.apache.org/tags-logic
-
- Note: Some of the features in this taglib are also
- available in the JavaServer Pages Standard Tag Library (JSTL).
- The Struts team encourages the use of the standard tags over the Struts
- specific tags when possible.
-
- This tag library contains tags that are useful in managing conditional
- generation of output text, looping over object collections for
- repetitive generation of output text, and application flow management.
-
- For tags that do value comparisons (equal,
- greaterEqual, greaterThan, lessEqual,
- lessThan, notEqual), the following rules apply:
-
- - The specified value is examined. If it can be converted successfully
- to a
double or a long, it is assumed that the
- ultimate comparison will be numeric (either floating point or integer).
- Otherwise, a String comparison will be performed.
- - The variable to be compared to is retrieved, based on the selector
- attribute(s) (
cookie, header,
- name, parameter, property)
- present on this tag. It will be converted to the appropriate type
- for the comparison, as determined above.
- - If the specified variable or property returns null, it will be
- coerced to a zero-length string before the comparison occurs.
- - The specific comparison for this tag will be performed, and the nested
- body content of this tag will be evaluated if the comparison returns
- a
true result.
-
-
- For tags that do substring matching (match,
- notMatch), the following rules apply:
-
- - The specified variable is retrieved, based on the selector attribute(s)
- (
cookie, header, name,
- parameter, property) present on this tag.
- The variable is converted to a String, if necessary.
- - A request time exception will be thrown if the specified variable
- cannot be retrieved, or has a null value.
- - The specified value is checked for existence as a substring of the
- variable, in the position specified by the
location
- attribute, as follows: at the beginning (if location is set to
- start), at the end (if location is set to
- end), or anywhere (if location is not specified).
-
-
- Many of the tags in this tag library will throw a
- JspException at runtime when they are utilized incorrectly
- (such as when you specify an invalid combination of tag attributes). JSP
- allows you to declare an "error page" in the <%@ page %>
- directive. If you wish to process the actual exception that caused the
- problem, it is passed to the error page as a request attribute under key
- org.apache.struts.action.EXCEPTION.
-
- ]]>
-
-
- empty
- org.apache.struts.taglib.logic.EmptyTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested variable is
- either null or an empty string.
-
-
- This tag evaluates its nested body content only if the specified value
- is either absent (i.e. null), an empty string (i.e. a
- java.lang.String with a length of zero), or an empty
- java.util.Collection or java.util.Map (tested by
- the .isEmpty() method on the respective interface).
-
-
- JSTL: The equivalent JSTL tag is <c:if> using the
- empty operator. For example,
-
-
- <c:if test="${empty sessionScope.myBean.myProperty}">
- do something
- </c:if>
-
-
-
- - Since:
- - Struts 1.1
- ]]>
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
-
- equal
- org.apache.struts.taglib.logic.EqualTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is equal to the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable and value are equal.
-
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- forward
- org.apache.struts.taglib.logic.ForwardTag
- empty
-
-
- Forward control to the page specified by the specified ActionForward
- entry.
-
-
- Performs a PageContext.forward() or
- HttpServletResponse.sendRedirect() call for the global
- ActionForward entry for the specified name. URL
- rewriting will occur automatically if a redirect is performed.
- ]]>
-
-
- name
- true
- true
-
-
- The logical name of the global ActionForward entry
- that identifies the destination, and forwarding approach, to be used.
- Note: forwarding to Tiles definitions is not supported
- from this tag. You should forward to them from an Action subclass.
-
- ]]>
-
-
-
-
- greaterEqual
- org.apache.struts.taglib.logic.GreaterEqualTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is greater than or equal to the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable is greater than or equal
- to the value.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- greaterThan
- org.apache.struts.taglib.logic.GreaterThanTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is greater than the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable is greater than
- the value.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- iterate
- org.apache.struts.taglib.logic.IterateTag
- org.apache.struts.taglib.logic.IterateTei
- JSP
-
-
- Repeat the nested body content of this tag over a specified collection.
-
-
- Repeats the nested body content of this tag once for every element
- of the specified collection, which must be an Iterator,
- a Collection, a Map (whose values are to be
- iterated over), or an array. The collection to be iterated over must be
- specified in one of the following ways:
-
- - As a runtime expression specified as the value of the
-
collection attribute.
- - As a JSP bean specified by the
name attribute.
- - As the property, specified by the
property, of the
- JSP bean specified by the name attribute.
-
-
- The collection to be iterated over MUST conform to one of the following
- requirements in order for iteration to be successful:
-
- - An array of Java objects or primitives.
-
- - An implementation of
java.util.Collection, including
- ArrayList and Vector.
- - An implementation of
java.util.Enumeration.
- - An implementation of
java.util.Iterator.
- - An implementation of
java.util.Map, including
- HashMap, Hashtable, and
- TreeMap. NOTE - See below for
- additional information about accessing Maps.
-
-
- Normally, each object exposed by the iterate tag is an element
- of the underlying collection you are iterating over. However, if you
- iterate over a Map, the exposed object is of type
- Map.Entry that has two properties:
-
- key - The key under which this item is stored in the
- underlying Map.
- value - The value that corresponds to this key.
-
-
- So, if you wish to iterate over the values of a Hashtable, you would
- implement code like the following:
-
- <logic:iterate id="element" name="myhashtable">
- Next element is <bean:write name="element" property="value"/>
- </logic:iterate>
-
-
- If the collection you are iterating over can contain null
- values, the loop will still be performed but no page scope attribute
- (named by the id attribute) will be created for that loop
- iteration. You can use the <logic:present> and
- <logic:notPresent> tags to test for this case.
-
- ]]>
-
-
- collection
- false
- true
- java.lang.Object
-
- A runtime expression that evaluates to a collection (conforming to
- the requirements listed above) to be iterated over.
- ]]>
-
-
-
- id
- true
- false
-
- The name of a page scope JSP bean that will contain the current
- element of the collection on each iteration, if it is not
- null.
- ]]>
-
-
-
- indexId
- false
- false
-
- The name of a page scope JSP bean that will contain the current
- index of the collection on each iteration.
- ]]>
-
-
-
- length
- false
- true
-
- The maximum number of entries (from the underlying collection) to be
- iterated through on this page. This can be either an integer that
- directly expresses the desired value, or the name of a JSP bean (in
- any scope) of type java.lang.Integer that defines the
- desired value. If not present, there will be no limit on the number
- of iterations performed.
- ]]>
-
-
-
- name
- false
- true
-
- The name of the JSP bean containing the collection to be iterated
- (if property is not specified), or the JSP bean whose
- property getter returns the collection to be iterated (if
- property is specified).
- ]]>
-
-
-
- offset
- false
- true
-
- The zero-relative index of the starting point at which entries from
- the underlying collection will be iterated through. This can be either
- an integer that directly expresses the desired value, or the name of a
- JSP bean (in any scope) of type java.lang.Integer that
- defines the desired value. If not present, zero is assumed (meaning
- that the collection will be iterated from the beginning.
- ]]>
-
-
-
- property
- false
- true
-
- Name of the property, of the JSP bean specified by name,
- whose getter returns the collection to be iterated.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- type
- false
- true
-
- Fully qualified Java class name of the element to be exposed through
- the JSP bean named from the id attribute. If not present,
- no type conversions will be performed. NOTE: The actual elements of
- the collection must be assignment-compatible with this class, or a
- request time ClassCastException will occur.
- ]]>
-
-
-
-
- lessEqual
- org.apache.struts.taglib.logic.LessEqualTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is less than or equal to the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable is less than or equal
- to the value.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- lessThan
- org.apache.struts.taglib.logic.LessThanTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is less than the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable is less than
- the value.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- match
- org.apache.struts.taglib.logic.MatchTag
- JSP
-
-
- Evaluate the nested body content of this tag if the specified value
- is an appropriate substring of the requested variable.
-
-
- Matches the variable specified by one of the selector attributes
- (as a String) against the specified constant value. If the value is
- a substring (appropriately limited by the location
- attribute), the nested body content of this tag is evaluated.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be matched is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be matched is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- location
- false
- true
-
- If not specified, a match between the variable and the value may
- occur at any position within the variable string. If specified, the
- match must occur at the specified location (either start
- or end) of the variable string.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be matched is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be matched is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be matched is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value which is checked for existence as a substring
- of the specified variable.
- ]]>
-
-
-
-
- messagesNotPresent
- org.apache.struts.taglib.logic.MessagesNotPresentTag
- JSP
-
-
- Generate the nested body content of this tag if the specified
- message is not present in any scope.
-
-
- Evaluates the nested body content of this tag if
- an ActionMessages
- object, ActionErrors object, a String,
- or a String array is not present in any scope. If
- such a bean is found, nothing will be rendered.
-
-
- - Since:
- - Struts 1.1
- ]]>
-
-
- name
- false
- true
-
- The parameter key used to retrieve the message from page, request,
- session or application scope.
- ]]>
-
-
-
- property
- false
- true
-
- Name of the property for which messages should be
- retrieved. If not specified, all messages (regardless
- of property) are retrieved.
-
- ]]>
-
-
-
- message
- false
- true
-
- By default the tag will retrieve the bean it will
- iterate over from the Globals.ERROR_KEY constant string,
- but if this attribute is set to 'true' the bean
- will be retrieved from the Globals.MESSAGE_KEY
- constant string. Also if this is set to 'true', any value
- assigned to the name attribute will be ignored.
-
- ]]>
-
-
-
-
- messagesPresent
- org.apache.struts.taglib.logic.MessagesPresentTag
- JSP
-
-
- Generate the nested body content of this tag if the specified
- message is present in any scope.
-
-
- Evaluates the nested body content of this tag if
- an ActionMessages
- object, ActionErrors object, a String,
- or a String array is present in any scope. If
- such a bean is not found, nothing will be rendered.
-
-
- - Since:
- - Struts 1.1
- ]]>
-
-
- name
- false
- true
-
- The parameter key used to retrieve the message from page, request,
- session, or application scope.
- ]]>
-
-
-
- property
- false
- true
-
- Name of the property for which messages should be
- retrieved. If not specified, all messages (regardless
- of property) are retrieved.
-
- ]]>
-
-
-
- message
- false
- true
-
- By default the tag will retrieve the bean it will
- iterate over from the Globals.ERROR_KEY constant string,
- but if this attribute is set to 'true' the bean
- will be retrieved from the Globals.MESSAGE_KEY
- constant string. Also if this is set to 'true', any value
- assigned to the name attribute will be ignored.
-
- ]]>
-
-
-
-
- notEmpty
- org.apache.struts.taglib.logic.NotEmptyTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested variable is
- neither null, nor an empty string, nor an empty java.util.Collection
- (tested by the .isEmpty() method on the java.util.Collection interface).
-
-
- This tag evaluates its nested body content only if the specified value
- is present (i.e. not null) and is not an empty string (i.e. a
- java.lang.String with a length of zero).
-
-
- JSTL: The equivalent JSTL tag is <c:if> using the
- ! empty operator. For example,
-
-
- <c:if test="${ ! empty sessionScope.myBean.myProperty}">
- do something
- </c:if>
-
-
- ]]>
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
-
- notEqual
- org.apache.struts.taglib.logic.NotEqualTag
- JSP
-
-
- Evaluate the nested body content of this tag if the requested
- variable is not equal to the specified value.
-
-
- Compares the variable specified by one of the selector attributes
- against the specified constant value. The nested body content of this
- tag is evaluated if the variable and value are not equal.
-
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be compared is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be compared is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be compared is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be compared is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be compared is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value to which the variable, specified by other
- attribute(s) of this tag, will be compared.
- ]]>
-
-
-
-
- notMatch
- org.apache.struts.taglib.logic.NotMatchTag
- JSP
-
-
- Evaluate the nested body content of this tag if the specified value
- is not an appropriate substring of the requested variable.
-
-
- Matches the variable specified by one of the selector attributes
- (as a String) against the specified constant value. If the value is
- not a substring (appropriately limited by the location
- attribute), the nested body content of this tag is evaluated.
- ]]>
-
-
- cookie
- false
- true
-
- The variable to be matched is the value of the cookie whose
- name is specified by this attribute.
- ]]>
-
-
-
- header
- false
- true
-
- The variable to be matched is the value of the header whose
- name is specified by this attribute. The name match is performed
- in a case insensitive manner.
- ]]>
-
-
-
- location
- false
- true
-
- If not specified, a match between the variable and the value may
- occur at any position within the variable string. If specified, the
- match must occur at the specified location (either start
- or end) of the variable string.
- ]]>
-
-
-
- name
- false
- true
-
- The variable to be matched is the JSP bean specified by this
- attribute, if property is not specified, or the value
- of the specified property of this bean, if property
- is specified.
- ]]>
-
-
-
- parameter
- false
- true
-
- The variable to be matched is the first, or only, value of the
- request parameter specified by this attribute.
- ]]>
-
-
-
- property
- false
- true
-
- The variable to be matched is the property (of the bean specified
- by the name attribute) specified by this attribute.
- The property reference can be simple, nested, and/or indexed.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- value
- true
- true
-
- The constant value which is checked for existence as a substring
- of the specified variable.
- ]]>
-
-
-
-
- notPresent
- org.apache.struts.taglib.logic.NotPresentTag
- JSP
-
-
- Generate the nested body content of this tag if the specified
- value is not present in this request.
-
-
- Depending on which attribute is specified, this tag checks the
- current request, and evaluates the nested body content of this tag
- only if the specified value is not present. Only one
- of the attributes may be used in one occurrence of this tag, unless
- you use the property attribute, in which case the
- name attribute is also required.
- ]]>
-
-
- cookie
- false
- true
-
- Checks for the existence of a cookie with the specified name.
- ]]>
-
-
-
- header
- false
- true
-
- Checks for the existence of an HTTP header with the specified
- name. The name match is performed in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- Checks for the existence of a JSP bean, in any scope, with the
- specified name. If property is also specified, checks
- for a non-null property value for the specified property.
- ]]>
-
-
-
- parameter
- false
- true
-
- Checks for the existence of at least one occurrence of the
- specified request parameter on this request, even if the parameter
- value is a zero-length string.
- ]]>
-
-
-
- property
- false
- true
-
- Checks for the existence of a non-null property value, returned
- by a property getter method on the JSP bean (in any scope) that is
- specified by the name attribute. Property references
- can be simple, nested, and/or indexed.
- ]]>
-
-
-
- role
- false
- true
-
- Checks whether the currently authenticated user (if any) has been
- associated with the specified security role.
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- user
- false
- true
-
- Checks whether the currently authenticated user principal has the
- specified name.
- ]]>
-
-
-
-
- present
- org.apache.struts.taglib.logic.PresentTag
- JSP
-
-
- Generate the nested body content of this tag if the specified
- value is present in this request.
-
-
- Depending on which attribute is specified, this tag checks the
- current request, and evaluates the nested body content of this tag
- only if the specified value is present. Only one
- of the attributes may be used in one occurrence of this tag, unless
- you use the property attribute, in which case the
- name attribute is also required.
- ]]>
-
-
- cookie
- false
- true
-
- Checks for the existence of a cookie with the specified name.
- ]]>
-
-
-
- header
- false
- true
-
- Checks for the existence of an HTTP header with the specified
- name. The name match is performed in a case insensitive manner.
- ]]>
-
-
-
- name
- false
- true
-
- Checks for the existence of a JSP bean, in any scope, with the
- specified name. If property is also specified, checks
- for a non-null property value for the specified property.
- ]]>
-
-
-
- parameter
- false
- true
-
- Checks for the existence of at least one occurrence of the
- specified request parameter on this request, even if the parameter
- value is a zero-length string.
- ]]>
-
-
-
- property
- false
- true
-
- Checks for the existence of a non-null property value, returned
- by a property getter method on the JSP bean (in any scope) that is
- specified by the name attribute. Property references
- can be simple, nested, and/or indexed.
- ]]>
-
-
-
- role
- false
- true
-
- Checks whether the currently authenticated user (if any) has been
- associated with any of the specified security roles. Use a comma-delimited
- list to check for multiple roles. Example:
- <logic:present role="role1,role2,role3">
- code.....
- </logic:present>
- ]]>
-
-
-
- scope
- false
- true
-
- The bean scope within which to search for the bean named by the
- name property, or "any scope" if not specified.
- ]]>
-
-
-
- user
- false
- true
-
- Checks whether the currently authenticated user principal has the
- specified name.
- ]]>
-
-
-
-
- redirect
- org.apache.struts.taglib.logic.RedirectTag
-
- Render an HTTP Redirect
-
-
- Performs an HttpServletResponse.sendRedirect()
- call to the hyperlink specified by the attributes to this
- tag. URL rewriting will be applied automatically, to
- maintain session state in the absence of cookies.
-
- The base URL for this redirect is calculated based on
- which of the following attributes you specify (you must
- specify exactly one of them):
-
- - forward - Use the value of this attribute as the
- name of a global
ActionForward to be looked
- up, and use the module-relative or context-relative
- URI found there.
- - href - Use the value of this attribute unchanged.
-
- - page - Use the value of this attribute as an
- module-relative URI, and generate a server-relative
- URI by including the context path.
-
-
- Normally, the redirect you specify with one of the
- attributes described in the previous paragraph will be left
- unchanged (other than URL rewriting if necessary). However,
- there are two ways you can append one or more dynamically
- defined query parameters to the hyperlink -- specify a single
- parameter with the paramId attribute (and its
- associated attributes to select the value), or specify the
- name (and optional property)
- attributes to select a java.util.Map bean that
- contains one or more parameter ids and corresponding values.
-
-
- To specify a single parameter, use the paramId
- attribute to define the name of the request parameter to be
- submitted. To specify the corresponding value, use one of the
- following approaches:
-
- - Specify only the
paramName attribute
- - The named JSP bean (optionally scoped by the value of the
- paramScope attribute) must identify a value
- that can be converted to a String.
- - Specify both the
paramName and
- paramProperty attributes - The specified
- property getter method will be called on the JSP bean
- identified by the paramName (and optional
- paramScope) attributes, in order to select
- a value that can be converted to a String.
-
-
- If you prefer to specify a java.util.Map that
- contains all of the request parameters to be added to the
- hyperlink, use one of the following techniques:
-
- - Specify only the
name attribute -
- The named JSP bean (optionally scoped by the value of
- the scope attribute) must identify a
- java.util.Map containing the parameters.
- - Specify both
name and
- property attributes - The specified
- property getter method will be called on the bean
- identified by the name (and optional
- scope) attributes, in order to return the
- java.util.Map containing the parameters.
-
-
- As the Map is processed, the keys are assumed
- to be the names of query parameters to be appended to the
- hyperlink. The value associated with each key must be either
- a String or a String array representing the parameter value(s).
- If a String array is specified, more than one value for the
- same query parameter name will be created.
- ]]>
-
-
- action
- false
- true
-
- Logical name of a global Action that
- contains the actual content-relative URI of the destination
- of this transfer. This hyperlink may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the action attribute, the
- forward attribute, the
- href attribute,
- or the page attribute.
- ]]>
-
-
-
- anchor
- false
- true
-
- Optional anchor tag ("#xxx") to be added to the generated
- hyperlink. Specify this value without any
- "#" character.
- ]]>
-
-
-
- forward
- false
- true
-
- Logical name of a global ActionForward that
- contains the actual content-relative URI of the destination
- of this redirect. This URI may be dynamically
- modified by the inclusion of query parameters, as described
- in the tag description. You must specify
- exactly one of the forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- href
- false
- true
-
- The URL to which this redirect will transfer control.
- This URL may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify
- exactly one of the forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- name
- false
- true
-
- The name of a JSP bean that contains a Map
- representing the query parameters (if property
- is not specified), or a JSP bean whose property getter is
- called to return a Map (if property
- is specified).
- ]]>
-
-
-
- page
- false
- true
-
- The context-relative path (beginning with a "/"
- character) to which this hyperlink will transfer control
- if activated. This hyperlink may be dynamically modified
- by the inclusion of query parameters, as described in the
- tag description. You must specify exactly
- one of the forward attribute, the
- href attribute, the linkName
- attribute, or the page attribute.
- ]]>
-
-
-
- paramId
- false
- true
-
- The name of the request parameter that will be dynamically
- added to the generated hyperlink. The corresponding value is
- defined by the paramName and (optional)
- paramProperty attributes, optionally scoped by
- the paramScope attribute
- ]]>
-
-
-
- paramName
- false
- true
-
- The name of a JSP bean that is a String containing the
- value for the request parameter named by paramId
- (if paramProperty is not specified), or a JSP
- bean whose property getter is called to return a String
- (if paramProperty is specified). The JSP bean
- is constrained to the bean scope specified by the
- paramScope property, if it is specified.
- ]]>
-
-
-
- paramProperty
- false
- true
-
- The name of a property of the bean specified by the
- paramName attribute, whose return value must
- be a String containing the value of the request parameter
- (named by the paramId attribute) that will be
- dynamically added to this hyperlink.
- ]]>
-
-
-
- paramScope
- false
- true
-
- The scope within which to search for the bean specified
- by the paramName attribute. If not specified,
- all scopes are searched.
- ]]>
-
-
-
- property
- false
- true
-
- The name of a property of the bean specified by the
- name attribute, whose return value must be
- a java.util.Map containing the query parameters
- to be added to the hyperlink. You must
- specify the name attribute if you specify
- this attribute.
- ]]>
-
-
-
- scope
- false
- true
-
- The scope within which to search for the bean specified
- by the name attribute. If not specified, all
- scopes are searched.
- ]]>
-
-
-
- transaction
- false
- true
- boolean
-
- Set to true if you want the current
- transaction control token included in the generated
- URL for this redirect.
- ]]>
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
- If set to true, LocalCharacterEncoding will be
- used, that is, the characterEncoding set to the HttpServletResponse,
- as prefered character encoding rather than UTF-8, when
- URLEncoding is done on parameters of the URL.
- ]]>
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-nested.tld b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-nested.tld
deleted file mode 100644
index 20a8c0a6b147..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-nested.tld
+++ /dev/null
@@ -1,5051 +0,0 @@
-
-
-
-
- 1.3
- 1.2
- nested
- http://struts.apache.org/tags-nested
-
- [Since Struts 1.1]
- This tag library brings a nested context to the functionality of the
- Struts custom tag library.
-
- It's written in a layer that extends the current Struts tags, building on
- their logic and functionality. The layer enables the tags to be aware of the
- tags which surround them so they can correctly provide the nesting property
- reference to the Struts system.
-
-
- It's all about nesting beans...
- A bean holds a reference to another bean internally, and all access to that
- bean is handled through the current bean. This act of having one bean's
- access go through another bean is known as "nesting beans". The first bean
- is known as the parent bean. The bean which it references, is known as a
- child bean. The terms "parent" and "child" are commonly used to describe the
- model's hierarchy.
-
-
- A simple example...
- Take an object which represents a monkey. The monkey's job is to pick
- bunches of bananas. On each bunch picked hangs many bananas. If this case
- was translated to bean objects, the monkey object would have a reference to
- the bunch objects he picked, and each bunch object would hold a reference
- to the bananas hanging in the bunch.
-
-
- To describe this...
- The monkey object is the parent to the bunch object, and the bunch object
- is a child of the monkey object. The bunch object is parent to its child
- banana objects, and the child banana objects children of the bunch object.
- The monkey is higher in the hierarchy than the bananas, and the bananas
- lower in the hierarchy to the bunches.
-
-
- One special term to remember is for the most parent class, which is known
- as the "root" object which starts the hierarchy.
-
- Nested tags are all about efficiently managing this style of hierarchy
- structure within your JSP markup.
-
-
- Important Note: Nearly all these tags extend tags from
- other libraries to bring their functionality into the nested context.
- Nesting relies on the tags working against the one bean model, and managing
- the properties so that they become relative to the properties they are
- nested within. In doing so, the tags will set the "name" attribute internally
- (where applicable), and in many cases will rely on the "property" attribute
- being set so it can be updated internally to become nested. The original tags
- on occasion provide options that don't use the "name" and "property"
- attributes. These uses will then fall outside the nested context, and will
- most likely cause error. To take advantage of these options, markup using
- the original tag for these cases. For an example see the
- <nested:options> tag.
-
- ]]>
-
-
- nest
- org.apache.struts.taglib.nested.NestedPropertyTag
- JSP
-
-
- Defines a new level of nesting for child tags to reference to
-
-
-
- This tag provides a simple method of defining a logical nesting level in
- the nested hierarchy. It run no explicit logic, is simply a place holder.
- It also means you can remove the need for explicit setting of level
- properties in child tags.
-
-
- Just as the iterate tag provide a parent to other tags, this does the same
- but there is no logic for iterating or otherwise.
-
-
- Example...
-
-<nested:write property="myNestedLevel.propertyOne" />
-<nested:write property="myNestedLevel.propertyTwo" />
-<nested:write property="myNestedLevel.propertyThree" />
-
- Can instead become...
-
-<nested:nest property="myNestedLevel" >
- <nested:write property="propertyOne" />
- <nested:write property="propertyTwo" />
- <nested:write property="propertyThree" />
-</nested:nest >
-
- ]]>
-
-
- property
- false
- true
-
-
-
-
-
-
- writeNesting
- org.apache.struts.taglib.nested.NestedWriteNestingTag
- org.apache.struts.taglib.nested.NestedWriteNestingTei
- JSP
-
-
- Writes or makes a scripting variable of the current nesting level.
-
-
- This tag provides a way of accessing the nested property reference used by
- the nested tags. Can expose a scripting variable, or simply write out the
- value.
- ]]>
-
-
- property
- false
- true
-
-
-
-
-
- id
- false
- true
-
- id is supplied, then what would have been written out into the
- response stream, will instead be made available as a String object
- defined by the variable name provided.
- ]]>
-
-
-
- filter
- false
- true
- boolean
-
-
-
-
-
-
- root
- org.apache.struts.taglib.nested.NestedRootTag
- JSP
-
- To start off a nested hierarchy without the need for a form
-
-
- This tag is provided to allow the nested tags to find a common bean
- reference without the need for a form and its relative overhead. As
- long as the name attribute of this tag matches the name
- of a bean in scope of the JSP (ie: Struts tags can find it via usual
- means). For example you can load a bean for use with the
- jsp:useBean tag.
-
-
- The tag can also be used without specifying the name
- attribute, but this is only in the case that the current JSP is a
- dynamic include specified in another file. You will not be able to run
- the tag without a name unless this inclusion is in place. Otherwise
- the nested tags will not have the bean and property references that they
- need to provide their logic.
-
-
- Note: The access to a bean via the name
- attribute takes priority over looking for the reference from other
- parent tags. So if a name is specified, a bean will have to be there
- waiting for it. It was made this way so that you could use separate
- beans within a JSP that itself is an inclusion into another.
-
- ]]>
-
-
- name
- false
- true
-
-
-
-
-
-
- define
- org.apache.struts.taglib.nested.bean.NestedDefineTag
- org.apache.struts.taglib.nested.bean.NestedDefineTei
- empty
-
- Nested Extension -
- Define a scripting variable based on the value(s) of the specified
- bean property.
-
-
- This tag is an extension of the
- <bean:define>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- id
- true
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- toScope
- false
- true
-
-
-
- type
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- message
- org.apache.struts.taglib.nested.bean.NestedMessageTag
- empty
-
- Nested Extension -
- Render an internationalized message string to the response.
-
-
- This tag is an extension of the
- <bean:message>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- arg0
- false
- true
-
-
-
- arg1
- false
- true
-
-
-
- arg2
- false
- true
-
-
-
- arg3
- false
- true
-
-
-
- arg4
- false
- true
-
-
-
- bundle
- false
- true
-
-
-
- key
- false
- true
-
-
-
- locale
- false
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
-
- size
- org.apache.struts.taglib.nested.bean.NestedSizeTag
- org.apache.struts.taglib.bean.SizeTei
- empty
-
- Nested Extension -
- Define a bean containing the number of elements in a Collection or Map.
-
-
- This tag is an extension of the
- <bean:size>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- collection
- false
- true
- java.lang.Object
-
-
-
- id
- true
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
-
- write
- org.apache.struts.taglib.nested.bean.NestedWriteTag
- empty
-
- Nested Extension -
- Render the value of the specified bean property to the current
- JspWriter.
-
-
- This tag is an extension of the
- <bean:write>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- bundle
- false
- true
-
-
-
- filter
- false
- true
- boolean
-
-
-
- format
- false
- true
-
-
-
- formatKey
- false
- true
-
-
-
- ignore
- false
- true
- boolean
-
-
-
- locale
- false
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
-
- checkbox
- org.apache.struts.taglib.nested.html.NestedCheckboxTag
-
- Nested Extension - Render A Checkbox Input Field
-
- This tag is an extension of the
- <html:checkbox>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- property
- true
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- errors
- org.apache.struts.taglib.nested.html.NestedErrorsTag
- empty
-
-
- Nested Extension - Conditionally display a set of accumulated error messages.
-
-
- This tag is an extension of the
- <html:errors>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- bundle
- false
- true
-
-
-
- footer
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- header
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- locale
- false
- true
-
-
-
- name
- false
- true
-
-
-
- prefix
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- property
- false
- true
-
-
-
- suffix
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
-
- file
- org.apache.struts.taglib.nested.html.NestedFileTag
-
- Nested Extension -
- Render A File Select Input Field
-
-
- This tag is an extension of the
- <html:file>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- accept
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- property
- true
- true
-
-
-
- size
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- form
- org.apache.struts.taglib.nested.html.NestedFormTag
- JSP
-
- Nested Extension - Define An Input Form
-
- This tag is an extension of the
- <html:form>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- action
- true
- true
-
-
-
- acceptCharset
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- enctype
- false
- true
-
-
-
- focus
- false
- true
-
-
-
- focusIndex
- false
- true
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- method
- false
- true
-
-
-
- onreset
- false
- true
-
-
-
- onsubmit
- false
- true
-
-
-
- readonly
- false
- true
- boolean
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- scriptLanguage
- false
- true
- boolean
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- target
- false
- true
-
-
-
-
- hidden
- org.apache.struts.taglib.nested.html.NestedHiddenTag
-
- Nested Extension -
- Render A Hidden Field
-
-
- This tag is an extension of the
- <html:hidden>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
- property
- true
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- value
- false
- true
-
-
-
- write
- false
- true
- boolean
-
-
-
-
- image
- org.apache.struts.taglib.nested.html.NestedImageTag
-
- Nested Extension -
- Render an input tag of type "image"
-
-
- This tag is an extension of the
- <html:image>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- align
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- border
- false
- true
-
-
-
- bundle
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- locale
- false
- true
-
-
-
- module
- false
- true
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- page
- false
- true
-
-
-
- pageKey
- false
- true
-
-
-
- property
- false
- true
-
-
-
- src
- false
- true
-
-
-
- srcKey
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- img
- org.apache.struts.taglib.nested.html.NestedImgTag
- empty
-
- Nested Extension - Render an HTML "img" tag
-
- This tag is an extension of the
- <html:img>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- align
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- border
- false
- true
-
-
-
- bundle
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- height
- false
- true
-
-
-
- hspace
- false
- true
-
-
-
- imageName
- false
- true
-
-
-
- ismap
- false
- true
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- locale
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- paramId
- false
- true
-
-
-
- page
- false
- true
-
-
-
- pageKey
- false
- true
-
-
-
- action
- false
- true
-
-
-
- module
- false
- true
-
-
-
- paramName
- false
- true
-
-
-
- paramProperty
- false
- true
-
-
-
- paramScope
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- src
- false
- true
-
-
-
- srcKey
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
-
-
- usemap
- false
- true
-
-
-
- vspace
- false
- true
-
-
-
- width
- false
- true
-
-
-
-
- link
- org.apache.struts.taglib.nested.html.NestedLinkTag
- JSP
-
- Nested Extension - Render an HTML anchor or hyperlink
-
- This tag is an extension of the
- <html:link>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- action
- false
- true
-
-
-
- module
- false
- true
-
-
-
- anchor
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- forward
- false
- true
-
-
-
- href
- false
- true
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- indexId
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- linkName
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- page
- false
- true
-
-
-
- paramId
- false
- true
-
-
-
- paramName
- false
- true
-
-
-
- paramProperty
- false
- true
-
-
-
- paramScope
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- target
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- transaction
- false
- true
- boolean
-
-
-
- useLocalEncoding
- false
- true
- boolean
-
-
-
-
- messages
- org.apache.struts.taglib.nested.html.NestedMessagesTag
- org.apache.struts.taglib.html.MessagesTei
- JSP
-
-
- Nested Extension - Conditionally display a set of accumulated messages.
-
-
- This tag is an extension of the
- <html:messages>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- id
- true
- true
-
-
-
- bundle
- false
- true
-
-
-
- locale
- false
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- header
- false
- true
-
-
-
- footer
- false
- true
-
-
-
- message
- false
- true
-
-
-
-
- multibox
- org.apache.struts.taglib.nested.html.NestedMultiboxTag
-
- Nested Extension -
- Render A Checkbox Input Field
-
-
- This tag is an extension of the
- <html:multibox>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- property
- true
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- options
- org.apache.struts.taglib.nested.html.NestedOptionsTag
- empty
-
- Nested Extension - Render a Collection of Select Options
-
- This tag is an extension of the
- <html:options>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
-
- Note: The nested context of this tag relies on the use
- of the "property" property, and the internal use of the "name" property.
- The nested tags rely on these properties and will attempt to set them
- itself. The <html:options> tag this tag extended
- allows other options for the tag which don't use these properties.
- To take advantage of these options, markup using the
- <html:options> tag instead of the nested tag.
-
-
- For example, the "collections" option allows you to specify a separate
- bean reference which itself is a list of objects with properties
- to access the title and value parts of the html option tag. You can use
- this in a nested context (the list is a property of a nested bean) by
- using the nested define tag and the original options tag.
-
-
-<nested:nest property="myNestedLevel" />
- <nested:define property="collectionList" />
- <html:options collection="collectionList"
- property="valueProperty"
- labelProperty="labelProperty" />
-</nested:nest >
-
- ]]>
-
-
- collection
- false
- true
- java.lang.String
-
-
-
- filter
- false
- true
- boolean
-
-
-
- labelName
- false
- true
-
-
-
- labelProperty
- false
- true
-
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
-
- optionsCollection
- org.apache.struts.taglib.nested.html.NestedOptionsCollectionTag
- empty
-
- Nested Extension -
- Render a Collection of Select Options
-
-
- This tag is an extension of the
- <html:optionsCollection>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- filter
- false
- true
- boolean
-
-
-
- label
- false
- true
-
-
-
- name
- false
- true
-
-
-
- property
- true
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- password
- org.apache.struts.taglib.nested.html.NestedPasswordTag
-
- Nested Extension -
- Render A Password Input Field
-
-
- This tag is an extension of the
- <html:password>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- onselect
- false
- true
-
-
- property
- true
- true
-
-
-
- readonly
- false
- true
- boolean
-
-
-
- redisplay
- false
- true
- boolean
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- size
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- radio
- org.apache.struts.taglib.nested.html.NestedRadioTag
-
- Nested Extension -
- Render A Radio Button Input Field
-
-
- This tag is an extension of the
- <html:radio>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- property
- true
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- true
- true
-
-
-
- idName
- false
- true
-
-
-
-
- select
- org.apache.struts.taglib.nested.html.NestedSelectTag
- JSP
-
- Nested Extension -
- Render A Select Element
-
-
- This tag is an extension of the
- <html:select>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- multiple
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- property
- true
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- size
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- submit
- org.apache.struts.taglib.nested.html.NestedSubmitTag
-
- Nested Extension - Render A Submit Button
-
- This tag is an extension of the
- <html:submit>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- property
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- text
- org.apache.struts.taglib.nested.html.NestedTextTag
-
- Nested Extension -
- Render An Input Field of Type text
-
-
- This tag is an extension of the
- <html:text>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- maxlength
- false
- true
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- onselect
- false
- true
-
-
-
- property
- true
- true
-
-
-
- readonly
- false
- true
- boolean
-
-
-
- size
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- textarea
- org.apache.struts.taglib.nested.html.NestedTextareaTag
-
- Nested Extension - Render A Textarea
-
- This tag is an extension of the
- <html:textarea>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- accesskey
- false
- true
-
-
-
- alt
- false
- true
-
-
-
- altKey
- false
- true
-
-
-
- bundle
- false
- true
-
- Since:
- Struts 1.2.7
- ]]>
-
-
-
- cols
- false
- true
-
-
-
- dir
- false
- true
-
- The direction for weak/neutral text for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- disabled
- false
- true
- boolean
-
-
-
- errorKey
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyle
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleClass
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- errorStyleId
- false
- true
-
- Since:
- Struts 1.2.5
- ]]>
-
-
-
- indexed
- false
- true
- boolean
-
-
-
- lang
- false
- true
-
- The language code for this element.
- - Since:
- - Struts 1.3.6
- ]]>
-
-
-
- name
- false
- true
-
-
-
- onblur
- false
- true
-
-
-
- onchange
- false
- true
-
-
-
- onclick
- false
- true
-
-
-
- ondblclick
- false
- true
-
-
-
- onfocus
- false
- true
-
-
-
- onkeydown
- false
- true
-
-
-
- onkeypress
- false
- true
-
-
-
- onkeyup
- false
- true
-
-
-
- onmousedown
- false
- true
-
-
-
- onmousemove
- false
- true
-
-
-
- onmouseout
- false
- true
-
-
-
- onmouseover
- false
- true
-
-
-
- onmouseup
- false
- true
-
-
-
- onselect
- false
- true
-
-
-
- property
- true
- true
-
-
-
- readonly
- false
- true
- boolean
-
-
-
- rows
- false
- true
-
-
-
- style
- false
- true
-
-
-
- styleClass
- false
- true
-
-
-
- styleId
- false
- true
-
-
-
- tabindex
- false
- true
-
-
-
- title
- false
- true
-
-
-
- titleKey
- false
- true
-
-
-
- value
- false
- true
-
-
-
-
- empty
- org.apache.struts.taglib.nested.logic.NestedEmptyTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested variable is
- either null or an empty string.
-
-
- This tag is an extension of the
- <logic:empty>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
-
- equal
- org.apache.struts.taglib.nested.logic.NestedEqualTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested
- variable is equal to the specified value.
-
-
- This tag is an extension of the
- <logic:equal>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- greaterEqual
- org.apache.struts.taglib.nested.logic.NestedGreaterEqualTag
- JSP
-
- Nested Extension - Evaluate the nested body content of this tag if the requested
- variable is greater than or equal to the specified value.
-
-
- This tag is an extension of the
- <logic:greaterEqual>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- greaterThan
- org.apache.struts.taglib.nested.logic.NestedGreaterThanTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested
- variable is greater than the specified value.
-
-
- This tag is an extension of the
- <logic:greaterThan>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- iterate
- org.apache.struts.taglib.nested.logic.NestedIterateTag
- org.apache.struts.taglib.nested.logic.NestedIterateTei
- JSP
-
- Nested Extension -
- Repeat the nested body content of this tag over a specified collection.
-
-
- This tag is an extension of the
- <logic:iterate>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- collection
- false
- true
- java.lang.Object
-
-
-
- id
- false
- true
-
-
-
- indexId
- false
- true
-
-
-
- length
- false
- true
-
-
-
- name
- false
- true
-
-
-
- offset
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- type
- false
- true
-
-
-
-
- lessEqual
- org.apache.struts.taglib.nested.logic.NestedLessEqualTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested
- variable is greater than or equal to the specified value.
-
-
- This tag is an extension of the
- <logic:lessEqual>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- lessThan
- org.apache.struts.taglib.nested.logic.NestedLessThanTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested
- variable is less than the specified value.
-
-
- This tag is an extension of the
- <logic:lessThan>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- match
- org.apache.struts.taglib.nested.logic.NestedMatchTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the specified value
- is an appropriate substring of the requested variable.
-
-
- This tag is an extension of the
- <logic:match>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- location
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- messagesNotPresent
- org.apache.struts.taglib.nested.logic.NestedMessagesNotPresentTag
- JSP
-
-
- Nested Extension -
- Generate the nested body content of this tag if the specified
- message is not present in this request.
-
-
- This tag is an extension of the
- <logic:messagesNotPresent>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- message
- false
- true
-
-
-
-
- messagesPresent
- org.apache.struts.taglib.nested.logic.NestedMessagesPresentTag
- JSP
-
-
- Nested Extension -
- Generate the nested body content of this tag if the specified
- message is present in this request.
-
-
- This tag is an extension of the
- <logic:messagesPresent>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- message
- false
- true
-
-
-
-
- notEmpty
- org.apache.struts.taglib.nested.logic.NestedNotEmptyTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested variable is
- neither null nor an empty string.
-
-
- This tag is an extension of the
- <logic:notEmpty>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- name
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
-
- notEqual
- org.apache.struts.taglib.nested.logic.NestedNotEqualTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the requested
- variable is not equal to the specified value.
-
-
- This tag is an extension of the
- <logic:notEqual>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- notMatch
- org.apache.struts.taglib.nested.logic.NestedNotMatchTag
- JSP
-
- Nested Extension -
- Evaluate the nested body content of this tag if the specified value
- is not an appropriate substring of the requested variable.
-
-
- This tag is an extension of the
- <logic:notMatch>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- location
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- value
- true
- true
-
-
-
-
- notPresent
- org.apache.struts.taglib.nested.logic.NestedNotPresentTag
- JSP
-
- Nested Extension -
- Generate the nested body content of this tag if the specified
- value is not present in this request.
-
-
- This tag is an extension of the
- <logic:notPresent>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- role
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- user
- false
- true
-
-
-
-
- present
- org.apache.struts.taglib.nested.logic.NestedPresentTag
- JSP
-
- Nested Extension -
- Generate the nested body content of this tag if the specified
- value is present in this request.
-
-
- This tag is an extension of the
- <logic:present>
- tag. Please consult its documentation for information on tag attributes
- and usage details.
-
- ]]>
-
-
- cookie
- false
- true
-
-
-
- header
- false
- true
-
-
-
- name
- false
- true
-
-
-
- parameter
- false
- true
-
-
-
- property
- false
- true
-
-
-
- role
- false
- true
-
-
-
- scope
- false
- true
-
-
-
- user
- false
- true
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-tiles.tld b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-tiles.tld
deleted file mode 100644
index 0f759ef4e510..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts-tiles.tld
+++ /dev/null
@@ -1,916 +0,0 @@
-
-
-
-
- 1.3
- 1.2
- tiles
- http://struts.apache.org/tags-tiles
-
- This tag library provides tiles tags.Tiles were previously called
- Components. For historical reasons, names, pages, components and templates
- are used indifferently to design a tile. Also, a lot of tags and attribute
- names are left for backward compatibility.To know more about tags defined
- in this library, check the associated documentation: tiles-doc.
- ]]>
-
-
- insert
- org.apache.struts.tiles.taglib.InsertTag
- JSP
-
- Insert a tiles/component/template.
- Insert a tiles/component/template with the possibility to pass
- parameters (called attribute).
- A tile can be seen as a procedure that can take parameters or attributes.
- <tiles:insert> allows to define these attributes
- and pass them to the inserted jsp page, called template.
- Attributes are defined using nested tag <tiles:put> or
- <tiles:putList>.
-
- You must specify one of this tag attribute :
-
-
- template, for inserting a tiles/component/template
- page,
-
- component, for inserting a tiles/component/template
- page, (same as template)
-
- page for inserting a JSP page, (same as template)
-
- definition, for inserting a definition from
- definitions factory
-
- attribute, surrounding tiles's attribute name whose
- value is used.
If attribute is associated to 'direct' flag
- (see put), and flag is true, write attribute value (no insertion).
-
- name, to let 'insert' determine the type of entities
- to insert. In this later case, search is done in this order :
- definitions, tiles/components/templates, pages.
-
-
- In fact, Page, component and template, are equivalent as a tile,
- component or template are jsp page.
-
- Example :
-
-
- <tiles:insert page="/basic/myLayout.jsp" flush="true">
- <tiles:put name="title" value="My first page" />
- <tiles:put name="header" value="/common/header.jsp" />
- <tiles:put name="footer" value="/common/footer.jsp" />
- <tiles:put name="menu" value="/basic/menu.jsp" />
- <tiles:put name="body" value="/basic/helloBody.jsp" />
- </tiles:insert>
-
-
- ]]>
-
-
- template
- false
- true
-
- A string representing the URI of a tile or template (a JSP page).
-
- 'page', 'component' and 'template' are synonyms : they have
- exactly the same behavior.
- ]]>
-
-
-
- component
- false
- true
-
- Path (relative or absolute to webapps) of the component to insert.
- 'page', 'component' and 'template' are synonyms :
- they have exactly the same behavior.
- ]]>
-
-
-
- page
- false
- true
-
- Path (relative or absolute to webapps) of the page to insert.
- 'page', 'component' and 'template' are synonyms :
- they have exactly the same behavior.
- ]]>
-
-
-
- definition
- false
- true
-
- Name of the definition to insert. Definition are defined in a
- centralized file. For now, only definition from factory can be inserted
- with this attribute. To insert a definition defined with tag
- <tiles:definition>, use beanName="".
- ]]>
-
-
-
- attribute
- false
- false
-
- Name of an attribute in current tile/component context. Value of
- this attribute is passed to 'name' (see attribute 'name').
- ]]>
-
-
-
- name
- false
- true
-
- Name of an entity to insert. Search is done in this order :
- definition, attribute, [tile/component/template/page].
- ]]>
-
-
-
- beanName
- false
- true
-
- Name of the bean used as value. Bean is retrieved from specified
- context, if any. Otherwise, method pageContext.findAttribute is used.
- If beanProperty is also specified, retrieve value from the
- corresponding bean property.
- If found bean (or property value)
- is instance of one of Attribute class (Direct, Instance, ...),
- insertion is done according to the class type. Otherwise, the toString
- method is called on the bean, and returned String is used as name to
- insert (see 'name' attribute).
- ]]>
-
-
-
- beanProperty
- false
- true
-
- Bean property name. If specified, value is retrieve from this
- property. Support nested/indexed properties.
- ]]>
-
-
-
- beanScope
- false
- false
-
- Scope into which bean is searched. If not specified, method
- pageContext.findAttribute is used. Scope can be any JSP scope,
- 'component', or 'template'. In these two later cases, bean is search in
- tile/component/template context.
- ]]>
-
-
-
- flush
- false
- false
- boolean
-
- True or false. If true, current page out stream is flushed
- before insertion.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
- If this attribute is set to true, and the attribute specified by the
- name does not exist, simply return without writing anything. The
- default value is false, which will cause a runtime exception to be
- thrown.
- ]]>
-
-
-
- role
- false
- true
-
- If the user is in the specified role, the tag is taken into account;
- otherwise, the tag is ignored (skipped).
- ]]>
-
-
-
- controllerUrl
- false
- true
-
- Url of a controller called immediately before page is inserted.
- Url usually denote a Struts action. Controller (action) is used to
- prepare data to be render by inserted Tile.
- See also controlerClass. Only one of controllerUrl or
- controllerClass should be used.
- ]]>
-
-
-
- controllerClass
- false
- true
-
- Class type of a controller called immediately before page is inserted.
- Controller is used to prepare data to be render by inserted Tile.
- See also controlerUrl
- Class must implements or extends one of the following :
-
- - org.apache.struts.tiles.Controller
- - org.apache.struts.tiles.ControllerSupport
- - org.apache.struts.action.Action (wrapper org.apache.struts.action.ActionController is used)
-
- See also controllerUrl. Only one of controllerUrl or controllerClass should be used.
- ]]>
-
-
-
-
- definition
- org.apache.struts.tiles.taglib.DefinitionTag
- JSP
-
- Create a tile /component / template definition bean.
-
- Create a tile/component/template definition as a bean.
- Newly created bean will be saved under specified "id", in the requested "scope".
- Definition tag has same syntax as insert
- ]]>
-
-
- id
- true
- false
-
- Specifies the name under which the newly created definition bean
- will be saved.
- ]]>
-
-
-
- scope
- false
- false
-
- Specifies the variable scope into which the newly defined bean
- will be created.
- If not specified, the bean will be created in page scope.
- ]]>
-
-
-
- template
- false
- true
-
- A string representing the URI of a tile/component/template
- (a JSP page).
- ]]>
-
-
-
- page
- false
- true
-
- URL of the template / component to insert. Same as "template".
- ]]>
-
-
-
- role
- false
- true
-
- Role to check before inserting this definition. If role is not
- defined for current user, definition is not inserted. Checking is
- done at insert time, not during definition process.
- ]]>
-
-
-
- extends
- false
- true
-
- Name of a parent definition that is used to initialize this new
- definition. Parent definition is searched in definitions factory.
- ]]>
-
-
-
-
- put
- org.apache.struts.tiles.taglib.PutTag
- JSP
-
- Put an attribute into tile/component/template context.
-
- Define an attribute to pass to tile/component/template.
- This tag can only be used inside 'insert' or 'definition' tag.
- Value (or content) is specified using attribute 'value' (or 'content'),
- or using the tag body.
- It is also possible to specify the type of the value :
-
- - string : Content is written directly.
- - page | template : Content is included from specified URL. Name is used as an URL.
- - definition : Content come from specified definition (from factory). Name is used as definition name.
-
- If 'type' attribute is not specified, content is 'untyped', unless it comes from a typed bean.
- Note that using 'direct="true"' is equivalent to 'type="string"'.
- ]]>
-
-
- name
- false
- false
-
- Name of the attribute.
- ]]>
-
-
-
- value
- false
- true
-
- Attribute value. Could be a String or an Object.
- Value can come from a direct assignment (value="aValue") or from a bean.
- One of 'value' 'content' or 'beanName' must be present.
- ]]>
-
-
-
- content
- false
- true
-
- Content that's put into tile scope.
- Synonym to value. Attribute added for compatibility with JSP Template.
-
- ]]>
-
-
-
- direct
- false
- false
-
- Determines how content is handled: true means content is
- printed direct
- ]]>
-
-
-
- type
- false
- false
-
- Specify content type: string, page, template or definition.
-
- - String : Content is printed directly.
- - page | template : Content is included from specified URL. Name is used as an URL.
- - definition : Value is the name of a definition defined in factory (xml file). Definition will be searched
- in the inserted tile, in a
<tiles:insert attribute="attributeName"> tag, where 'attributeName'
- is the name used for this tag.
-
- ]]>
-
-
-
- beanName
- false
- true
-
- Name of the bean used as value. Bean is retrieved from specified context, if any. Otherwise,
- method pageContext.findAttribute is used.
- If beanProperty is specified, retrieve value from the corresponding bean property.
- ]]>
-
-
-
- beanProperty
- false
- true
-
- Bean property name. If specified, value is retrieve from this property. Support nested/indexed
- properties.
- ]]>
-
-
-
- beanScope
- false
- false
-
-
- Scope into which bean is searched. If not specified, method pageContext.findAttribute is used.
- Scope can be any JSP scope, 'tile', 'component', or 'template'.
- In these three later cases, bean is search in tile/component/template context.
-
- ]]>
-
-
-
- role
- false
- true
-
-
- If the user is in the specified role, the tag is taken into account;
- otherwise, the tag is ignored (skipped).
-
- ]]>
-
-
-
-
- putList
- org.apache.struts.tiles.taglib.PutListTag
- JSP
-
- Declare a list that will be pass as attribute to tile.
-
- Declare a list that will be pass as attribute to tile.
- List elements are added using the tag 'add'.
- This tag can only be used inside 'insert' or 'definition' tag.
- ]]>
-
-
- name
- true
- false
-
- Name of the list.
- ]]>
-
-
-
-
- add
- org.apache.struts.tiles.taglib.AddTag
- JSP
-
- Add an element to the surrounding list.
- Equivalent to 'put', but for list element.
-
- Add an element to the surrounding list.
- This tag can only be used inside putList tag.
- Value can come from a direct assignment (value="aValue") or from a bean.
- One of 'value' or 'beanName' must be present.
- ]]>
-
-
- value
- false
- false
-
- Element value. Can be a String or Object.
- ]]>
-
-
-
- content
- false
- true
-
-
- Element value. Can be a String or Object.
- Synonym to value. Attribute added for compatibility with JSP Template.
-
- ]]>
-
-
-
- direct
- false
- false
-
-
- Determines how content is handled: true means content is
- printed direct
-
- ]]>
-
-
-
- type
- false
- false
-
- Specify content type: string, page, template or instance.
-
- - String : Content is printed directly.
- - page | template : Content is included from specified URL. Name is used as an URL.
- - definition : Value denote a definition defined in factory (xml file). Definition will be searched
- in the inserted tile, in a
<insert attribute="attributeName"> tag, where 'attributeName'
- is the name used for this tag.
-
- ]]>
-
-
-
- beanName
- false
- true
-
-
- Name of the bean used as value. Bean is retrieved from specified context, if any. Otherwise,
- method pageContext.findAttribute is used.
- If beanProperty is specified, retrieve value from the corresponding bean property.
-
- ]]>
-
-
-
- beanProperty
- false
- true
-
-
- Bean property name. If specified, value is retrieve from this property.
- Support nested/indexed properties.
-
- ]]>
-
-
-
- beanScope
- false
- false
-
-
- Scope into which bean is searched. If not specified, method pageContext.findAttribute is used.
- Scope can be any JSP scope, 'component', or 'template'.
- In these two later cases, bean is search in tile/component/template context.
-
- ]]>
-
-
-
- role
- false
- true
-
- If the user is in the specified role, the tag is taken into account;
- otherwise, the tag is ignored (skipped).
- The role isn't taken into account if <add>
- tag is used in a definition.
- ]]>
-
-
-
-
- get
- org.apache.struts.tiles.taglib.GetTag
- empty
-
-
- Gets the content from request scope that was put there by a
- put tag.
- Retrieve content from tile context and include it.
- Take into account the 'type' attribute.
- ]]>
-
-
- name
- true
- true
-
- The name of the content to get from tile/component scope.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
-
- If this attribute is set to true, and the attribute specified by the name
- does not exist, simply return without writing anything. The default value is false, which will
- cause a runtime exception to be thrown.
-
- ]]>
-
-
-
- flush
- false
- false
- boolean
-
- True or false. If true, current page out stream is flushed before
- insertion.
- ]]>
-
-
-
- role
- false
- true
-
- If the user is in the specified role, the tag is taken into account;
- otherwise, the tag is ignored (skipped).
- ]]>
-
-
-
-
- getAsString
- org.apache.struts.tiles.taglib.GetAttributeTag
- empty
-
-
- Render the value of the specified tile/component/template attribute to the current JspWriter
-
-
- Retrieve the value of the specified tile/component/template attribute
- property, and render it to the current JspWriter as a String.
- The usual toString() conversions is applied on found value.
- Throw a JSPException if named value is not found.
- ]]>
-
-
- name
- true
- true
-
- Attribute name.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
-
- If this attribute is set to true, and the attribute specified by the name
- does not exist, simply return without writing anything. The default value is false, which will
- cause a runtime exception to be thrown.
-
- ]]>
-
-
-
- role
- false
- true
-
-
- If the user is in the specified role, the tag is taken into account;
- otherwise, the tag is ignored (skipped).
-
- ]]>
-
-
-
-
- useAttribute
- org.apache.struts.tiles.taglib.UseAttributeTag
- org.apache.struts.tiles.taglib.UseAttributeTei
- empty
-
- Use attribute value inside page.
- Declare a Java variable, and an attribute in the specified scope,
- using tile attribute value.
- Java variable and attribute will have the name specified by 'id',
- or the original name if not specified.
- ]]>
-
-
- id
- false
- false
-
- Declared attribute and variable name.
- ]]>
-
-
-
- classname
- false
- false
-
- Class of the declared variable.
- ]]>
-
-
-
- scope
- false
- false
-
- Scope of the declared attribute. Default to 'page'.
- ]]>
-
-
-
- name
- true
- true
-
- Tile's attribute name.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
-
- If this attribute is set to true, and the attribute specified by the name
- does not exist, simply return without error. The default value is false, which will
- cause a runtime exception to be thrown.
-
- ]]>
-
-
-
-
- importAttribute
- org.apache.struts.tiles.taglib.ImportAttributeTag
- empty
-
- Import Tile's attribute in specified context.
- Import attribute from tile to requested scope.
- Attribute name and scope are optional. If not specified, all tile
- attributes are imported in page scope.
- Once imported, an attribute can be used as any other beans from jsp
- contexts.
- ]]>
-
-
- name
- false
- true
-
- Tile's attribute name. If not specified, all attributes are
- imported.
- ]]>
-
-
-
- scope
- false
- false
-
- Scope into which attribute is imported. Default to page.
- ]]>
-
-
-
- ignore
- false
- true
- boolean
-
- If this attribute is set to true, and the attribute specified by
- the name does not exist, simply return without error. The default
- value is false, which will cause a runtime exception to be thrown.
- ]]>
-
-
-
-
- initComponentDefinitions
- org.apache.struts.tiles.taglib.InitDefinitionsTag
- empty
-
- Initialize Tile/Component definitions factory.
-
- In order to use Tile/Component definitions factory, you need to initialize the factory.
- This is generally done in a initializing servlet. In particular, it is done in
- "ComponentActionServlet" if you use it.
- If you don't initialize factory in a servlet, you can initialize it using this tag. You need
- to provide the description file name, and optionally the factory classname.
- Initialization is done only once, at the first call of this tag. Subsequent calls
- are ignored (tag checks existence of the factory.
-
- ]]>
-
-
- file
- true
- false
-
- Definition file name.
- ]]>
-
-
-
- classname
- false
- false
-
- If specified, classname of the factory to create and initialized.
- ]]>
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts.xml
deleted file mode 100644
index 7e5559c8209f..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/struts.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
- struts
- j2se
- org/netbeans/modules/web/struts/resources/Bundle
-
- classpath
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/antlr-2.7.2.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/bsf-2.3.0.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-beanutils-1.8.0.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-chain-1.2.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-digester-1.8.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-fileupload-1.1.1.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-io-1.1.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-logging-1.0.4.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-validator-1.3.1.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/jstl-1.0.2.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/oro-2.0.8.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/standard-1.0.6.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-core-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-el-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-extras-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-faces-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-mailreader-dao-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-scripting-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-taglib-1.3.10.jar!/
- jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts-tiles-1.3.10.jar!/
-
-
- javadoc
- jar:nbinst://org.netbeans.modules.web.struts/docs/struts-1.3.10-javadoc.zip!/
-
-
-
-
- maven-dependencies
-
- org.apache.struts:struts-core:1.3.10:jar
- org.apache.struts:struts-el:1.3.10:jar
- org.apache.struts:struts-extras:1.3.10:jar
- org.apache.struts:struts-faces:1.3.10:jar
- org.apache.struts:struts-mailreader-dao:1.3.10:jar
- org.apache.struts:struts-scripting:1.3.10:jar
- org.apache.struts:struts-taglib:1.3.10:jar
- org.apache.struts:struts-tiles:1.3.10:jar
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/DispatchAction.template b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/DispatchAction.template
deleted file mode 100644
index 7e19b30f0edf..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/DispatchAction.template
+++ /dev/null
@@ -1,72 +0,0 @@
-<#--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<#assign licenseFirst = "/*">
-<#assign licensePrefix = " * ">
-<#assign licenseLast = " */">
-<#include "${project.licensePath}">
-
-<#if package?? && package != "">
-package ${package};
-#if>
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.actions.DispatchAction;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionForward;
-
-/**
- *
- * @author ${user}
- */
-public class ${name} extends DispatchAction {
-
- /* forward name="success" path="" */
- private final static String SUCCESS = "success";
-
- /**
- * This is the Struts action method called on
- * http://.../actionPath?method=myAction1,
- * where "method" is the value specified in element :
- * ( )
- */
- public ActionForward myAction1(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward(SUCCESS);
- }
-
- /**
- * This is the Struts action method called on
- * http://.../actionPath?method=myAction2,
- * where "method" is the value specified in element :
- * ( )
- */
- public ActionForward myAction2(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward(SUCCESS);
- }
-}
\ No newline at end of file
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/LookupDispatchAction.template b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/LookupDispatchAction.template
deleted file mode 100644
index 1858911b5f3b..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/LookupDispatchAction.template
+++ /dev/null
@@ -1,103 +0,0 @@
-<#--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<#assign licenseFirst = "/*">
-<#assign licensePrefix = " * ">
-<#assign licenseLast = " */">
-<#include "${project.licensePath}">
-
-<#if package?? && package != "">
-package ${package};
-#if>
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.actions.LookupDispatchAction;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionForward;
-import java.util.*;
-
-/**
- *
- * @author ${user}
- */
-public class ${name} extends LookupDispatchAction {
-
- /* forward name="success" path="" */
- private final static String SUCCESS = "success";
-
- /** Provides the mapping from resource key to method name.
- * @return Resource key / method name map.
- */
- protected Map getKeyMethodMap() {
- Map map = new HashMap();
- map.put("button.add", "add");
- map.put("button.edit", "edit");
- map.put("button.delete", "delete");
- return map;
- }
-
- /** Action called on Add button click
- */
- public ActionForward add(ActionMapping mapping,
- ActionForm form,
- HttpServletRequest request,
- HttpServletResponse response) throws java.lang.Exception {
- // TODO: implement add method
- return mapping.findForward(SUCCESS);
- }
-
- /** Action called on Edit button click
- */
- public ActionForward edit(ActionMapping mapping,
- ActionForm form,
- HttpServletRequest request,
- HttpServletResponse response) {
- // TODO: implement edit method
- return mapping.findForward(SUCCESS);
- }
-
- /** Action called on Delete button click
- */
- public ActionForward delete(ActionMapping mapping,
- ActionForm form,
- HttpServletRequest request,
- HttpServletResponse response) throws java.lang.Exception {
- // TODO:implement delete method
- return mapping.findForward(SUCCESS);
- }
-
- /* And your JSP would have the following format for submit buttons:
-
-
-
-
-
-
-
-
-
-
-
-
- */
-}
\ No newline at end of file
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/MappingDispatchAction.template b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/MappingDispatchAction.template
deleted file mode 100644
index 2a4fac7c794b..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/MappingDispatchAction.template
+++ /dev/null
@@ -1,57 +0,0 @@
-<#--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<#assign licenseFirst = "/*">
-<#assign licensePrefix = " * ">
-<#assign licenseLast = " */">
-<#include "${project.licensePath}">
-
-<#if package?? && package != "">
-package ${package};
-#if>
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts.actions.MappingDispatchAction;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionForward;
-
-/**
- *
- * @author ${user}
- */
-public class ${name} extends MappingDispatchAction {
-
- /* forward name="success" path="" */
- private final static String SUCCESS = "success";
-
- /**
- * This is the Struts Action method specified in struts-config file using the parameter attribute
- * ( )
- */
- public ActionForward customMethod(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward(SUCCESS);
- }
-}
\ No newline at end of file
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsAction.template b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsAction.template
deleted file mode 100644
index e38661d39846..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsAction.template
+++ /dev/null
@@ -1,63 +0,0 @@
-<#--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<#assign licenseFirst = "/*">
-<#assign licensePrefix = " * ">
-<#assign licenseLast = " */">
-<#include "${project.licensePath}">
-
-<#if package?? && package != "">
-package ${package};
-#if>
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import org.apache.struts.action.ActionForm;
-import org.apache.struts.action.ActionForward;
-import org.apache.struts.action.ActionMapping;
-
-/**
- *
- * @author ${user}
- */
-public class ${name} extends ${superclass} {
-
- /* forward name="success" path="" */
- private static final String SUCCESS = "success";
-
- /**
- * This is the action called from the Struts framework.
- * @param mapping The ActionMapping used to select this instance.
- * @param form The optional ActionForm bean for this request.
- * @param request The HTTP Request we are processing.
- * @param response The HTTP Response we are processing.
- * @throws java.lang.Exception
- * @return
- */
-<#if java15style??>
- @Override
-#if>
- public ActionForward execute(ActionMapping mapping, ActionForm form,
- HttpServletRequest request, HttpServletResponse response)
- throws Exception {
-
- return mapping.findForward(SUCCESS);
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsActionForm.template b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsActionForm.template
deleted file mode 100644
index 2bc3635f043e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/templates/StrutsActionForm.template
+++ /dev/null
@@ -1,96 +0,0 @@
-<#--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<#assign licenseFirst = "/*">
-<#assign licensePrefix = " * ">
-<#assign licenseLast = " */">
-<#include "${project.licensePath}">
-
-<#if package?? && package != "">
-package ${package};
-#if>
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.apache.struts.action.ActionErrors;
-import org.apache.struts.action.ActionMapping;
-import org.apache.struts.action.ActionMessage;
-
-/**
- *
- * @author ${user}
- */
-public class ${name} extends ${superclass} {
-
- private String name;
-
- private int number;
-
- /**
- * @return
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param string
- */
- public void setName(String string) {
- name = string;
- }
-
- /**
- * @return
- */
- public int getNumber() {
- return number;
- }
-
- /**
- * @param i
- */
- public void setNumber(int i) {
- number = i;
- }
-
- /**
- *
- */
- public ${name}() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * This is the action called from the Struts framework.
- * @param mapping The ActionMapping used to select this instance.
- * @param request The HTTP Request we are processing.
- * @return
- */
- public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
- ActionErrors errors = new ActionErrors();
- if (getName() == null || getName().length() < 1) {
- errors.add("name", new ActionMessage("error.name.required"));
- // TODO: add 'error.name.required' key to your resources
- }
- return errors;
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd
deleted file mode 100644
index 12ef48418eff..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_1.dtd
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_3.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_3.dtd
deleted file mode 100644
index b0c9167c3eff..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-config_1_3.dtd
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-defs.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-defs.xml
deleted file mode 100644
index d1335e0e953f..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/tiles-defs.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validation.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validation.xml
deleted file mode 100644
index be71dbc5e437..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validation.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- postalCode
- ^[0-9a-zA-Z]*$
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator-rules.xml b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator-rules.xml
deleted file mode 100644
index 7465070da0c1..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator-rules.xml
+++ /dev/null
@@ -1,418 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0.dtd
deleted file mode 100644
index 5630cf42fce3..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0.dtd
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0_1.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0_1.dtd
deleted file mode 100644
index c3651eebab99..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_0_1.dtd
+++ /dev/null
@@ -1,261 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1.dtd
deleted file mode 100644
index 6d7587200db9..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1.dtd
+++ /dev/null
@@ -1,308 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd
deleted file mode 100644
index b9298544fb3d..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_1_3.dtd
+++ /dev/null
@@ -1,328 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd
deleted file mode 100644
index 483006ba1ecc..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_2_0.dtd
+++ /dev/null
@@ -1,249 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd
deleted file mode 100644
index db950af908b8..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/validator_1_3_0.dtd
+++ /dev/null
@@ -1,249 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/welcome.jsp b/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/welcome.jsp
deleted file mode 100644
index 1eaf4adc49f9..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/resources/welcome.jsp
+++ /dev/null
@@ -1,49 +0,0 @@
-<%@page contentType="text/html"%>
-
-
-
-<%@page pageEncoding="__ENCODING__"%>
-
-<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
-<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
-<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
-
-
-
-
-
-
-
-
-
-
-
- ERROR: Application resources not loaded -- check servlet container
- logs for error messages.
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/Bundle.properties b/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/Bundle.properties
deleted file mode 100644
index 4a63ed1cb44e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/Bundle.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# StrutsConfigurationPanelVisual
-LBL_ConfigPanel_ActionServletName=Action Servlet Name:
-LBL_ConfigPanel_URLPattern=Action URL Pattern:
-LBL_ConfigPanel_ApplicationResource=Application Resource:
-LBL_ConfigPanel_InstallStrutsTLDs=Add Struts TLDs
-LBL_ConfigPanel_PackageStrutsJars=Package Struts JARs to WAR File
-
-MNE_ConfigPanel_ActionServletName_Mnemonic=S
-MNE_ConfigPanel_URLPattern_Mnemonic=P
-MNE_ConfigPanel_ApplicationResource_Mnemonic=R
-MNE_ConfigPanel_InstallStrutsTLDs_Mnemonic=A
-MNE_ConfigPanel_PackageStrutsJars_Mnemonic=J
-
-
-MSG_URLPatternIsEmpty=The URL Pattern has to be entered.
-MSG_URLPatternIsNotValid=The URL Pattern is not valid.
-MSG_ApplicationResourceIsEmpty=The Application Resource has to be defined.
-MSG_ApplicationResourceNotValid=The Application Resource is not valid.
-
-ACSD_jTextFieldServletName=The name of the servlet which will be written to the deployment descriptor.
-
-ACSD_jComboBoxURLPattern=Mapping of the servlet in the deployment descriptor.
-ACSD_jTextFieldAppResource=Package name of the application resource properties file.
-
-ACSD_jCheckBoxTLD=Copy all TLDs to under WEB-INF folder
-ACSD_jCheckBoxWAR=Copy all Struts JAR files to under WEB-INF folder
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanel.java
deleted file mode 100644
index 54329f4e71f8..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanel.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.ui;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.modules.web.api.webmodule.ExtenderController;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.spi.webmodule.WebModuleExtender;
-import org.netbeans.modules.web.struts.StrutsFrameworkProvider;
-import org.openide.util.HelpCtx;
-
-/**
- * Panel asking for web frameworks to use.
- * @author Radko Najman
- */
-public final class StrutsConfigurationPanel extends WebModuleExtender {
-
- private final StrutsFrameworkProvider framework;
- private final ExtenderController controller;
- private StrutsConfigurationPanelVisual component;
-
- private boolean customizer;
-
- /** Create the wizard panel descriptor. */
- public StrutsConfigurationPanel(StrutsFrameworkProvider framework, ExtenderController controller, boolean customizer) {
- this.framework = framework;
- this.controller = controller;
- this.customizer = customizer;
- getComponent();
- }
-
- @Override
- public StrutsConfigurationPanelVisual getComponent() {
- if (component == null) {
- component = new StrutsConfigurationPanelVisual(this, customizer);
- }
- return component;
- }
-
- @Override
- public HelpCtx getHelp() {
- return new HelpCtx("org.netbeans.modules.web.struts.ui.StrutsConfigurationPanel");
- }
-
- @Override
- public void update() {
- // nothing to update
- }
-
- @Override
- public boolean isValid() {
- getComponent();
- return component.valid();
- }
-
- @Override
- public Set extend(WebModule webModule) {
- return framework.extendImpl(webModule);
- }
-
- public ExtenderController getController() {
- return controller;
- }
-
- private final Set listeners = new /**/ HashSet(1);
-
- @Override
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
-
- @Override
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
-
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener) it.next()).stateChanged(ev);
- }
- }
-
- public String getURLPattern() {
- return component.getURLPattern();
- }
-
- public void setURLPattern(String pattern) {
- component.setURLPattern(pattern);
- }
-
- public String getServletName() {
- return component.getServletName();
- }
-
- public void setServletName(String name) {
- component.setServletName(name);
- }
-
- public String getAppResource() {
- return component.getAppResource();
- }
-
- public void setAppResource(String resource) {
- component.setAppResource(resource);
- }
-
- public boolean addTLDs() {
- return component.addTLDs();
- }
-
- public boolean packageWars() {
- return component.packageWars();
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.form
deleted file mode 100644
index 591975ad1e35..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.form
+++ /dev/null
@@ -1,199 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.java
deleted file mode 100644
index fac65bce0d39..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/ui/StrutsConfigurationPanelVisual.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.ui;
-
-import javax.swing.event.DocumentListener;
-import javax.swing.text.JTextComponent;
-import org.netbeans.modules.web.api.webmodule.ExtenderController;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-public class StrutsConfigurationPanelVisual extends javax.swing.JPanel implements HelpCtx.Provider, DocumentListener {
-
- private StrutsConfigurationPanel panel;
- private final boolean enableComponents;
-
- /** Creates new form StrutsConfigurationPanelVisual */
- public StrutsConfigurationPanelVisual(StrutsConfigurationPanel panel, boolean customizer) {
- this.panel = panel;
- initComponents();
-
- jTextFieldAppResource.getDocument().addDocumentListener(this);
- jCheckBoxWAR.setVisible(false);
- if (customizer) {
- jCheckBoxTLD.setVisible(false);
- //jCheckBoxWAR.setVisible(false);
- enableComponents = false;
- }
- else {
- jCheckBoxTLD.setVisible(true);
- //jCheckBoxWAR.setVisible(true);
- enableComponents = true;
- }
- enableComponents(enableComponents);
-
- ((JTextComponent)jComboBoxURLPattern.getEditor().getEditorComponent()).getDocument().addDocumentListener(this);
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabelServletName = new javax.swing.JLabel();
- jTextFieldServletName = new javax.swing.JTextField();
- jLabelURLPattern = new javax.swing.JLabel();
- jComboBoxURLPattern = new javax.swing.JComboBox();
- jLabelAppResource = new javax.swing.JLabel();
- jTextFieldAppResource = new javax.swing.JTextField();
- jCheckBoxTLD = new javax.swing.JCheckBox();
- jCheckBoxWAR = new javax.swing.JCheckBox();
-
- setLayout(new java.awt.GridBagLayout());
-
- jLabelServletName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MNE_ConfigPanel_ActionServletName_Mnemonic").charAt(0));
- jLabelServletName.setLabelFor(jTextFieldServletName);
- jLabelServletName.setText(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "LBL_ConfigPanel_ActionServletName")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 12);
- add(jLabelServletName, gridBagConstraints);
-
- jTextFieldServletName.setEditable(false);
- jTextFieldServletName.setText("action");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jTextFieldServletName, gridBagConstraints);
- java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/ui/Bundle"); // NOI18N
- jTextFieldServletName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldServletName")); // NOI18N
-
- jLabelURLPattern.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MNE_ConfigPanel_URLPattern_Mnemonic").charAt(0));
- jLabelURLPattern.setLabelFor(jComboBoxURLPattern);
- jLabelURLPattern.setText(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "LBL_ConfigPanel_URLPattern")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 12);
- add(jLabelURLPattern, gridBagConstraints);
-
- jComboBoxURLPattern.setEditable(true);
- jComboBoxURLPattern.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "*.do", "/do/*" }));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jComboBoxURLPattern, gridBagConstraints);
- jComboBoxURLPattern.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jComboBoxURLPattern")); // NOI18N
-
- jLabelAppResource.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MNE_ConfigPanel_ApplicationResource_Mnemonic").charAt(0));
- jLabelAppResource.setLabelFor(jTextFieldAppResource);
- jLabelAppResource.setText(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "LBL_ConfigPanel_ApplicationResource")); // NOI18N
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 12);
- add(jLabelAppResource, gridBagConstraints);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.weighty = 0.01;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
- add(jTextFieldAppResource, gridBagConstraints);
- jTextFieldAppResource.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jTextFieldAppResource")); // NOI18N
-
- jCheckBoxTLD.setMnemonic(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MNE_ConfigPanel_InstallStrutsTLDs_Mnemonic").charAt(0));
- jCheckBoxTLD.setText(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "LBL_ConfigPanel_InstallStrutsTLDs")); // NOI18N
- jCheckBoxTLD.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jCheckBoxTLD.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.weighty = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jCheckBoxTLD, gridBagConstraints);
- jCheckBoxTLD.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_jCheckBoxTLD")); // NOI18N
-
- jCheckBoxWAR.setMnemonic(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MNE_ConfigPanel_PackageStrutsJars_Mnemonic").charAt(0));
- jCheckBoxWAR.setSelected(true);
- jCheckBoxWAR.setText(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "LBL_ConfigPanel_PackageStrutsJars")); // NOI18N
- jCheckBoxWAR.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- jCheckBoxWAR.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.weighty = 1.0;
- add(jCheckBoxWAR, gridBagConstraints);
- jCheckBoxWAR.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "ACSD_jCheckBoxWAR")); // NOI18N
- }// //GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JCheckBox jCheckBoxTLD;
- private javax.swing.JCheckBox jCheckBoxWAR;
- private javax.swing.JComboBox jComboBoxURLPattern;
- private javax.swing.JLabel jLabelAppResource;
- private javax.swing.JLabel jLabelServletName;
- private javax.swing.JLabel jLabelURLPattern;
- private javax.swing.JTextField jTextFieldAppResource;
- private javax.swing.JTextField jTextFieldServletName;
- // End of variables declaration//GEN-END:variables
-
- boolean valid() {
- // #119806
- if (!enableComponents) {
- return true;
- }
- ExtenderController controller = panel.getController();
- String urlPattern = (String)jComboBoxURLPattern.getEditor().getItem();
- if (urlPattern == null || urlPattern.trim().length() == 0){
- controller.setErrorMessage(NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MSG_URLPatternIsEmpty"));
- return false;
- }
- if (!isPatternValid(urlPattern)){
- controller.setErrorMessage(NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MSG_URLPatternIsNotValid"));
- return false;
- }
-
- String appResource = getAppResource();
- if (appResource == null || appResource.trim().length() == 0) {
- controller.setErrorMessage(NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MSG_ApplicationResourceIsEmpty"));
- return false;
- }
- if (!isResourceValid(appResource)){
- controller.setErrorMessage(NbBundle.getMessage(StrutsConfigurationPanelVisual.class, "MSG_ApplicationResourceNotValid"));
- return false;
- }
- controller.setErrorMessage(null);
- return true;
- }
-
- private static final char[] INVALID_PATTERN_CHARS = {'<', '\\', '\"', '%', '&', '+', '?', ';'}; // NOI18N
-
- private boolean isPatternValid(String pattern){
- for (char c : INVALID_PATTERN_CHARS) {
- if (pattern.indexOf(c) != -1) {
- return false;
- }
- }
-
- if (pattern.startsWith("*.")){
- String p = pattern.substring(2);
- if (p.indexOf('.') == -1 && p.indexOf('*') == -1
- && p.indexOf('/') == -1 && !p.trim().equals(""))
- return true;
- }
- // pattern = "/.../*", where ... can't be empty.
- if ((pattern.length() > 3) && pattern.endsWith("/*") && pattern.startsWith("/"))
- return true;
- return false;
- }
-
- private static final char[] INVALID_RESOURCE_CHARS = {'<', '>', '*', '\\', ':', '\"', '/', '%', '|', '?'}; // NOI18N
-
- private boolean isResourceValid(String resource){
- for (char c : INVALID_RESOURCE_CHARS) {
- if (resource.indexOf(c) != -1) {
- return false;
- }
- }
-
- return true;
- }
-
- void enableComponents(boolean enable) {
- jComboBoxURLPattern.setEnabled(enable);
- jTextFieldAppResource.setEnabled(enable);
- jTextFieldServletName.setEnabled(enable);
- jCheckBoxTLD.setEnabled(enable);
- jCheckBoxWAR.setEnabled(enable);
- jLabelAppResource.setEnabled(enable);
- jLabelServletName.setEnabled(enable);
- jLabelURLPattern.setEnabled(enable);
- }
-
- public String getURLPattern(){
- return (String)jComboBoxURLPattern.getSelectedItem();
- }
-
- public void setURLPattern(String pattern){
- jComboBoxURLPattern.setSelectedItem(pattern);
- }
-
- public String getServletName(){
- return jTextFieldServletName.getText();
- }
-
- public void setServletName(String name){
- jTextFieldServletName.setText(name);
- }
-
- public String getAppResource(){
- return jTextFieldAppResource.getText();
- }
-
- public void setAppResource(String resource){
- jTextFieldAppResource.setText(resource);
- }
-
- public boolean addTLDs(){
- return jCheckBoxTLD.isSelected();
- }
-
- public boolean packageWars(){
- return jCheckBoxWAR.isSelected();
- }
- /** Help context where to find more about the paste type action.
- * @return the help context for this action
- */
- public HelpCtx getHelpCtx() {
- return new HelpCtx(StrutsConfigurationPanelVisual.class);
- }
-
- public void removeUpdate(javax.swing.event.DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
- public void insertUpdate(javax.swing.event.DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
- public void changedUpdate(javax.swing.event.DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionIterator.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionIterator.java
deleted file mode 100644
index 84785caf478e..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionIterator.java
+++ /dev/null
@@ -1,289 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.io.IOException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.java.project.JavaProjectConstants;
-import org.netbeans.api.project.ProjectUtils;
-import org.netbeans.api.project.Sources;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.config.model.*;
-import org.netbeans.modules.web.struts.editor.StrutsEditorUtilities;
-import org.netbeans.spi.java.project.support.ui.templates.JavaTemplates;
-import org.openide.WizardDescriptor;
-import org.openide.loaders.DataFolder;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.TemplateWizard;
-import org.openide.util.NbBundle;
-import org.openide.filesystems.FileObject;
-
-import org.netbeans.api.project.Project;
-
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.netbeans.api.project.SourceGroup;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.modules.web.struts.StrutsUtilities;
-import org.openide.cookies.OpenCookie;
-
-/** A template wizard iterator for new struts action
- *
- * @author Petr Pisl
- *
- */
-
-public class ActionIterator implements TemplateWizard.Iterator {
-
- private int index;
-
- private transient WizardDescriptor.Panel[] panels;
-
- private transient boolean debug = false;
-
- public void initialize (TemplateWizard wizard) {
- if (debug) log ("initialize"); //NOI18N
- index = 0;
- // obtaining target folder
- Project project = Templates.getProject( wizard );
- DataFolder targetFolder=null;
- try {
- targetFolder = wizard.getTargetFolder();
- } catch (IOException ex) {
- targetFolder = DataFolder.findFolder(project.getProjectDirectory());
- }
-
- SourceGroup[] sourceGroups = ProjectUtils.getSources(project).getSourceGroups(
- JavaProjectConstants.SOURCES_TYPE_JAVA);
- if (debug) {
- log ("\tproject: " + project); //NOI18N
- log ("\ttargetFolder: " + targetFolder); //NOI18N
- log ("\tsourceGroups.length: " + sourceGroups.length); //NOI18N
- }
-
- WizardDescriptor.Panel secondPanel = new ActionPanel(project, wizard);
- WizardDescriptor.Panel thirdPanel = new ActionPanel1(project);
-
- WizardDescriptor.Panel javaPanel;
- if (sourceGroups.length == 0)
- javaPanel = new FinishableProxyWizardPanel(Templates.createSimpleTargetChooser(project, sourceGroups, secondPanel));
- else
- javaPanel = new FinishableProxyWizardPanel(JavaTemplates.createPackageChooser(project, sourceGroups, secondPanel));
-
- panels = new WizardDescriptor.Panel[] { javaPanel, thirdPanel };
-
- // Creating steps.
- Object prop = wizard.getProperty (WizardDescriptor.PROP_CONTENT_DATA); // NOI18N
- String[] beforeSteps = null;
- if (prop instanceof String[]) {
- beforeSteps = (String[])prop;
- }
- String[] steps = createSteps (beforeSteps, panels);
-
- for (int i = 0; i < panels.length; i++) {
- JComponent jc = (JComponent)panels[i].getComponent ();
- if (steps[i] == null) {
- steps[i] = jc.getName ();
- }
- jc.putClientProperty (WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i); // NOI18N
- jc.putClientProperty (WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
-
- public void uninitialize (TemplateWizard wizard) {
- panels = null;
- }
-
- public Set instantiate(TemplateWizard wizard) throws IOException {
- if (debug)
- log("instantiate"); //NOI18N
-
- FileObject dir = Templates.getTargetFolder( wizard );
- DataFolder df = DataFolder.findFolder( dir );
- FileObject template = Templates.getTemplate( wizard );
-
- String superclass=(String)wizard.getProperty(WizardProperties.ACTION_SUPERCLASS);
- if (debug)
- log("superclass="+superclass); //NOI18N
- boolean replaceSuperClass = false;
- if (ActionPanelVisual.DEFAULT_ACTION.equals(superclass)){
- superclass = "Action";
- replaceSuperClass = true;
- } else if (ActionPanelVisual.DISPATCH_ACTION.equals(superclass)) {
- FileObject templateParent = template.getParent();
- template = templateParent.getFileObject("DispatchAction","java"); //NOI18N
- } else if (ActionPanelVisual.MAPPING_DISPATCH_ACTION.equals(superclass)) {
- FileObject templateParent = template.getParent();
- template = templateParent.getFileObject("MappingDispatchAction","java"); //NOI18N
- } else if (ActionPanelVisual.LOOKUP_DISPATCH_ACTION.equals(superclass)) {
- FileObject templateParent = template.getParent();
- template = templateParent.getFileObject("LookupDispatchAction","java"); //NOI18N
- }
- else {
- replaceSuperClass = true;
- }
-
-
- String targetName = Templates.getTargetName(wizard);
- DataObject dTemplate = DataObject.find( template );
- Map attributes = new HashMap();
- attributes.put("superclass", wizard.getProperty("action_superclass"));
- DataObject dobj = dTemplate.createFromTemplate(df, targetName, attributes);
-
-
- Project project = Templates.getProject(wizard);
- WebModule wm = WebModule.getWebModule(project.getProjectDirectory());
- if (wm != null && !StrutsUtilities.isInWebModule(wm)) {
- StrutsUtilities.enableStruts(wm, null);
- }
-
- String configFile = (String) wizard.getProperty(WizardProperties.ACTION_CONFIG_FILE);
- if (wm != null && configFile != null && !"".equals(configFile)) { //NOI18N
- // the file is created outside a wm -> we don't need to write the declaration.
- dir = wm.getDocumentBase();
-
- FileObject fo = dir.getFileObject(configFile);
- StrutsConfigDataObject configDO = (StrutsConfigDataObject)DataObject.find(fo);
- StrutsConfig config= configDO.getStrutsConfig();
- Action action = new Action();
-
- Sources sources = ProjectUtils.getSources(project);
- SourceGroup[] groups = sources.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
- String packageName = null;
- org.openide.filesystems.FileObject targetFolder = Templates.getTargetFolder(wizard);
- for (int i = 0; i < groups.length && packageName == null; i++) {
- packageName = org.openide.filesystems.FileUtil.getRelativePath (groups [i].getRootFolder (), targetFolder);
- if (packageName!=null) break;
- }
- if (packageName!=null) packageName = packageName.replace('/','.');
- else packageName=""; //NOI18N
- String className=null;
- if (packageName.length()>0)
- className=packageName+"."+targetName;//NOI18N
- else
- className=targetName;
- action.setAttributeValue("type", className); //NOI18N
-
- String path = (String) wizard.getProperty(WizardProperties.ACTION_PATH);
- action.setAttributeValue("path", path.startsWith("/") ? path : "/" + path); //NOI18N
-
- String formName = (String) wizard.getProperty(WizardProperties.ACTION_FORM_NAME);
- if (formName!=null) {
- action.setAttributeValue("name", formName); //NOI18N
- action.setAttributeValue("scope",(String) wizard.getProperty(WizardProperties.ACTION_SCOPE)); //NOI18N
- action.setAttributeValue("input",(String) wizard.getProperty(WizardProperties.ACTION_INPUT)); //NOI18N
- action.setAttributeValue("attribute",(String) wizard.getProperty(WizardProperties.ACTION_ATTRIBUTE)); //NOI18N
- Boolean validate = (Boolean) wizard.getProperty(WizardProperties.ACTION_VALIDATE);
- if (Boolean.FALSE.equals(validate)) action.setAttributeValue("validate","false"); //NOI18N
- action.setAttributeValue("attribute",(String) wizard.getProperty(WizardProperties.ACTION_ATTRIBUTE)); //NOI18N
- }
- action.setAttributeValue("parameter",(String) wizard.getProperty(WizardProperties.ACTION_PARAMETER)); //NOI18N
-
- if (config != null) {
- if (config.getActionMappings() == null) {
- config.setActionMappings(new ActionMappings());
- }
- config.getActionMappings().addAction(action);
- }
- BaseDocument doc = (BaseDocument)configDO.getEditorSupport().getDocument();
- if (doc == null){
- ((OpenCookie)configDO.getCookie(OpenCookie.class)).open();
- doc = (BaseDocument)configDO.getEditorSupport().getDocument();
- }
- StrutsEditorUtilities.writeBean(doc, action, "action", "action-mappings"); //NOI18N
- configDO.getEditorSupport().saveDocument();
- }
- return Collections.singleton(dobj);
- }
-
- public void previousPanel () {
- if (! hasPrevious ()) throw new NoSuchElementException ();
- index--;
- }
-
- public void nextPanel () {
- if (! hasNext ()) throw new NoSuchElementException ();
- index++;
- }
-
- public boolean hasPrevious () {
- return index > 0;
- }
-
- public boolean hasNext () {
- return index < panels.length - 1;
- }
-
- public String name () {
- return NbBundle.getMessage (ActionIterator.class, "TITLE_x_of_y", //NOI18N
- index + 1, panels.length);
- }
-
- public WizardDescriptor.Panel current () {
- return panels[index];
- }
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener (ChangeListener l) {}
- public final void removeChangeListener (ChangeListener l) {}
-
-
- private void log (String message){
- System.out.println("ActionIterator:: \t" + message); //NOI18N
- }
-
- private String[] createSteps(String[] before, WizardDescriptor.Panel[] panels) {
- int diff = 0;
- if (before == null) {
- before = new String[0];
- } else if (before.length > 0) {
- diff = ("...".equals (before[before.length - 1])) ? 1 : 0; // NOI18N
- }
- String[] res = new String[ (before.length - diff) + panels.length];
- for (int i = 0; i < res.length; i++) {
- if (i < (before.length - diff)) {
- res[i] = before[i];
- } else {
- res[i] = panels[i - before.length + diff].getComponent ().getName ();
- }
- }
- return res;
- }
-
- private void replaceInDocument(javax.swing.text.Document document, String replaceFrom, String replaceTo) {
- javax.swing.text.AbstractDocument doc = (javax.swing.text.AbstractDocument)document;
- int len = replaceFrom.length();
- try {
- String content = doc.getText(0,doc.getLength());
- int index = content.lastIndexOf(replaceFrom);
- while (index>=0) {
- doc.replace(index,len,replaceTo,null);
- content=content.substring(0,index);
- index = content.lastIndexOf(replaceFrom);
- }
- } catch (javax.swing.text.BadLocationException ex){}
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel.java
deleted file mode 100644
index d12e3f3b6616..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-
-import org.netbeans.api.project.Project;
-
-/**
- *
- * @author radko
- */
-public class ActionPanel implements WizardDescriptor.Panel, WizardDescriptor.FinishablePanel, ChangeListener {
-
- private WizardDescriptor wizardDescriptor;
- private ActionPanelVisual component;
- private Project project;
-
- /** Creates a new instance of ActionPanel */
- public ActionPanel(Project project, WizardDescriptor wizardDescriptor) {
- this.project=project;
- this.wizardDescriptor = wizardDescriptor;
- }
-
- Project getProject() {
- return project;
- }
-
- public Component getComponent() {
- if (component == null){
- component = new ActionPanelVisual(this);
- component.addChangeListener(this);
- }
- return component;
- }
-
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor desc = (WizardDescriptor) settings;
- component.store(desc);
- }
-
- public HelpCtx getHelp() {
- return new HelpCtx(ActionPanel.class);
- }
-
- private final Set/**/ listeners = new HashSet(1);
-
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- public boolean isFinishPanel() {
- return isValid();
- }
-
- public void stateChanged(ChangeEvent e) {
- fireChange();
- }
-
- private void fireChange() {
- ChangeEvent e = new ChangeEvent(this);
- Iterator it = listeners.iterator();
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(e);
- }
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1.java
deleted file mode 100644
index 2fe0f1951975..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Set;
-import javax.swing.event.ChangeListener;
-
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-
-import org.netbeans.api.project.Project;
-
-/**
- *
- * @author radko
- */
-public class ActionPanel1 implements WizardDescriptor.Panel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private ActionPanel1Visual component;
- private Project project;
-
- /** Creates a new instance of ActionPanel */
- public ActionPanel1(Project project) {
- this.project=project;
- }
-
- Project getProject() {
- return project;
- }
-
- public Component getComponent() {
- if (component == null)
- component = new ActionPanel1Visual(this);
-
- return component;
- }
-
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
- // XXX hack, TemplateWizard in final setTemplateImpl() forces new wizard's title
- // this name is used in NewProjectWizard to modify the title
- Object substitute = ((javax.swing.JComponent) component).getClientProperty("NewFileWizard_Title"); // NOI18N
- if (substitute != null)
- wizardDescriptor.putProperty("NewFileWizard_Title", substitute); // NOI18N
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor desc = (WizardDescriptor) settings;
- component.store(desc);
- }
-
- public HelpCtx getHelp() {
- return new HelpCtx(ActionPanel1.class);
- }
-
- private final Set/**/ listeners = new HashSet(1);
-
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
-
- public boolean isFinishPanel() {
- return isValid();
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.form
deleted file mode 100644
index 4b79cd89cec8..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.form
+++ /dev/null
@@ -1,409 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.java
deleted file mode 100644
index 89fbafd5b52d..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanel1Visual.java
+++ /dev/null
@@ -1,491 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.netbeans.modules.j2ee.dd.api.common.InitParam;
-import org.netbeans.modules.j2ee.dd.api.web.Servlet;
-import org.netbeans.modules.web.struts.config.model.Action;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.netbeans.modules.web.struts.dialogs.BrowseFolders;
-import org.openide.WizardDescriptor;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.util.HelpCtx;
-import org.netbeans.api.project.Project;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.openide.util.NbBundle;
-
-public class ActionPanel1Visual extends javax.swing.JPanel implements HelpCtx.Provider {
- String configFile;
- private ActionPanel1 panel;
-
- /** Creates new form ActionPanel1Visual */
- public ActionPanel1Visual(ActionPanel1 panel) {
- this.panel=panel;
- initComponents();
- setName(NbBundle.getMessage(ActionPanel1Visual.class,"TITLE_FormBean&Parameter"));
- putClientProperty("NewFileWizard_Title", //NOI18N
- NbBundle.getMessage(ActionPanel1Visual.class, "TITLE_StrutsAction"));
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- buttonGroup1 = new javax.swing.ButtonGroup();
- buttonGroup2 = new javax.swing.ButtonGroup();
- jLabelFormName = new javax.swing.JLabel();
- CBFormName = new javax.swing.JComboBox();
- CBInputAction = new javax.swing.JComboBox();
- TFInputResource = new javax.swing.JTextField();
- CHBUseFormBean = new javax.swing.JCheckBox();
- jButtonBrowse = new javax.swing.JButton();
- jPanel1 = new javax.swing.JPanel();
- RBSession = new javax.swing.JRadioButton();
- RBRequest = new javax.swing.JRadioButton();
- jLabelScope = new javax.swing.JLabel();
- jLabelAttribute = new javax.swing.JLabel();
- TFAttribute = new javax.swing.JTextField();
- CHBValidate = new javax.swing.JCheckBox();
- jLabelParameter = new javax.swing.JLabel();
- TFParameter = new javax.swing.JTextField();
- RBInputResource = new javax.swing.JRadioButton();
- RBInputAction = new javax.swing.JRadioButton();
- jParameterSpecificLabel = new javax.swing.JLabel();
-
- setLayout(new java.awt.GridBagLayout());
-
- getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_ActionPanel1"));
- jLabelFormName.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_FormName_mnem").charAt(0));
- jLabelFormName.setLabelFor(CBFormName);
- jLabelFormName.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_FormName"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelFormName, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(CBFormName, gridBagConstraints);
- CBFormName.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_CBFormName"));
-
- CBInputAction.setEnabled(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(CBInputAction, gridBagConstraints);
- CBInputAction.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("RB_InputAction"));
- CBInputAction.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_CBInputAction"));
-
- TFInputResource.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFInputResource, gridBagConstraints);
- TFInputResource.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("RB_InputResource"));
- TFInputResource.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_TFInputResource"));
-
- CHBUseFormBean.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_UseFormBean_mnem").charAt(0));
- CHBUseFormBean.setSelected(true);
- CHBUseFormBean.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "CB_UseFormBean"));
- CHBUseFormBean.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- CHBUseFormBean.setMargin(new java.awt.Insets(0, 0, 0, 0));
- CHBUseFormBean.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- CHBUseFormBeanItemStateChanged(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- add(CHBUseFormBean, gridBagConstraints);
- CHBUseFormBean.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_CHBUseFormBean"));
-
- jButtonBrowse.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_BrowseButton_mnem").charAt(0));
- jButtonBrowse.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_BrowseButton"));
- jButtonBrowse.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonBrowseActionPerformed(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 0);
- add(jButtonBrowse, gridBagConstraints);
- jButtonBrowse.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_jButtonBrowse"));
-
- buttonGroup1.add(RBSession);
- RBSession.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_Session_mnem").charAt(0));
- RBSession.setSelected(true);
- RBSession.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_Sesson"));
- RBSession.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- RBSession.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(RBSession);
- RBSession.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_RBSession"));
-
- buttonGroup1.add(RBRequest);
- RBRequest.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_Request_mnem").charAt(0));
- RBRequest.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_Request"));
- RBRequest.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- RBRequest.setMargin(new java.awt.Insets(0, 0, 0, 0));
- jPanel1.add(RBRequest);
- RBRequest.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_Request"));
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(jPanel1, gridBagConstraints);
-
- jLabelScope.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Scope"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 4;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelScope, gridBagConstraints);
-
- jLabelAttribute.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Attribute_mnem").charAt(0));
- jLabelAttribute.setLabelFor(TFAttribute);
- jLabelAttribute.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Attribute"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(jLabelAttribute, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 5;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(TFAttribute, gridBagConstraints);
- TFAttribute.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_TFAttribute"));
-
- CHBValidate.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "CB_Validate_mnem").charAt(0));
- CHBValidate.setSelected(true);
- CHBValidate.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "CB_Validate"));
- CHBValidate.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- CHBValidate.setMargin(new java.awt.Insets(0, 0, 0, 0));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 6;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(CHBValidate, gridBagConstraints);
- CHBValidate.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_CHBValidate"));
-
- jLabelParameter.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Parameter_mnem").charAt(0));
- jLabelParameter.setLabelFor(TFParameter);
- jLabelParameter.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Parameter"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);
- add(jLabelParameter, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 7;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(20, 12, 0, 0);
- add(TFParameter, gridBagConstraints);
- TFParameter.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_TFParameter"));
-
- buttonGroup2.add(RBInputResource);
- RBInputResource.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_InputResource_mnem").charAt(0));
- RBInputResource.setSelected(true);
- RBInputResource.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_InputResource"));
- RBInputResource.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- RBInputResource.setMargin(new java.awt.Insets(0, 0, 0, 0));
- RBInputResource.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- RBInputResourceItemStateChanged(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(RBInputResource, gridBagConstraints);
- RBInputResource.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_RBInputResource"));
-
- buttonGroup2.add(RBInputAction);
- RBInputAction.setMnemonic(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_InputAction_mnem").charAt(0));
- RBInputAction.setText(org.openide.util.NbBundle.getMessage(ActionPanel1Visual.class, "RB_InputAction"));
- RBInputAction.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
- RBInputAction.setMargin(new java.awt.Insets(0, 0, 0, 0));
- RBInputAction.addItemListener(new java.awt.event.ItemListener() {
- public void itemStateChanged(java.awt.event.ItemEvent evt) {
- RBInputActionItemStateChanged(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 3;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 20, 0, 0);
- add(RBInputAction, gridBagConstraints);
- RBInputAction.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("RBInputAction"));
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 8;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.weighty = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(jParameterSpecificLabel, gridBagConstraints);
-
- }// //GEN-END:initComponents
-
- private void jButtonBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBrowseActionPerformed
-// TODO add your handling code here:
- Project proj = panel.getProject();
- WebModule wm = WebModule.getWebModule(proj.getProjectDirectory());
- org.openide.filesystems.FileObject configFO = wm.getDocumentBase().getFileObject(configFile);
- if (configFO!=null) {
- try {
- DataObject dObj = DataObject.find(configFO);
- if (dObj instanceof StrutsConfigDataObject) {
- StrutsConfigDataObject config = (StrutsConfigDataObject)dObj;
- org.netbeans.api.project.SourceGroup[] groups = StrutsConfigUtilities.getDocBaseGroups(configFO);
- org.openide.filesystems.FileObject fo = BrowseFolders.showDialog(groups);
- if (fo!=null) {
- String res = "/"+StrutsConfigUtilities.getResourcePath(groups,fo,'/',true);
- TFInputResource.setText(res);
- }
- }
- } catch (DataObjectNotFoundException ex) {} catch (java.io.IOException ex) {}
- }
- }//GEN-LAST:event_jButtonBrowseActionPerformed
-
- private void RBInputActionItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_RBInputActionItemStateChanged
-// TODO add your handling code here:
- boolean selected = RBInputAction.isSelected();
- TFInputResource.setEditable(!selected);
- jButtonBrowse.setEnabled(!selected);
- CBInputAction.setEnabled(selected);
- }//GEN-LAST:event_RBInputActionItemStateChanged
-
- private void RBInputResourceItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_RBInputResourceItemStateChanged
-// TODO add your handling code here:
- boolean selected = RBInputResource.isSelected();
- TFInputResource.setEditable(selected);
- jButtonBrowse.setEnabled(selected);
- CBInputAction.setEnabled(!selected);
- }//GEN-LAST:event_RBInputResourceItemStateChanged
-
- private void CHBUseFormBeanItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_CHBUseFormBeanItemStateChanged
-// TODO add your handling code here:
- boolean selected = CHBUseFormBean.isSelected();
- CBFormName.setEnabled(selected);
- RBInputResource.setEnabled(selected);
- RBInputAction.setEnabled(selected);
- if (selected) {
- if (RBInputResource.isSelected()) {
- TFInputResource.setEditable(true);
- jButtonBrowse.setEnabled(true);
- } else {
- CBInputAction.setEnabled(true);
- }
- } else {
- TFInputResource.setEditable(false);
- jButtonBrowse.setEnabled(false);
- CBInputAction.setEnabled(false);
- }
-
- RBSession.setEnabled(selected);
- RBRequest.setEnabled(selected);
- TFAttribute.setEditable(selected);
- CHBValidate.setEnabled(selected);
- }//GEN-LAST:event_CHBUseFormBeanItemStateChanged
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JComboBox CBFormName;
- private javax.swing.JComboBox CBInputAction;
- private javax.swing.JCheckBox CHBUseFormBean;
- private javax.swing.JCheckBox CHBValidate;
- private javax.swing.JRadioButton RBInputAction;
- private javax.swing.JRadioButton RBInputResource;
- private javax.swing.JRadioButton RBRequest;
- private javax.swing.JRadioButton RBSession;
- private javax.swing.JTextField TFAttribute;
- private javax.swing.JTextField TFInputResource;
- private javax.swing.JTextField TFParameter;
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.ButtonGroup buttonGroup2;
- private javax.swing.JButton jButtonBrowse;
- private javax.swing.JLabel jLabelAttribute;
- private javax.swing.JLabel jLabelFormName;
- private javax.swing.JLabel jLabelParameter;
- private javax.swing.JLabel jLabelScope;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JLabel jParameterSpecificLabel;
- // End of variables declaration//GEN-END:variables
-
- boolean valid(WizardDescriptor wizardDescriptor) {
- return true;
- }
-
- void read(WizardDescriptor settings) {
-
- // initialize the parameter value
- if (settings.getProperty(WizardProperties.ACTION_PARAMETER)==null) {
- String actionClass = (String)settings.getProperty(WizardProperties.ACTION_SUPERCLASS);
- if (ActionPanelVisual.DISPATCH_ACTION.equals(actionClass)){
- TFParameter.setText("method"); //NOI18N
- jParameterSpecificLabel.setText(NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Dispatch_Action"));//NOI18
- } else if (ActionPanelVisual.MAPPING_DISPATCH_ACTION.equals(actionClass)){
- TFParameter.setText("customMethod"); //NOI18
- jParameterSpecificLabel.setText(NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Mapping_Dispatch_Action"));//NOI18
- } else if (ActionPanelVisual.LOOKUP_DISPATCH_ACTION.equals(actionClass)){
- TFParameter.setText(""); //NOI18
- jParameterSpecificLabel.setText(NbBundle.getMessage(ActionPanel1Visual.class, "LBL_Lookup_Dispatch_Action"));//NOI18
- } else{
- TFParameter.setText(""); //NOI18
- jParameterSpecificLabel.setText(""); //NOI18
- }
- }
- configFile = (String)settings.getProperty(WizardProperties.ACTION_CONFIG_FILE);
- Project proj = panel.getProject();
- WebModule wm = WebModule.getWebModule(proj.getProjectDirectory());
- if (wm != null && configFile != null && !"".equals(configFile.trim())){ //NOI18N
- org.openide.filesystems.FileObject fo = wm.getDocumentBase().getFileObject(configFile);
- if (fo!=null) {
- try {
- DataObject dObj = DataObject.find(fo);
- if (dObj instanceof StrutsConfigDataObject) {
- StrutsConfigDataObject strutsDO = (StrutsConfigDataObject)dObj;
-
- // initialize Input Actions Combo Box
- List actions = StrutsConfigUtilities.getAllActionsInModule(strutsDO);
- String[] actionPaths = new String[actions.size()];
- for (int i=0;i
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java
deleted file mode 100644
index 191dc4c4f564..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.awt.Component;
-import java.awt.event.ActionListener;
-import java.io.FileNotFoundException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import javax.swing.event.DocumentListener;
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-import org.netbeans.api.project.Project;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.netbeans.spi.xml.cookies.ValidateXMLSupport;
-import org.openide.filesystems.FileObject;
-import org.openide.util.NbBundle;
-import org.xml.sax.InputSource;
-
-public class ActionPanelVisual extends javax.swing.JPanel implements HelpCtx.Provider, ActionListener, DocumentListener {
-
- static final String DEFAULT_ACTION = "org.apache.struts.action.Action"; //NOI18N
- static final String DISPATCH_ACTION = "org.apache.struts.actions.DispatchAction"; //NOI18N
- static final String MAPPING_DISPATCH_ACTION = "org.apache.struts.actions.MappingDispatchAction"; //NOI18N
- static final String LOOKUP_DISPATCH_ACTION = "org.apache.struts.actions.LookupDispatchAction"; //NOI18N
-
- private static final String[] SUPERCLASS_LIST = {DEFAULT_ACTION, DISPATCH_ACTION, MAPPING_DISPATCH_ACTION, LOOKUP_DISPATCH_ACTION};
- private final WebModule webModule;
- private final List/**/ listeners = new ArrayList();
-
- /** Creates new form ActionPanelVisual */
- public ActionPanelVisual(ActionPanel panel) {
- initComponents();
- jComboBoxSuperclass.setModel(new javax.swing.DefaultComboBoxModel(SUPERCLASS_LIST));
- jComboBoxSuperclass.getEditor().addActionListener( this );
- Project proj = panel.getProject();
- webModule = WebModule.getWebModule(proj.getProjectDirectory());
- if (webModule != null){
- String[] configFiles = StrutsConfigUtilities.getConfigFiles(webModule.getDeploymentDescriptor());
- jComboBoxConfigFile.setModel(new javax.swing.DefaultComboBoxModel(configFiles));
- }
- jComboBoxConfigFile.addActionListener( this );
- jTextFieldPath.getDocument().addDocumentListener( this );
-
- Component superclassEditor = jComboBoxSuperclass.getEditor().getEditorComponent();
- if ( superclassEditor instanceof javax.swing.JTextField ) {
- ((javax.swing.JTextField)superclassEditor).getDocument().addDocumentListener( this );
- }
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabelSuperclass = new javax.swing.JLabel();
- jComboBoxSuperclass = new javax.swing.JComboBox();
- jLabelConfigFile = new javax.swing.JLabel();
- jComboBoxConfigFile = new javax.swing.JComboBox();
- jLabelPath = new javax.swing.JLabel();
- jTextFieldPath = new javax.swing.JTextField();
-
- setLayout(new java.awt.GridBagLayout());
-
- jLabelSuperclass.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_Superlass_mnem").charAt(0));
- jLabelSuperclass.setText(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_Superclass"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- add(jLabelSuperclass, gridBagConstraints);
-
- jComboBoxSuperclass.setEditable(true);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(jComboBoxSuperclass, gridBagConstraints);
- jComboBoxSuperclass.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_jComboBoxSuperclass"));
-
- jLabelConfigFile.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_ConfigFile_mnem").charAt(0));
- jLabelConfigFile.setLabelFor(jComboBoxConfigFile);
- jLabelConfigFile.setText(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_ConfigFile"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
- add(jLabelConfigFile, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(jComboBoxConfigFile, gridBagConstraints);
- jComboBoxConfigFile.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_jComboBoxConfigFile"));
-
- jLabelPath.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_ActionPath_mnem").charAt(0));
- jLabelPath.setLabelFor(jTextFieldPath);
- jLabelPath.setText(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class, "LBL_ActionPath"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
- add(jLabelPath, gridBagConstraints);
-
- jTextFieldPath.setText("/");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
- gridBagConstraints.weighty = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
- add(jTextFieldPath, gridBagConstraints);
- jTextFieldPath.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_jTextFieldPath"));
-
- }// //GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JComboBox jComboBoxConfigFile;
- private javax.swing.JComboBox jComboBoxSuperclass;
- private javax.swing.JLabel jLabelConfigFile;
- private javax.swing.JLabel jLabelPath;
- private javax.swing.JLabel jLabelSuperclass;
- private javax.swing.JTextField jTextFieldPath;
- // End of variables declaration//GEN-END:variables
-
- boolean valid(WizardDescriptor wizardDescriptor) {
- // check super class
- String superclass = (String) jComboBoxSuperclass.getEditor().getItem();
- if (superclass == null || superclass.trim().equals("")){
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, //NOI18N
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_NoSuperClassSelected")); //NOI18N
- return false;
- }
-
- // check configuration file
- String configFile = (String) jComboBoxConfigFile.getSelectedItem();
- if (configFile == null || configFile.trim().equals("")){
- // Should dislpay only warning. We should allow to create action outside module. #68034
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, //NOI18N
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_NoConfFileSelectedForAction"));//NOI18N
- // don't check the action path, when the configuration file is not needed.
- return true;
- } else if (webModule != null) {
- FileObject fo = webModule.getDocumentBase().getFileObject(configFile);
- if (fo == null || !fo.isValid()) {
- // Check for valid path for struts-config.xml #123610
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_NoConfFileSelectedForAction")); //NOI18N
- return false;
- } else {
- try {
- // Check for valid struts-config.xml document #123610
- ValidateXMLSupport validator = new ValidateXMLSupport(new InputSource(fo.getInputStream()));
- if (!validator.validateXML(null)) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_ConfFileWithErrors")); //NOI18N
- return false;
- }
- } catch (FileNotFoundException ex) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_NoConfFileSelectedForAction")); //NOI18N
- return false;
- }
- }
- }
-
- // check Action path
- String actionPath = jTextFieldPath.getText();
- if (actionPath == null || actionPath.trim().equals("") || actionPath.trim().equals("/")){//NOI18N
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, //NOI18N
- NbBundle.getMessage(ActionPanelVisual.class, "MSG_WrongActionPath")); //NOI18N
- return false;
- }
- return true;
- }
-
- void read (WizardDescriptor settings) {
- }
-
- void store(WizardDescriptor settings) {
- settings.putProperty(WizardProperties.ACTION_PATH, jTextFieldPath.getText()); //NOI18N
- settings.putProperty(WizardProperties.ACTION_SUPERCLASS, (String)jComboBoxSuperclass.getSelectedItem()); //NOI18N
- settings.putProperty(WizardProperties.ACTION_CONFIG_FILE, (String)jComboBoxConfigFile.getSelectedItem()); //NOI18N
- }
-
- public HelpCtx getHelpCtx() {
- return new HelpCtx(ActionPanelVisual.class);
- }
-
- public void actionPerformed(java.awt.event.ActionEvent e) {
- fireChange();
- }
-
- public void addChangeListener(ChangeListener l) {
- listeners.add(l);
- }
-
- public void removeChangeListener(ChangeListener l) {
- listeners.remove(l);
- }
-
- private void fireChange() {
- ChangeEvent e = new ChangeEvent(this);
- Iterator it = listeners.iterator();
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(e);
- }
- }
-
- // DocumentListener implementation -----------------------------------------
-
- public void changedUpdate(javax.swing.event.DocumentEvent e) {
- fireChange();
- }
-
- public void insertUpdate(javax.swing.event.DocumentEvent e) {
- changedUpdate( e );
- }
-
- public void removeUpdate(javax.swing.event.DocumentEvent e) {
- changedUpdate( e );
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/Bundle.properties b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/Bundle.properties
deleted file mode 100644
index 9186cb620289..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/Bundle.properties
+++ /dev/null
@@ -1,141 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Sample ResourceBundle properties file
-TITLE_x_of_y={0} of {1}
-
-# FormBeanPropertiesPanelVisual
-LBL_Properties=Properties
-LBL_PropertiesTableHeader_Property=Property
-LBL_PropertiesTableHeader_Value=Type
-LBL_AddButton=Add
-LBL_RemoveButton=Remove
-LBL_AddButton_LabelMnemonic=A
-LBL_RemoveButton_LabelMnemonic=R
-
-# ActionPanel
-LBL_ActionPath=Action Path\:
-LBL_ActionPath_mnem=A
-LBL_ConfigFile_mnem=O
-LBL_Superclass=Superclass\:
-LBL_Superlass_mnem=S
-
-TITLE_FormBean&Parameter=ActionForm Bean, Parameter
-
-LBL_FormName=ActionForm Bean Name\:
-
-CB_UseFormBean=Use ActionForm Bean
-
-RB_InputResource=Input Resource\:
-
-RB_InputAction=Input Action\:
-
-CB_Validate=Validate ActionForm Bean
-
-LBL_Scope=Scope\:
-
-RB_Sesson=Session
-
-RB_Request=Request
-
-LBL_Attribute=Attribute\:
-
-LBL_Parameter=Parameter\:
-
-TITLE_StrutsAction=Struts Action
-
-LBL_ConfigFile=Configuration File\:
-
-LBL_BrowseButton=Browse...
-
-LBL_UseFormBean_mnem=U
-
-LBL_FormName_mnem=N
-
-RB_Session_mnem=S
-
-RB_Request_mnem=R
-
-CB_Validate_mnem=V
-
-LBL_Attribute_mnem=A
-
-LBL_Parameter_mnem=P
-
-RB_InputResource_mnem=I
-
-RB_InputAction_mnem=O
-
-LBL_BrowseButton_mnem=W
-
-# Messages for Specific parameter label in ActionPanel1Visual
-LBL_Dispatch_Action=URL name which contains called method on action.
-LBL_Mapping_Dispatch_Action=Name of called method on action.
-LBL_Lookup_Dispatch_Action=URL name which contains key of called method on action.
-
-ACSD_ConfiguratioFile=Select an Struts Configuration File.
-
-ACSD_CHBUseFormBean=Does the action use an ActionForm Bean?
-
-ACSD_CBFormName=Name of the form bean, if any, that is associated with this action mapping.
-
-ACSD_TFInputResource=A JSP file or other resource.
-
-ACSD_CBInputAction=Write path of already defined action.
-
-ACSD_TFAttribute=Name of the request-scope or session-scope attribute that \
- is used to access the ActionForm bean, if it is other than \
- the bean's specified "name". Optional if "name" is specified, \
- else not valid.
-ACSD_CHBValidate=Set to "true" if the validate method of the ActionForm bean \
- should be called prior to calling the Action object for this \
- action mapping, or set to "false" if you do not want the \
- validate method called.
-
-ACSD_TFParameter=General-purpose configuration parameter that can be used to \
- pass extra information to the Action object selected by \
- this action mapping.
-
-ACSD_jButtonBrowse=Browse the files in the web module.
-
-ACSD_RBInputResource=Select an resource in the web module.
-
-RBInputAction=Select already defined action
-
-ACSD_RBSession=Session scope
-
-ACSD_Request=Request scope
-
-ACSD_ActionPanel1=Define parameters of the action
-
-ACSD_jTextFieldPath=The module-relative path of the submitted request, starting \
- with a "/" character, and without the filename extension if \
- extension mapping is used.
-
-ACSD_jComboBoxConfigFile=Select Struts configuration file where the definition will be written.
-ACSD_jComboBoxSuperclass=The fully qualified Java class name of the ActionMapping \
- subclass to use for this action mapping object.
-
-MSG_NoSuperClassSelected=A superclass must be defined.
-MSG_NoConfFileSelectedForAction=There is no configuration file where the action should be defined.
-MSG_WrongConfFileSelected=Struts configuration file does not exist on the specified path or is not readable.
-MSG_ConfFileWithErrors=The configuration file contains errors.
-MSG_NoConfFileSelectedForBean=There is no configuration file where the ActionForm should be defined.
-MSG_WrongActionPath=Enter valid Action Path.
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FinishableProxyWizardPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FinishableProxyWizardPanel.java
deleted file mode 100644
index 7ad1f968f840..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FinishableProxyWizardPanel.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.awt.Component;
-import javax.swing.JComponent;
-import org.openide.WizardDescriptor;
-
-/**
- * FinishableProxyWizardPanel.java - used decorator pattern to enable to finish
- * the original wizard panel, that is not finishable
- *
- *
- * @author mkuchtiak
- */
-public class FinishableProxyWizardPanel implements WizardDescriptor.Panel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor.Panel original;
- /** Creates a new instance of ProxyWizardPanel */
- public FinishableProxyWizardPanel(WizardDescriptor.Panel original) {
- this.original=original;
-
- }
-
- public void addChangeListener(javax.swing.event.ChangeListener l) {
- original.addChangeListener(l);
- }
-
- public void removeChangeListener(javax.swing.event.ChangeListener l) {
- original.removeChangeListener(l);
- }
-
- public void storeSettings(Object settings) {
- original.storeSettings(settings);
- }
-
- public void readSettings(Object settings) {
- original.readSettings(settings);
- }
-
- public boolean isValid() {
- return original.isValid();
- }
-
- public boolean isFinishPanel() {
- return true;
- }
-
- public java.awt.Component getComponent() {
- return original.getComponent();
- }
-
- public org.openide.util.HelpCtx getHelp() {
- return original.getHelp();
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanIterator.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanIterator.java
deleted file mode 100644
index 042ac76f89c4..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanIterator.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.io.IOException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.NoSuchElementException;
-import java.util.Set;
-
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.Sources;
-import org.netbeans.modules.web.struts.config.model.FormBeans;
-
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataFolder;
-import org.openide.loaders.TemplateWizard;
-import org.openide.util.NbBundle;
-
-import org.netbeans.api.java.project.JavaProjectConstants;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.project.ProjectUtils;
-
-import org.netbeans.api.project.SourceGroup;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.spi.java.project.support.ui.templates.JavaTemplates;
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.netbeans.modules.web.struts.StrutsConfigDataObject;
-import org.netbeans.modules.web.struts.config.model.FormBean;
-import org.netbeans.modules.web.struts.config.model.StrutsConfig;
-import org.netbeans.modules.web.struts.editor.StrutsEditorUtilities;
-import org.openide.cookies.OpenCookie;
-
-/** A template wizard iterator for new struts action
- *
- * @author Petr Pisl
- *
- */
-
-public class FormBeanIterator implements TemplateWizard.Iterator {
-
- private int index;
-
- private transient WizardDescriptor.Panel[] panels;
-
- private transient boolean debug = false;
-
- public void initialize (TemplateWizard wizard) {
- if (debug) log ("initialize"); //NOI18N
- index = 0;
- // obtaining target folder
- Project project = Templates.getProject( wizard );
- DataFolder targetFolder=null;
- try {
- targetFolder = wizard.getTargetFolder();
- } catch (IOException ex) {
- targetFolder = DataFolder.findFolder(project.getProjectDirectory());
- }
-
- SourceGroup[] sourceGroups = ProjectUtils.getSources(project).getSourceGroups(
- JavaProjectConstants.SOURCES_TYPE_JAVA);
- if (debug) {
- log ("\tproject: " + project); //NOI18N
- log ("\ttargetFolder: " + targetFolder); //NOI18N
- log ("\tsourceGroups.length: " + sourceGroups.length); //NOI18N
- }
-
- WizardDescriptor.Panel secondPanel = new FormBeanNewPanel(project, wizard);
-
- WizardDescriptor.Panel javaPanel;
- if (sourceGroups.length == 0)
- javaPanel = Templates.createSimpleTargetChooser(project, sourceGroups, secondPanel);
- else
- javaPanel = JavaTemplates.createPackageChooser(project, sourceGroups, secondPanel);
-
-
- panels = new WizardDescriptor.Panel[] {
- javaPanel
- };
-
- // Creating steps.
- Object prop = wizard.getProperty (WizardDescriptor.PROP_CONTENT_DATA); // NOI18N
- String[] beforeSteps = null;
- if (prop instanceof String[]) {
- beforeSteps = (String[])prop;
- }
- String[] steps = createSteps (beforeSteps, panels);
-
- for (int i = 0; i < panels.length; i++) {
- JComponent jc = (JComponent)panels[i].getComponent ();
- if (steps[i] == null) {
- steps[i] = jc.getName ();
- }
- jc.putClientProperty (WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i); // NOI18N
- jc.putClientProperty (WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
-
- public void uninitialize (TemplateWizard wizard) {
- panels = null;
- }
-
- public Set instantiate(TemplateWizard wizard) throws IOException {
-//how to get dynamic form bean properties
-//String formBeanClassName = (String) wizard.getProperty(WizardProperties.FORMBEAN_CLASS); //NOI18N
-
- if (debug)
- log("instantiate"); //NOI18N
-
- FileObject dir = Templates.getTargetFolder( wizard );
- DataFolder df = DataFolder.findFolder( dir );
- FileObject template = Templates.getTemplate( wizard );
-
- DataObject dTemplate = DataObject.find( template );
- Map attributes = new HashMap();
- attributes.put("superclass", wizard.getProperty("formBeanSuperclass"));
- DataObject dobj = dTemplate.createFromTemplate(df, Templates.getTargetName(wizard), attributes);
-
- Project project = Templates.getProject( wizard );
- WebModule wm = WebModule.getWebModule(project.getProjectDirectory());
- String configFile = (String) wizard.getProperty(WizardProperties.FORMBEAN_CONFIG_FILE);
-
- if (wm != null && configFile != null && !"".equals(configFile)){ //NOI18N
- // write to a struts configuration file, only when it's inside wm.
- dir = wm.getDocumentBase();
-
- String targetName = Templates.getTargetName(wizard);
- Sources sources = ProjectUtils.getSources(project);
- SourceGroup[] groups = sources.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
- String packageName = null;
- org.openide.filesystems.FileObject targetFolder = Templates.getTargetFolder(wizard);
- for (int i = 0; i < groups.length && packageName == null; i++) {
- packageName = org.openide.filesystems.FileUtil.getRelativePath (groups [i].getRootFolder (), targetFolder);
- if (packageName!=null) break;
- }
- if (packageName!=null) packageName = packageName.replace('/','.');
- else packageName=""; //NOI18N
- String className=null;
- if (packageName.length()>0)
- className=packageName+"."+targetName;//NOI18N
- else
- className=targetName;
-
-
- FileObject fo = dir.getFileObject(configFile); //NOI18N
- if (fo != null){
- StrutsConfigDataObject configDO = (StrutsConfigDataObject)DataObject.find(fo);
- StrutsConfig config= configDO.getStrutsConfig();
-
- FormBean formBean = new FormBean();
- formBean.setAttributeValue("name", targetName); //NOI18N
- formBean.setAttributeValue("type", className); //NOI18N
- if (config != null && config.getFormBeans()==null){
- config.setFormBeans(new FormBeans());
- }
-
- config.getFormBeans().addFormBean(formBean);
- BaseDocument doc = (BaseDocument)configDO.getEditorSupport().getDocument();
- if (doc == null){
- ((OpenCookie)configDO.getCookie(OpenCookie.class)).open();
- doc = (BaseDocument)configDO.getEditorSupport().getDocument();
- }
- StrutsEditorUtilities.writeBean(doc, formBean, "form-bean", "form-beans"); //NOI18N
- configDO.getEditorSupport().saveDocument();
- }
- }
- return Collections.singleton(dobj);
- }
-
- public void previousPanel () {
- if (! hasPrevious ()) throw new NoSuchElementException ();
- index--;
- }
-
- public void nextPanel () {
- if (! hasNext ()) throw new NoSuchElementException ();
- index++;
- }
-
- public boolean hasPrevious () {
- return index > 0;
- }
-
- public boolean hasNext () {
- return index < panels.length - 1;
- }
-
- public String name () {
- return NbBundle.getMessage (ActionIterator.class, "TITLE_x_of_y", //NOI18N
- index + 1, panels.length);
- }
-
- public WizardDescriptor.Panel current () {
- return panels[index];
- }
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener (ChangeListener l) {}
- public final void removeChangeListener (ChangeListener l) {}
-
-
- private void log (String message){
- System.out.println("ActionIterator:: \t" + message); //NOI18N
- }
-
- private String[] createSteps(String[] before, WizardDescriptor.Panel[] panels) {
- int diff = 0;
- if (before == null) {
- before = new String[0];
- } else if (before.length > 0) {
- diff = ("...".equals (before[before.length - 1])) ? 1 : 0; // NOI18N
- }
- String[] res = new String[ (before.length - diff) + panels.length];
- for (int i = 0; i < res.length; i++) {
- if (i < (before.length - diff)) {
- res[i] = before[i];
- } else {
- res[i] = panels[i - before.length + diff].getComponent ().getName ();
- }
- }
- return res;
- }
-
- private void replaceInDocument(javax.swing.text.Document document, String replaceFrom, String replaceTo) {
- javax.swing.text.AbstractDocument doc = (javax.swing.text.AbstractDocument)document;
- int len = replaceFrom.length();
- try {
- String content = doc.getText(0,doc.getLength());
- int index = content.lastIndexOf(replaceFrom);
- while (index>=0) {
- doc.replace(index,len,replaceTo,null);
- content=content.substring(0,index);
- index = content.lastIndexOf(replaceFrom);
- }
- } catch (javax.swing.text.BadLocationException ex){}
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanel.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanel.java
deleted file mode 100644
index afad5dd7c232..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanel.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.Project;
-
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-
-/**
- * Panel asking for web frameworks to use.
- * @author Radko Najman
- */
-final class FormBeanNewPanel implements WizardDescriptor.Panel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private FormBeanNewPanelVisual component;
-
- private Project project;
- /** Create the wizard panel descriptor. */
- public FormBeanNewPanel(Project project, WizardDescriptor wizardDescriptor) {
- this.project = project;
- this.wizardDescriptor = wizardDescriptor;
- }
-
- public boolean isFinishPanel() {
- return true;
- }
-
- public Component getComponent() {
- if (component == null)
- component = new FormBeanNewPanelVisual(project);
-
- return component;
- }
-
- public HelpCtx getHelp() {
- return new HelpCtx(FormBeanNewPanel.class);
- }
-
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- private final Set/**/ listeners = new HashSet(1);
-
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
-
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
-
- // XXX hack, TemplateWizard in final setTemplateImpl() forces new wizard's title
- // this name is used in NewProjectWizard to modify the title
- Object substitute = ((JComponent) component).getClientProperty("NewProjectWizard_Title"); // NOI18N
- if (substitute != null)
- wizardDescriptor.putProperty("NewProjectWizard_Title", substitute); // NOI18N
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor) settings;
- component.store(d);
-
- ((WizardDescriptor) d).putProperty("NewProjectWizard_Title", null); // NOI18N
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.form
deleted file mode 100644
index 2286686564ee..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.form
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.java
deleted file mode 100644
index 796c34fdf218..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanNewPanelVisual.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-import javax.swing.event.ListDataEvent;
-import javax.swing.event.ListDataListener;
-import org.netbeans.api.project.Project;
-import org.netbeans.modules.web.api.webmodule.WebModule;
-import org.netbeans.modules.web.struts.StrutsConfigUtilities;
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-
-public class FormBeanNewPanelVisual extends javax.swing.JPanel implements HelpCtx.Provider, ListDataListener {
-
- /**
- * Creates new form PropertiesPanelVisual
- */
- public FormBeanNewPanelVisual(Project proj) {
- initComponents();
-
- jComboBoxSuperclass.getModel().addListDataListener(this);
- WebModule wm = WebModule.getWebModule(proj.getProjectDirectory());
- if (wm!=null){
- String[] configFiles = StrutsConfigUtilities.getConfigFiles(wm.getDeploymentDescriptor());
- jComboBoxConfigFile.setModel(new javax.swing.DefaultComboBoxModel(configFiles));
- }
-
-
-// this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FormBeanNewPanelVisual.class, "ACS_BeanFormProperties")); // NOI18N
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabelSuperclass = new javax.swing.JLabel();
- jComboBoxSuperclass = new javax.swing.JComboBox();
- jLabelConfigFile = new javax.swing.JLabel();
- jComboBoxConfigFile = new javax.swing.JComboBox();
-
- setLayout(new java.awt.GridBagLayout());
-
- jLabelSuperclass.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(FormBeanNewPanelVisual.class, "LBL_Superlass_mnem").charAt(0));
- jLabelSuperclass.setLabelFor(jComboBoxSuperclass);
- jLabelSuperclass.setText(org.openide.util.NbBundle.getMessage(FormBeanNewPanelVisual.class, "LBL_Superclass"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 12);
- add(jLabelSuperclass, gridBagConstraints);
-
- jComboBoxSuperclass.setEditable(true);
- jComboBoxSuperclass.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "org.apache.struts.action.ActionForm", "org.apache.struts.validator.ValidatorForm", "org.apache.struts.validator.ValidatorActionForm" }));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jComboBoxSuperclass, gridBagConstraints);
-
- jLabelConfigFile.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(FormBeanNewPanelVisual.class, "LBL_ConfigFile_mnem").charAt(0));
- jLabelConfigFile.setLabelFor(jComboBoxConfigFile);
- jLabelConfigFile.setText(org.openide.util.NbBundle.getMessage(FormBeanNewPanelVisual.class, "LBL_ConfigFile"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12);
- add(jLabelConfigFile, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.weighty = 1.0;
- add(jComboBoxConfigFile, gridBagConstraints);
- jComboBoxConfigFile.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/web/struts/wizards/Bundle").getString("ACSD_ConfiguratioFile"));
-
- }
- // //GEN-END:initComponents
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JComboBox jComboBoxConfigFile;
- private javax.swing.JComboBox jComboBoxSuperclass;
- private javax.swing.JLabel jLabelConfigFile;
- private javax.swing.JLabel jLabelSuperclass;
- // End of variables declaration//GEN-END:variables
-
- boolean valid(WizardDescriptor wizardDescriptor) {
- String superclass = (String) jComboBoxSuperclass.getEditor().getItem();
- String configFile = (String) jComboBoxConfigFile.getSelectedItem();
-
- if (superclass == null || superclass.trim().equals("")){
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- NbBundle.getMessage(FormBeanNewPanelVisual.class, "MSG_NoSuperClassSelected"));
- }
- if (configFile == null || configFile.trim().equals("")){
- // Should dislpay only warning. We should allow to create bean outside module. #68034
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- NbBundle.getMessage(FormBeanNewPanelVisual.class, "MSG_NoConfFileSelectedForBean"));
- }
- return true;
- }
-
- void read(WizardDescriptor settings) {
- }
-
- void store(WizardDescriptor settings) {
- settings.putProperty(WizardProperties.FORMBEAN_SUPERCLASS, jComboBoxSuperclass.getSelectedItem());
- settings.putProperty(WizardProperties.FORMBEAN_CONFIG_FILE, jComboBoxConfigFile.getSelectedItem());
- }
-
- /** Help context where to find more about the paste type action.
- * @return the help context for this action
- */
- public HelpCtx getHelpCtx() {
- return new HelpCtx(FormBeanNewPanelVisual.class);
- }
-
- public void intervalRemoved(ListDataEvent e) {
- }
-
- public void intervalAdded(ListDataEvent e) {
- }
-
- public void contentsChanged(ListDataEvent e) {
- //System.out.println("xxx");
- }
-
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.form b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.form
deleted file mode 100644
index 54d087dbaa9f..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.form
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
-
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.java
deleted file mode 100644
index 5b70a8e79324..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanPropertiesPanelVisual.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-import javax.swing.DefaultListModel;
-import javax.swing.ListSelectionModel;
-import javax.swing.event.ListDataEvent;
-import javax.swing.event.ListDataListener;
-import javax.swing.table.AbstractTableModel;
-import org.openide.WizardDescriptor;
-
-import org.openide.util.NbBundle;
-
-public class FormBeanPropertiesPanelVisual extends javax.swing.JPanel implements WizardDescriptor.Panel {
-
- private PropertiesTableModel model;
-
- /**
- * Creates new form PropertiesPanelVisual
- */
- public FormBeanPropertiesPanelVisual() {
- initComponents();
- initTable();
-
-// this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FormBeanNewPanelVisual.class, "ACS_BeanFormProperties")); // NOI18N
- }
-
- private void initTable() {
- model = new PropertiesTableModel();
- jTableProperties.setModel(model);
- jTableProperties.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
-// PropertiesTableCellRenderer renderer = new PropertiesTableCellRenderer();
-// jTableProperties.setDefaultRenderer(String.class, renderer);
-
- jTableProperties.setRowHeight(jTableProperties.getFontMetrics(jTableProperties.getFont()).getHeight() + 4);
- jTableProperties.getParent().setBackground(jTableProperties.getBackground());
- }
-
- public DefaultListModel getTableModel() {
- return model.getDefaultListModel();
- }
-
- public void removeChangeListener(javax.swing.event.ChangeListener l) {
- }
-
- public void addChangeListener(javax.swing.event.ChangeListener l) {
- }
-
- public void storeSettings(Object settings) {
- }
-
- public void readSettings(Object settings) {
- }
-
- public org.openide.util.HelpCtx getHelp() {
- return null;
- }
-
- public java.awt.Component getComponent() {
- return this;
- }
-
-// public java.awt.Dimension getPreferredSize() {
-// return new java.awt.Dimension(560,350);
-// }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- jScrollPane1 = new javax.swing.JScrollPane();
- jTableProperties = new javax.swing.JTable();
- jButtonAdd = new javax.swing.JButton();
- jButtonRemove = new javax.swing.JButton();
- jLabel1 = new javax.swing.JLabel();
-
- setLayout(new java.awt.GridBagLayout());
-
- jTableProperties.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {
- {null, null, null, null},
- {null, null, null, null},
- {null, null, null, null},
- {null, null, null, null}
- },
- new String [] {
- "Title 1", "Title 2", "Title 3", "Title 4"
- }
- ));
- jScrollPane1.setViewportView(jTableProperties);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.weighty = 1.0;
- add(jScrollPane1, gridBagConstraints);
-
- jButtonAdd.setMnemonic(org.openide.util.NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_AddButton_LabelMnemonic").charAt(0));
- jButtonAdd.setText(org.openide.util.NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_AddButton"));
- jButtonAdd.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonAddActionPerformed(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(jButtonAdd, gridBagConstraints);
-
- jButtonRemove.setMnemonic(org.openide.util.NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_RemoveButton_LabelMnemonic").charAt(0));
- jButtonRemove.setText(org.openide.util.NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_RemoveButton"));
- jButtonRemove.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButtonRemoveActionPerformed(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 2;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(jButtonRemove, gridBagConstraints);
-
- jLabel1.setLabelFor(jTableProperties);
- jLabel1.setText(org.openide.util.NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_Properties"));
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- add(jLabel1, gridBagConstraints);
-
- }
- // //GEN-END:initComponents
-
- private void jButtonRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemoveActionPerformed
- int index = jTableProperties.getSelectedRow();
- if (index != -1)
- model.getDefaultListModel().remove(index);
- }//GEN-LAST:event_jButtonRemoveActionPerformed
-
- private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddActionPerformed
- model.addItem(new FormBeanProperty());
- }//GEN-LAST:event_jButtonAddActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButtonAdd;
- private javax.swing.JButton jButtonRemove;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTable jTableProperties;
- // End of variables declaration//GEN-END:variables
-
-// boolean valid(WizardDescriptor wizardDescriptor) {
-// wizardDescriptor.putProperty( WizardDescriptor.PROP_ERROR_MESSAGE, null); //NOI18N
-//
-// for (int i = 0; i < model.getRowCount(); i++)
-// if (model.getItem(i) == null || (model.getItem(i).getProperty()).trim().equals("")) //NOI18N
-// return false;
-//
-// return true;
-// }
-//
-// void read (WizardDescriptor settings) {
-// }
-//
-// void store(WizardDescriptor settings) {
-// settings.putProperty(WizardProperties.FORMBEAN_NEPROPERTIES, model.getDefaultListModel().elements());
-// }
-
-// public static class PropertiesTableCellRenderer extends DefaultTableCellRenderer {
-// private TableCellRenderer booleanRenderer;
-//
-// public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column ) {
-// if (value instanceof Boolean && booleanRenderer != null)
-// return booleanRenderer.getTableCellRendererComponent(table, value, isSelected, false, row, column);
-// else
-// return super.getTableCellRendererComponent(table, value, isSelected, false, row, column);
-// }
-//
-// public void setBooleanRenderer(TableCellRenderer booleanRenderer) {
-// this.booleanRenderer = booleanRenderer;
-// }
-// }
-
- /**
- * Implements a TableModel.
- */
- public static final class PropertiesTableModel extends AbstractTableModel implements ListDataListener {
-
- private DefaultListModel model;
-
- public PropertiesTableModel() {
- model = new DefaultListModel();
- model.addListDataListener(this);
- }
-
- public DefaultListModel getDefaultListModel() {
- return model;
- }
-
- public int getColumnCount() {
- return 2;
- }
-
- public int getRowCount() {
- return model.size();
- }
-
- public String getColumnName(int column) {
- switch (column) {
- case 0:
- return NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_PropertiesTableHeader_Property");//NOI18N
- case 1:
- return NbBundle.getMessage(FormBeanPropertiesPanelVisual.class, "LBL_PropertiesTableHeader_Value");//NOI18N
- }
- return ""; //NOI18N
- }
-
- public Class getColumnClass(int columnIndex) {
- if (columnIndex == 2)
- return Boolean.class;
- else
- return String.class;
- }
-
- public boolean isCellEditable(int rowIndex, int columnIndex) {
- return true;
- }
-
- public Object getValueAt(int row, int column) {
- FormBeanProperty item = getItem(row);
- switch (column) {
- case 0: return item.getProperty();
- case 1: return item.getType();
- }
- return "";
- }
-
- public void setValueAt(Object value, int row, int column) {
- FormBeanProperty item = getItem(row);
- switch (column) {
- case 0: item.setProperty((String) value);break;
- case 1: item.setType((String) value);
- }
- }
-
- public void clear(){
- model.clear();
- }
-
- public void contentsChanged(ListDataEvent e) {
- fireTableRowsUpdated(e.getIndex0(), e.getIndex1());
- }
-
- public void intervalAdded(ListDataEvent e) {
- fireTableRowsInserted(e.getIndex0(), e.getIndex1());
- }
-
- public void intervalRemoved(ListDataEvent e) {
- fireTableRowsDeleted(e.getIndex0(), e.getIndex1());
- }
-
- private FormBeanProperty getItem(int index) {
- return (FormBeanProperty) model.get(index);
- }
-
- public void addItem(FormBeanProperty item){
- model.addElement(item);
- }
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanProperty.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanProperty.java
deleted file mode 100644
index 3054fa514103..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/FormBeanProperty.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-public class FormBeanProperty {
-
- private String property;
- private String type;
-
- /** Creates a new instance of BeanFormProperty */
- public FormBeanProperty() {
- }
-
- public String getProperty() {
- return property;
- }
-
- public void setProperty(String property) {
- this.property = property;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-}
diff --git a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/WizardProperties.java b/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/WizardProperties.java
deleted file mode 100644
index cd9a4acadfd4..000000000000
--- a/enterprise/web.struts/src/org/netbeans/modules/web/struts/wizards/WizardProperties.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.wizards;
-
-public class WizardProperties {
- public static final String ACTION_PATH = "action_path"; // NOI18N
- public static final String ACTION_SUPERCLASS="action_superclass"; //NOI18N
- public static final String ACTION_CONFIG_FILE="action_config_file"; //NOI18N
- public static final String ACTION_FORM_NAME="action_form_name"; //NOI18N
- public static final String ACTION_INPUT="action_input"; //NOI18N
- public static final String ACTION_VALIDATE="action_validate"; //NOI18N
- public static final String ACTION_SCOPE="action_scope"; //NOI18N
- public static final String ACTION_ATTRIBUTE="action_attribute"; //NOI18N
- public static final String ACTION_PARAMETER="action_parameter"; //NOI18N
-
- public static final String FORMBEAN_CONFIG_FILE = "formBeanConfigFile"; // NOI18N
- public static final String FORMBEAN_SUPERCLASS = "formBeanSuperclass"; // NOI18N
-}
diff --git a/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.java b/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.java
deleted file mode 100644
index 3c75aad755ae..000000000000
--- a/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.java
+++ /dev/null
@@ -1,544 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.modules.web.struts;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URI;
-import java.net.URLConnection;
-import java.util.Properties;
-import javax.swing.JTextField;
-import junit.framework.Test;
-import org.netbeans.jellytools.*;
-import org.netbeans.jellytools.actions.Action;
-import org.netbeans.jellytools.actions.ActionNoBlock;
-import org.netbeans.jellytools.actions.EditAction;
-import org.netbeans.jellytools.actions.OpenAction;
-import org.netbeans.jellytools.modules.j2ee.J2eeTestCase;
-import org.netbeans.jellytools.modules.web.NewJspFileNameStepOperator;
-import org.netbeans.jellytools.modules.web.nodes.WebPagesNode;
-import org.netbeans.jellytools.nodes.Node;
-import org.netbeans.jemmy.EventTool;
-import org.netbeans.jemmy.JemmyException;
-import org.netbeans.jemmy.Waitable;
-import org.netbeans.jemmy.Waiter;
-import org.netbeans.jemmy.operators.*;
-import org.netbeans.jemmy.operators.Operator.DefaultStringComparator;
-import org.openide.util.Exceptions;
-
-/**
- * End-to-end scenario test based on
- * http://wiki.netbeans.org/TS_71_StrutsSupport
- *
- * @author Jiri Skrivanek
- */
-public class EndToEndTest extends J2eeTestCase {
-
- public static final String PROJECT_NAME = "StrutsWebApplication";
-
- /**
- * Constructor required by JUnit
- */
- public EndToEndTest(String name) {
- super(name);
- }
-
- /**
- * Creates suite from particular test cases. You can define order of
- * testcases here.
- */
- public static Test suite() {
- return createAllModulesServerSuite(Server.GLASSFISH, EndToEndTest.class,
- "testSetupStrutsProject", "testCreateLoginPage", "testCreateLoginBean",
- "testCreateLoginAction", "testCreateSecurityManager", "testCreateForward", "testCreateShopPage",
- "testCreateLogoutPage", "testCreateForwardInclude", "testCreateAction", "testCreateException",
- "testCreateActionFormBean", "testCreateActionFormBeanProperty", "testRunApplication");
- }
-
- /**
- * Called before every test case.
- */
- @Override
- public void setUp() {
- System.out.println("######## " + getName() + " #######");
- }
-
- /**
- * Called after every test case.
- */
- @Override
- public void tearDown() {
- }
-
- /**
- * Create web application with struts support and check correctness.
- */
- public void testSetupStrutsProject() throws IOException {
- // "Web"
- String web = org.netbeans.jellytools.Bundle.getStringTrimmed(
- "org.netbeans.modules.web.core.Bundle",
- "OpenIDE-Module-Display-Category");
- // "Web Application"
- String webApplication = org.netbeans.jellytools.Bundle.getStringTrimmed(
- "org.netbeans.modules.web.project.ui.wizards.Bundle",
- "Templates/Project/Web/emptyWeb.xml");
- NewProjectWizardOperator nop = NewProjectWizardOperator.invoke();
- nop.selectCategory(web);
- nop.selectProject(webApplication);
- nop.next();
- NewWebProjectNameLocationStepOperator lop = new NewWebProjectNameLocationStepOperator();
- lop.setProjectName(PROJECT_NAME);
- lop.setProjectLocation(getDataDir().getCanonicalPath());
- lop.next();
- lop.next();
- NewProjectWizardOperator frameworkStep = new NewProjectWizardOperator();
- // select Struts
- JTableOperator tableOper = new JTableOperator(frameworkStep);
- for (int i = 0; i < tableOper.getRowCount(); i++) {
- if (tableOper.getValueAt(i, 1).toString().startsWith("org.netbeans.modules.web.struts.StrutsFrameworkProvider")) { // NOI18N
- tableOper.selectCell(i, 0);
- break;
- }
- }
- // set ApplicationResource location
- new JTextFieldOperator(
- (JTextField) new JLabelOperator(frameworkStep, "Application Resource:").getLabelFor()).setText("com.mycompany.eshop.struts.ApplicationResource");
- frameworkStep.btFinish().pushNoBlock();
- frameworkStep.getTimeouts().setTimeout("ComponentOperator.WaitStateTimeout", 60000);
- frameworkStep.waitClosed();
- // wait label of progress bar "Opening Projects" and possibly "Scanning" dismiss
- JLabelOperator lblOpeningProjects = new JLabelOperator(MainWindowOperator.getDefault(), "Opening Projects");
- lblOpeningProjects.getTimeouts().setTimeout("ComponentOperator.WaitStateTimeout", 120000);
- lblOpeningProjects.waitComponentShowing(false);
- // let project tree generate
- new EventTool().waitNoEvent(300);
- // Check project contains all needed files.
- WebPagesNode webPages = new WebPagesNode(PROJECT_NAME);
- Node welcomeNode = new Node(webPages, "welcomeStruts.jsp");
- Node strutsConfig = new Node(webPages, "WEB-INF|struts-config.xml");
- new OpenAction().performAPI(strutsConfig);
- webPages.setComparator(new DefaultStringComparator(true, true));
- Node webXML = new Node(webPages, "WEB-INF|web.xml");
- new EditAction().performAPI(webXML);
- EditorOperator webXMLEditor = new EditorOperator("web.xml");
- String expected = "org.apache.struts.action.ActionServlet";
- assertTrue("ActionServlet should be created in web.xml.", webXMLEditor.getText().indexOf(expected) > -1);
- webXMLEditor.replace("index.jsp", "login.jsp");
- webXMLEditor.save();
- waitScanFinished();
- }
-
- /**
- * Create login.jsp and insert prepared source code to it.
- */
- public void testCreateLoginPage() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- newWizardOper.selectCategory("Web");
- newWizardOper.selectFileType("JSP");
- newWizardOper.next();
- NewJspFileNameStepOperator jspStepOper = new NewJspFileNameStepOperator();
- jspStepOper.setJSPFileName("login");
- jspStepOper.setFolder("");
- jspStepOper.finish();
- // verify
- EditorOperator loginEditorOper = new EditorOperator("login.jsp");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("login");
- // wait for text to be displayed
- loginEditorOper.txtEditorPane().waitText("JSP Page");
- loginEditorOper.replace(loginEditorOper.txtEditorPane().getDisplayedText(), sourceCode);
- loginEditorOper.save();
- }
-
- /**
- * Create bean which handles login form.
- */
- public void testCreateLoginBean() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- newWizardOper.selectCategory("Struts");
- newWizardOper.selectFileType("Struts ActionForm Bean");
- newWizardOper.next();
- NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();
- nameStepOper.setObjectName("LoginForm");
- nameStepOper.setPackage("com.mycompany.eshop.struts.forms");
- nameStepOper.finish();
- EditorOperator loginEditorOper = new EditorOperator("LoginForm.java");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("LoginForm");
- loginEditorOper.replace(loginEditorOper.txtEditorPane().getDisplayedText(), sourceCode);
- loginEditorOper.save();
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- String expected = "";
- assertTrue("form-bean record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- }
-
- /**
- * Create struts action which verify input fields in login form.
- */
- public void testCreateLoginAction() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- newWizardOper.selectCategory("Struts");
- newWizardOper.selectFileType("Struts Action");
- newWizardOper.next();
- NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();
- nameStepOper.setObjectName("LoginVerifyAction");
- nameStepOper.setPackage("com.mycompany.eshop.struts.actions");
- JTextFieldOperator txtActionPath = new JTextFieldOperator(
- (JTextField) new JLabelOperator(nameStepOper, "Action Path:").getLabelFor());
- txtActionPath.setText("/Login/Verify");
- nameStepOper.next();
- // "ActionForm Bean, Parameter" page
- NewFileWizardOperator actionBeanStepOper = new NewFileWizardOperator();
- // set Input Resource
- new JTextFieldOperator(actionBeanStepOper, "/").setText("/login.jsp");
- new JRadioButtonOperator(actionBeanStepOper, "Request").push();
- actionBeanStepOper.finish();
- EditorOperator loginEditorOper = new EditorOperator("LoginVerifyAction.java");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("LoginVerifyAction");
- loginEditorOper.replace(loginEditorOper.txtEditorPane().getDisplayedText(), sourceCode);
- loginEditorOper.save();
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- String expected = "";
- assertTrue("action record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- }
-
- /**
- * Create SecurityManager class.
- */
- public void testCreateSecurityManager() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- // need to distinguish Java and Java Server Faces
- newWizardOper.treeCategories().setComparator(new DefaultStringComparator(true, true));
- newWizardOper.selectCategory("Java");
- newWizardOper.selectFileType("Empty Java File");
- newWizardOper.next();
- NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();
- nfnlso.setObjectName("SecurityManager");
- nfnlso.setPackage("com.mycompany.eshop.security");
- nfnlso.finish();
- EditorOperator editorOper = new EditorOperator("SecurityManager.java");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("SecurityManager");
- editorOper.replace(editorOper.txtEditorPane().getDisplayedText(), sourceCode);
- editorOper.save();
- }
-
- /**
- * Call "Add Forward" action in struts-config.xml and fill in the dialog
- * values.
- */
- public void testCreateForward() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- strutsConfigEditor.select(18);
- ActionNoBlock addForwardAction = new ActionNoBlock(null, "Struts|Add Forward");
- addForwardAction.setComparator(new DefaultStringComparator(true, true));
- addForwardAction.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addForwardOper = new NbDialogOperator("Add Forward");
- JTextFieldOperator txtForwardName = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addForwardOper, "Forward Name:").getLabelFor());
- txtForwardName.setText("success");
- new JTextFieldOperator(addForwardOper, "/").setText("/shop.jsp");
- // set Redirect check box
- new JCheckBoxOperator(addForwardOper).push();
- // select Action as Location
- new JRadioButtonOperator(addForwardOper, "Action:", 1).push();
- new JButtonOperator(addForwardOper, "Add").push();
- String expected = "";
- assertTrue("forward record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Create shop.jsp and insert prepared source code to it.
- */
- public void testCreateShopPage() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- newWizardOper.selectCategory("Web");
- newWizardOper.selectFileType("JSP");
- newWizardOper.next();
- NewJspFileNameStepOperator jspStepOper = new NewJspFileNameStepOperator();
- jspStepOper.setJSPFileName("shop");
- jspStepOper.setFolder("");
- jspStepOper.finish();
- // verify
- EditorOperator editorOper = new EditorOperator("shop.jsp");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("shop");
- // wait for text to be displayed
- editorOper.txtEditorPane().waitText("JSP Page", -1);
- editorOper.replace(editorOper.txtEditorPane().getDisplayedText(), sourceCode);
- editorOper.save();
- }
-
- /**
- * Create logout.jsp and insert prepared source code to it.
- */
- public void testCreateLogoutPage() throws IOException {
- NewFileWizardOperator newWizardOper = NewFileWizardOperator.invoke();
- newWizardOper.selectProject(PROJECT_NAME);
- newWizardOper.selectCategory("Web");
- newWizardOper.selectFileType("JSP");
- newWizardOper.next();
- NewJspFileNameStepOperator jspStepOper = new NewJspFileNameStepOperator();
- jspStepOper.setJSPFileName("logout");
- jspStepOper.setFolder("");
- jspStepOper.finish();
- // verify
- EditorOperator editorOper = new EditorOperator("logout.jsp");
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("EndToEndTest.properties"));
- String sourceCode = properties.getProperty("logout");
- // wait for text to be displayed
- editorOper.txtEditorPane().waitText("JSP Page", -1);
- editorOper.replace(editorOper.txtEditorPane().getDisplayedText(), sourceCode);
- editorOper.save();
- }
-
- /**
- * Call "Add Forward/Include" action in struts-config.xml and fill in the
- * dialog values.
- */
- public void testCreateForwardInclude() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- ActionNoBlock addForwardAction = new ActionNoBlock(null, "Struts|Add Forward/Include");
- addForwardAction.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addForwardOper = new NbDialogOperator("Add Forward/Include Action");
- // set Action Path
- new JTextFieldOperator(addForwardOper, "/").setText("/Logout");
- new JButtonOperator(addForwardOper, "Browse").pushNoBlock();
- NbDialogOperator browseOper = new NbDialogOperator("Browse Files");
- new Node(new JTreeOperator(browseOper), "Web Pages|logout.jsp").select();
- new JButtonOperator(browseOper, "Select File").push();
- new JButtonOperator(addForwardOper, "Add").push();
- String expected = "";
- assertTrue("forward record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Call "Add Action" action in struts-config.xml and fill in the dialog
- * values.
- */
- public void testCreateAction() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- ActionNoBlock addAction = new ActionNoBlock(null, "Struts|Add Action");
- addAction.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addActionOper = new NbDialogOperator("Add Action");
-
- JTextFieldOperator txtActionClass = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addActionOper, "Action Class:").getLabelFor());
- txtActionClass.setText("com.mycompany.eshop.struts.forms.LoginForm");
- JTextFieldOperator txtActionPath = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addActionOper, "Action Path:").getLabelFor());
- txtActionPath.setText("/LoginForm");
- new JRadioButtonOperator(addActionOper, "Input Action:").push();
- new JButtonOperator(addActionOper, "Add").push();
- String expected = "";
- assertTrue("action record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Call "Add Exception" action in struts-config.xml and fill in the dialog
- * values.
- */
- public void testCreateException() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- ActionNoBlock addException = new ActionNoBlock(null, "Struts|Add Exception");
- addException.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addExceptionOper = new NbDialogOperator("Add Exception");
-
- JTextFieldOperator txtBundleKey = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addExceptionOper, "Bundle Key:").getLabelFor());
- txtBundleKey.setText("exception");
- new JButtonOperator(addExceptionOper, "Browse", 1).pushNoBlock();
- NbDialogOperator browseOper = new NbDialogOperator("Browse Files");
- new Node(new JTreeOperator(browseOper), "Web Pages|login.jsp").select();
- new JButtonOperator(browseOper, "Select File").push();
- new JButtonOperator(addExceptionOper, "Add").push();
- String expected = "";
- assertTrue("exception record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Call "Add ActionForm Bean" action in struts-config.xml and fill in the
- * dialog values.
- */
- public void testCreateActionFormBean() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- ActionNoBlock addActionFormBean = new ActionNoBlock(null, "Struts|Add ActionForm Bean");
- addActionFormBean.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addActionFormBeanOper = new NbDialogOperator("Add ActionForm Bean");
-
- JTextFieldOperator txtActionFormBeanName = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addActionFormBeanOper, "ActionForm Bean Name:").getLabelFor());
- txtActionFormBeanName.setText("ActionFormBean");
- new JTextFieldOperator(addActionFormBeanOper, 1).setText("com.mycompany.eshop.struts.forms.LoginForm");
- new JButtonOperator(addActionFormBeanOper, "Add").push();
- String expected = "";
- assertTrue("actionform bean record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Call "Add ActionForm Bean Property" action in struts-config.xml and fill
- * in the dialog values.
- */
- public void testCreateActionFormBeanProperty() {
- EditorOperator strutsConfigEditor = new EditorOperator("struts-config.xml");
- ActionNoBlock addActionFormBeanProp = new ActionNoBlock(null, "Struts|Add ActionForm Bean Property");
- addActionFormBeanProp.perform(strutsConfigEditor);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException ex) {
- Exceptions.printStackTrace(ex);
- }
- NbDialogOperator addActionFormBeanPropOper = new NbDialogOperator("Add ActionForm Bean Property");
-
- JTextFieldOperator txtPropertyName = new JTextFieldOperator(
- (JTextField) new JLabelOperator(addActionFormBeanPropOper, "Property Name:").getLabelFor());
- txtPropertyName.setText("property");
- new JButtonOperator(addActionFormBeanPropOper, "Add").push();
- String expected = "";
- assertTrue("actionform bean property record should be added to struts-config.xml.", strutsConfigEditor.getText().indexOf(expected) > -1);
- strutsConfigEditor.save();
- }
-
- /**
- * Run created application.
- */
- public void testRunApplication() {
- // not display browser on run
- // open project properties
- ProjectsTabOperator.invoke().getProjectRootNode(PROJECT_NAME).properties();
- // "Project Properties"
- String projectPropertiesTitle = org.netbeans.jellytools.Bundle.getStringTrimmed("org.netbeans.modules.web.project.ui.customizer.Bundle", "LBL_Customizer_Title");
- NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle);
- // select "Run" category
- new Node(new JTreeOperator(propertiesDialogOper), "Run").select();
- String displayBrowserLabel = org.netbeans.jellytools.Bundle.getStringTrimmed("org.netbeans.modules.web.project.ui.customizer.Bundle", "LBL_CustomizeRun_DisplayBrowser_JCheckBox");
- new JCheckBoxOperator(propertiesDialogOper, displayBrowserLabel).setSelected(false);
- // confirm properties dialog
- propertiesDialogOper.ok();
-
- try {
- new Action(null, "Run").perform(new ProjectsTabOperator().getProjectRootNode(PROJECT_NAME));
- waitText(PROJECT_NAME, 360000, "Login");
- } finally {
- // log messages from output
- getLog("RunOutput").print(new OutputTabOperator(PROJECT_NAME).getText());
- getLog("ServerLog").print(new OutputTabOperator("GlassFish").getText());
- }
- }
-
- /**
- * Opens URL connection and waits for given text. It throws
- * TimeoutExpiredException if timeout expires.
- *
- * @param urlSuffix suffix added to server URL
- * @param timeout time to wait
- * @param text text to be found
- */
- public static void waitText(final String urlSuffix, final long timeout, final String text) {
- Waitable waitable = new Waitable() {
-
- @Override
- public Object actionProduced(Object obj) {
- InputStream is = null;
- try {
- URLConnection connection = new URI("http://localhost:8080/" + urlSuffix).toURL().openConnection();
- connection.setReadTimeout(Long.valueOf(timeout).intValue());
- is = connection.getInputStream();
- BufferedReader br = new BufferedReader(new InputStreamReader(is));
- String line = br.readLine();
- while (line != null) {
- if (line.indexOf(text) > -1) {
- return Boolean.TRUE;
- }
- line = br.readLine();
- }
- is.close();
- } catch (Exception e) {
- //e.printStackTrace();
- return null;
- } finally {
- if (is != null) {
- try {
- is.close();
- } catch (IOException e) {
- // ignore
- }
- }
- }
- return null;
- }
-
- @Override
- public String getDescription() {
- return ("Text \"" + text + "\" at http://localhost:8080/" + urlSuffix);
- }
- };
- Waiter waiter = new Waiter(waitable);
- waiter.getTimeouts().setTimeout("Waiter.WaitingTime", timeout);
- try {
- waiter.waitAction(null);
- } catch (InterruptedException e) {
- throw new JemmyException("Exception while waiting for connection.", e);
- }
- }
-}
diff --git a/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.properties b/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.properties
deleted file mode 100644
index 849f94b8d10f..000000000000
--- a/enterprise/web.struts/test/qa-functional/src/org/netbeans/modules/web/struts/EndToEndTest.properties
+++ /dev/null
@@ -1,164 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-login=\
-<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>\n\
-\n\
-\n\
-\n\
- \n\
- Login page\n\
-\n\
-\n\
-\n\
-Login
\n\
-\n\
-\n\
-\n\
-\n\
- \n\
- \n\
- \n\
- | Name: | \n\
- | \n\
- | \n\
-
\n\
- \n\
- | Password: | \n\
- | \n\
- | \n\
-
\n\
- \n\
- | \n\
-
\n\
- \n\
-
\n\
-\n\
-\n\
-\n\
-\n
-LoginForm=\
-package com.mycompany.eshop.struts.forms;\n\
-\n\
-import javax.servlet.http.HttpServletRequest;\n\
-import org.apache.struts.action.ActionErrors;\n\
-import org.apache.struts.action.ActionMapping;\n\
-import org.apache.struts.action.ActionMessage;\n\
-\n\
-public class LoginForm extends org.apache.struts.action.ActionForm {\n\
-\n\
- private String loginName = null;\n\
- private String loginPassword = null;\n\
-\n\
- public LoginForm() {\n\
- }\n\
-\n\
- public String getLoginName() {\n\
- return loginName;\n\
- }\n\
-\n\
- public void setLoginName(String loginName) {\n\
- this.loginName = loginName;\n\
- }\n\
-\n\
- public String getLoginPassword() {\n\
- return loginPassword;\n\
- }\n\
-\n\
- public void setLoginPassword(String loginPassword) {\n\
- this.loginPassword = loginPassword;\n\
- }\n\
-\n\
- public void reset(ActionMapping mapping, HttpServletRequest request) {\n\
- loginName = null;\n\
- loginPassword = null;\n\
- }\n\
-\n\
- public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\n\
- ActionErrors errors = new ActionErrors();\n\
- \n\
- if ((getLoginName() == null) || (getLoginName().length() == 0)) {\n\
- ActionMessage newError = new ActionMessage("errors.required", "Login Name");\n\
- errors.add("loginName", newError);\n\
- }\n\
- if ((getLoginPassword() == null) || (getLoginPassword().length() == 0)) {\n\
- ActionMessage newError = new ActionMessage("errors.required", "Login Password");\n\
- errors.add("loginPassword", newError);\n\
- }\n\
- \n\
- return errors;\n\
- }\n\
-}\n
-LoginVerifyAction=\
-package com.mycompany.eshop.struts.actions;\n\
-import javax.servlet.http.HttpServletRequest;\n\
-import javax.servlet.http.HttpServletResponse;\n\
-import org.apache.struts.action.ActionForm;\n\
-import org.apache.struts.action.ActionMapping;\n\
-import org.apache.struts.action.ActionForward;\n\
-public class LoginVerifyAction extends org.apache.struts.action.Action {\n\
- private final static String SUCCESS = "success";\n\
- public ActionForward execute(ActionMapping mapping, ActionForm form,\n\
- HttpServletRequest request, HttpServletResponse response)\n\
- throws Exception {\n\
- com.mycompany.eshop.struts.forms.LoginForm loginForm = (com.mycompany.eshop.struts.forms.LoginForm) form;\n\
- if (com.mycompany.eshop.security.SecurityManager.AuthenticateUser(loginForm.getLoginName(), loginForm.getLoginPassword())) {\n\
- return mapping.findForward(SUCCESS);\n\
- } else {\n\
- org.apache.struts.action.ActionMessages errors = new org.apache.struts.action.ActionMessages();\n\
- org.apache.struts.action.ActionMessage error = new org.apache.struts.action.ActionMessage("errors.invalid", "Login name or password");\n\
- errors.add("loginInvalid", error);\n\
- saveErrors(request.getSession(), errors);\n\
- return mapping.getInputForward();\n\
- }\n\
- }\n\
-}\n
-SecurityManager=\
-package com.mycompany.eshop.security;\n\
-\n\
-public class SecurityManager {\n\
- public static boolean AuthenticateUser(String name, String password) {\n\
- return (name != null) && name.equals("admin") && (password != null) && password.equals("admin");\n\
- }\n\
-}\n
-shop=\
-<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>\n\
-\n\
-\n\
-\n\
- \n\
- Shop page\n\
-\n\
-\n\
- Shop
\n\
- You are logged into e-shop.\n\
-
\n\
- Logout\n\
-\n\
-\n
-logout=\
-<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>\n\
-\n\
-\n\
-\n\
- \n\
- Logout page\n\
-\n\
-\n\
-Logout
\n\
-You are logged out.\n\
-\n\
-\n
diff --git a/enterprise/web.struts/test/unit/data/struts-config.xml b/enterprise/web.struts/test/unit/data/struts-config.xml
deleted file mode 100644
index 265fbfa7762b..000000000000
--- a/enterprise/web.struts/test/unit/data/struts-config.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/enterprise/web.struts/test/unit/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilitiesTest.java b/enterprise/web.struts/test/unit/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilitiesTest.java
deleted file mode 100644
index 9fd4fc1d6d92..000000000000
--- a/enterprise/web.struts/test/unit/src/org/netbeans/modules/web/struts/editor/StrutsEditorUtilitiesTest.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.modules.web.struts.editor;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import javax.swing.text.BadLocationException;
-import org.netbeans.api.editor.mimelookup.MimePath;
-import org.netbeans.editor.BaseDocument;
-import org.netbeans.junit.MockServices;
-import org.netbeans.junit.NbTestCase;
-import org.netbeans.modules.xml.text.syntax.XMLKit;
-import org.netbeans.spi.editor.mimelookup.MimeDataProvider;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.Lookup;
-import org.openide.util.lookup.Lookups;
-import org.openide.util.test.MockLookup;
-
-/**
- *
- * @author petr
- */
-public class StrutsEditorUtilitiesTest extends NbTestCase {
-
- private File testDir;
-
- private FileObject testDirFO;
-
- public StrutsEditorUtilitiesTest(String testName) {
- super(testName);
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- MockLookup.setLayersAndInstances(new MimeDataProvider() {
-
- public Lookup getLookup(MimePath mimePath) {
- if ("text/xml".equals(mimePath.getPath())) {
- return Lookups.fixed(new XMLKit());
- }
- return null;
- }
- });
-
- testDir = new File (this.getDataDir().getPath());
- assertTrue("have a dir " + testDir, testDir.isDirectory());
- testDirFO = FileUtil.toFileObject(testDir);
- assertNotNull("testDirFO is null", testDirFO);
- }
-
- /** Test when the cursor is inside of declaration
- */
- public void testGetActionPath() {
- BaseDocument doc = createBaseDocument(new File(testDir, "struts-config.xml"));
- String path = null;
- String text = null;
- try {
- text = doc.getText(0, doc.getLength() - 1);
- } catch (BadLocationException ex) {
- fail(ex.toString());
- }
- int where;
-
- where = text.indexOf("/login");
- path = StrutsEditorUtilities.getActionPath(doc, where);
- assertEquals("/login", path);
- path = StrutsEditorUtilities.getActionPath(doc, where+1);
- assertEquals("/login", path);
- path = StrutsEditorUtilities.getActionPath(doc, where+6);
- assertEquals("/login", path);
-
- where = text.indexOf("action type=\"com");
- path = StrutsEditorUtilities.getActionPath(doc, where);
- assertEquals("/login", path);
- path = StrutsEditorUtilities.getActionPath(doc, where-1);
- assertEquals("/login", path);
- path = StrutsEditorUtilities.getActionPath(doc, where+7);
- assertEquals("/login", path);
- path = StrutsEditorUtilities.getActionPath(doc, where+10);
- assertEquals("/login", path);
- }
-
- /** Test when the cursor is inside of declaration
- */
- public void testGetActionFormBeanName() {
- BaseDocument doc = createBaseDocument(new File(testDir, "struts-config.xml"));
- String path = null;
- String text = null;
- try {
- text = doc.getText(0, doc.getLength() - 1);
- } catch (BadLocationException ex) {
- fail(ex.toString());
- }
- int where;
-
- where = text.indexOf("name=\"FirstBean\"");
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+5);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+10);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+16);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where-1);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where - 20);
- assertEquals("FirstBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where-35);
- assertEquals("FirstBean", path);
-
- where = text.indexOf("initial=\"33\"");
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+5);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+10);
- assertEquals("SecondBean", path);
-
- where = text.indexOf("name=\"name\"");
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+5);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+10);
- assertEquals("SecondBean", path);
-
- where = text.indexOf("/form-bean>");
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+5);
- assertEquals("SecondBean", path);
-
- where = text.indexOf("name=\"SecondBean\">");
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+10);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+15);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+17);
- assertEquals("SecondBean", path);
- path = StrutsEditorUtilities.getActionFormBeanName(doc, where+18);
- assertEquals("SecondBean", path);
- }
-
- private BaseDocument createBaseDocument(File file){
- BaseDocument doc = new BaseDocument(false, "text/xml");
- File strutsConfig = new File(testDir, "struts-config.xml");
- StringBuffer buffer = new StringBuffer();
- try {
- FileReader reader = new FileReader (strutsConfig);
- char[] buf = new char [100];
- int count = -1;
- while ((count = reader.read(buf)) != -1){
- buffer.append(buf, 0, count);
- }
- reader.close();
- doc.insertString(0, buffer.toString(), null);
- return doc;
- } catch (IOException ex) {
- fail("Exception occured during createBaseDocument: " + ex.toString());
- }
- catch (BadLocationException ex) {
- fail("Exception occured during createBaseDocument: " + ex.toString());
- }
- return null;
- }
-
-}
diff --git a/java/java.lsp.server/nbcode/nbproject/platform.properties b/java/java.lsp.server/nbcode/nbproject/platform.properties
index 14956fc14e8e..70fc2916b80b 100644
--- a/java/java.lsp.server/nbcode/nbproject/platform.properties
+++ b/java/java.lsp.server/nbcode/nbproject/platform.properties
@@ -393,7 +393,6 @@ disabled.modules=\
org.netbeans.modules.web.project,\
org.netbeans.modules.web.refactoring,\
org.netbeans.modules.websocket,\
- org.netbeans.modules.web.struts,\
org.netbeans.modules.websvc.clientapi,\
org.netbeans.modules.websvc.core,\
org.netbeans.modules.websvc.customization,\
diff --git a/java/java.project.ui/test/qa-functional/src/projects/LibrariesTest.java b/java/java.project.ui/test/qa-functional/src/projects/LibrariesTest.java
index 5b095e425289..62eb58c718f9 100644
--- a/java/java.project.ui/test/qa-functional/src/projects/LibrariesTest.java
+++ b/java/java.project.ui/test/qa-functional/src/projects/LibrariesTest.java
@@ -166,17 +166,6 @@ public void init1() {
set.add("jar:nbinst://org.netbeans.modules.swingapp/modules/ext/swing-worker.jar!/");
librariesUrls.put("swing-app-framework", set);
set = new TreeSet();
- set.add("jar:nbinst:///docs/struts-1.2.9-javadoc.zip!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/antlr.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-beanutils.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-digester.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-fileupload.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-logging.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/commons-validator.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/jakarta-oro.jar!/");
- set.add("jar:nbinst://org.netbeans.modules.web.struts/modules/ext/struts/struts.jar!/");
- librariesUrls.put("struts", set);
- set = new TreeSet();
set.add("jar:nbinst://org.netbeans.modules.junit/docs/junit-4.13.2-javadoc.jar!/");
set.add("jar:nbinst://org.netbeans.modules.junit/modules/ext/junit-4.13.2.jar!/");
librariesUrls.put("junit", set);
diff --git a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binary-overlaps b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binary-overlaps
index dbf6141fb84c..a4312dda6025 100644
--- a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binary-overlaps
+++ b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-binary-overlaps
@@ -26,10 +26,6 @@ enterprise*/modules/ext/rest/jdom-1.0.jar mobility*/modules/ext/jdom-1.0.jar
enterprise*/modules/ext/rest/jdom-1.0.jar java*/modules/ext/maven/jdom-1.0.jar
java*/modules/ext/maven/jdom-1.0.jar mobility*/modules/ext/jdom-1.0.jar
-# Struts framework needs to bundle the official Struts release together
-# for well maintained and assure the compatibility issue.
-enterprise*/modules/ext/struts/oro-2.0.8.jar ide*/modules/ext/jakarta-oro-2.0.8.jar
-
# Hibernate needs cglib internally
java*/modules/ext/cglib-2.2.jar java*/modules/ext/hibernate4/cglib-2.2.jar
diff --git a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-overlaps b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-overlaps
index ec9973e06191..3ff21989737a 100644
--- a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-overlaps
+++ b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/ignored-overlaps
@@ -49,12 +49,6 @@ enterprise/websvc.restlib/external/jakarta.xml.bind-api-2.3.3.jar ide/xml.jaxb.a
# osgi.core-8.0.0.jar is used by multiple modules.
enterprise/websvc.restlib/external/osgi.core-8.0.0.jar platform/libs.osgi/external/osgi.core-8.0.0.jar
-#Struts taglib is used by both web.core.syntax and web.struts
-enterprise/web.core.syntax/external/struts-taglib-1.3.10.jar enterprise/web.struts/external/struts-taglib-1.3.10.jar
-
-# Struts Tiles is used by both web.core.syntax and web.struts
-enterprise/web.core.syntax/external/struts-tiles-1.3.10.jar enterprise/web.struts/external/struts-tiles-1.3.10.jar
-
# gradle is used at build-time, so we can ignore the duplicates
extide/gradle/external/gradle-7.4-bin.zip enterprise/libs.amazon/external/ion-java-1.0.2.jar
extide/gradle/external/gradle-7.4-bin.zip ide/c.google.guava.failureaccess/external/failureaccess-1.0.1.jar
diff --git a/nbbuild/cluster.properties b/nbbuild/cluster.properties
index e471fc11fc9e..4c1e21403401 100644
--- a/nbbuild/cluster.properties
+++ b/nbbuild/cluster.properties
@@ -830,7 +830,6 @@ nb.cluster.enterprise=\
web.primefaces,\
web.project,\
web.refactoring,\
- web.struts,\
weblogic.common,\
websocket,\
websvc.clientapi,\