From ad0e368eeedb0454e1dd398bd84c23cbfbd692f8 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 2 Nov 2009 22:23:40 +0000 Subject: Moving das tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@832150 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/META-INF/context.xml | 22 - .../src/main/webapp/WEB-INF/tld/c.tld | 563 ----------------- .../src/main/webapp/WEB-INF/tld/fmt.tld | 671 --------------------- .../src/main/webapp/WEB-INF/web.xml | 46 -- .../src/main/webapp/html/DASWebSampleFrame.html | 27 - .../src/main/webapp/html/blank.html | 25 - .../advanced-webapp/src/main/webapp/js/ajax.js | 188 ------ .../advanced-webapp/src/main/webapp/js/dasmenu.js | 112 ---- .../src/main/webapp/jsp/DASMenu.jsp | 63 -- .../src/main/webapp/jsp/converter.jsp | 117 ---- .../src/main/webapp/jsp/default.css | 35 -- .../src/main/webapp/jsp/indexAdhoc.jsp | 87 --- .../src/main/webapp/jsp/indexCommand.jsp | 85 --- .../advanced-webapp/src/main/webapp/jsp/main.css | 120 ---- .../advanced-webapp/src/main/webapp/jsp/occ.jsp | 77 --- .../advanced-webapp/src/main/webapp/jsp/rss.jsp | 78 --- .../src/main/webapp/xsl/company.xsl | 44 -- .../src/main/webapp/xsl/companyDepartment.xsl | 65 -- .../src/main/webapp/xsl/customer.xsl | 49 -- 19 files changed, 2474 deletions(-) delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/META-INF/context.xml delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/c.tld delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/fmt.tld delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/DASWebSampleFrame.html delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/blank.html delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/ajax.js delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/dasmenu.js delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/DASMenu.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/converter.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/default.css delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexAdhoc.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexCommand.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/main.css delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/occ.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/rss.jsp delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/company.xsl delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/companyDepartment.xsl delete mode 100644 tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/customer.xsl (limited to 'tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp') diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/META-INF/context.xml b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/META-INF/context.xml deleted file mode 100644 index e2da613636..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/META-INF/context.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/c.tld b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/c.tld deleted file mode 100644 index 22698c97dc..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/c.tld +++ /dev/null @@ -1,563 +0,0 @@ - - - - - JSTL 1.1 core library - JSTL core - 1.1 - c - http://java.sun.com/jsp/jstl/core - - - - Provides core validation features for JSTL tags. - - - org.apache.taglibs.standard.tlv.JstlCoreTLV - - - - - - Catches any Throwable that occurs in its body and optionally - exposes it. - - catch - org.apache.taglibs.standard.tag.common.core.CatchTag - JSP - - -Name of the exported scoped variable for the -exception thrown from a nested action. The type of the -scoped variable is the type of the exception thrown. - - var - false - false - - - - - - Simple conditional tag that establishes a context for - mutually exclusive conditional operations, marked by - <when> and <otherwise> - - choose - org.apache.taglibs.standard.tag.common.core.ChooseTag - JSP - - - - - Simple conditional tag, which evalutes its body if the - supplied condition is true and optionally exposes a Boolean - scripting variable representing the evaluation of this condition - - if - org.apache.taglibs.standard.tag.rt.core.IfTag - JSP - - -The test condition that determines whether or -not the body content should be processed. - - test - true - true - boolean - - - -Name of the exported scoped variable for the -resulting value of the test condition. The type -of the scoped variable is Boolean. - - var - false - false - - - -Scope for var. - - scope - false - false - - - - - - Retrieves an absolute or relative URL and exposes its contents - to either the page, a String in 'var', or a Reader in 'varReader'. - - import - org.apache.taglibs.standard.tag.rt.core.ImportTag - org.apache.taglibs.standard.tei.ImportTEI - JSP - - -The URL of the resource to import. - - url - true - true - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is Reader. - - varReader - false - false - - - -Name of the context when accessing a relative -URL resource that belongs to a foreign -context. - - context - false - true - - - -Character encoding of the content at the input -resource. - - charEncoding - false - true - - - - - - The basic iteration tag, accepting many different - collection types and supporting subsetting and other - functionality - - forEach - org.apache.taglibs.standard.tag.rt.core.ForEachTag - org.apache.taglibs.standard.tei.ForEachTEI - JSP - - -Collection of items to iterate over. - - items - false - true - java.lang.Object - - - -If items specified: -Iteration begins at the item located at the -specified index. First item of the collection has -index 0. -If items not specified: -Iteration begins with index set at the value -specified. - - begin - false - true - int - - - -If items specified: -Iteration ends at the item located at the -specified index (inclusive). -If items not specified: -Iteration ends when index reaches the value -specified. - - end - false - true - int - - - -Iteration will only process every step items of -the collection, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. Its type depends -on the object of the underlying collection. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of type -javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Iterates over tokens, separated by the supplied delimeters - - forTokens - org.apache.taglibs.standard.tag.rt.core.ForTokensTag - JSP - - -String of tokens to iterate over. - - items - true - true - java.lang.String - - - -The set of delimiters (the characters that -separate the tokens in the string). - - delims - true - true - java.lang.String - - - -Iteration begins at the token located at the -specified index. First token has index 0. - - begin - false - true - int - - - -Iteration ends at the token located at the -specified index (inclusive). - - end - false - true - int - - - -Iteration will only process every step tokens -of the string, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of -type -javax.servlet.jsp.jstl.core.LoopTag -Status. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Like <%= ... >, but for expressions. - - out - org.apache.taglibs.standard.tag.rt.core.OutTag - JSP - - -Expression to be evaluated. - - value - true - true - - - -Default value if the resulting value is null. - - default - false - true - - - -Determines whether characters <,>,&,'," in the -resulting string should be converted to their -corresponding character entity codes. Default value is -true. - - escapeXml - false - true - - - - - - - Subtag of <choose> that follows <when> tags - and runs only if all of the prior conditions evaluated to - 'false' - - otherwise - org.apache.taglibs.standard.tag.common.core.OtherwiseTag - JSP - - - - - Adds a parameter to a containing 'import' tag's URL. - - param - org.apache.taglibs.standard.tag.rt.core.ParamTag - JSP - - -Name of the query string parameter. - - name - true - true - - - -Value of the parameter. - - value - false - true - - - - - - Redirects to a new URL. - - redirect - org.apache.taglibs.standard.tag.rt.core.RedirectTag - JSP - - -The URL of the resource to redirect to. - - url - false - true - - - -Name of the context when redirecting to a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Removes a scoped variable (from a particular scope, if specified). - - remove - org.apache.taglibs.standard.tag.common.core.RemoveTag - empty - - -Name of the scoped variable to be removed. - - var - true - false - - - -Scope for var. - - scope - false - false - - - - - - Sets the result of an expression evaluation in a 'scope' - - set - org.apache.taglibs.standard.tag.rt.core.SetTag - JSP - - -Name of the exported scoped variable to hold the value -specified in the action. The type of the scoped variable is -whatever type the value expression evaluates to. - - var - false - false - - - -Expression to be evaluated. - - value - false - true - - - -Target object whose property will be set. Must evaluate to -a JavaBeans object with setter property property, or to a -java.util.Map object. - - target - false - true - - - -Name of the property to be set in the target object. - - property - false - true - - - -Scope for var. - - scope - false - false - - - - - - Creates a URL with optional query parameters. - - url - org.apache.taglibs.standard.tag.rt.core.UrlTag - JSP - - -Name of the exported scoped variable for the -processed url. The type of the scoped variable is -String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -URL to be processed. - - value - false - true - - - -Name of the context when specifying a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Subtag of <choose> that includes its body if its - condition evalutes to 'true' - - when - org.apache.taglibs.standard.tag.rt.core.WhenTag - JSP - - -The test condition that determines whether or not the -body content should be processed. - - test - true - true - boolean - - - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/fmt.tld b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/fmt.tld deleted file mode 100644 index 3b9a54a87d..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/tld/fmt.tld +++ /dev/null @@ -1,671 +0,0 @@ - - - - - JSTL 1.1 i18n-capable formatting library - JSTL fmt - 1.1 - fmt - http://java.sun.com/jsp/jstl/fmt - - - - Provides core validation features for JSTL tags. - - - org.apache.taglibs.standard.tlv.JstlFmtTLV - - - - - - Sets the request character encoding - - requestEncoding - org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag - empty - - -Name of character encoding to be applied when -decoding request parameters. - - value - false - true - - - - - - Stores the given locale in the locale configuration variable - - setLocale - org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag - empty - - -A String value is interpreted as the -printable representation of a locale, which -must contain a two-letter (lower-case) -language code (as defined by ISO-639), -and may contain a two-letter (upper-case) -country code (as defined by ISO-3166). -Language and country codes must be -separated by hyphen (-) or underscore -(_). - - value - true - true - - - -Vendor- or browser-specific variant. -See the java.util.Locale javadocs for -more information on variants. - - variant - false - true - - - -Scope of the locale configuration variable. - - scope - false - false - - - - - - Specifies the time zone for any time formatting or parsing actions - nested in its body - - timeZone - org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag - JSP - - -The time zone. A String value is interpreted as -a time zone ID. This may be one of the time zone -IDs supported by the Java platform (such as -"America/Los_Angeles") or a custom time zone -ID (such as "GMT-8"). See -java.util.TimeZone for more information on -supported time zone formats. - - value - true - true - - - - - - Stores the given time zone in the time zone configuration variable - - setTimeZone - org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag - empty - - -The time zone. A String value is interpreted as -a time zone ID. This may be one of the time zone -IDs supported by the Java platform (such as -"America/Los_Angeles") or a custom time zone -ID (such as "GMT-8"). See java.util.TimeZone for -more information on supported time zone -formats. - - value - true - true - - - -Name of the exported scoped variable which -stores the time zone of type -java.util.TimeZone. - - var - false - false - - - -Scope of var or the time zone configuration -variable. - - scope - false - false - - - - - - Loads a resource bundle to be used by its tag body - - bundle - org.apache.taglibs.standard.tag.rt.fmt.BundleTag - JSP - - -Resource bundle base name. This is the bundle's -fully-qualified resource name, which has the same -form as a fully-qualified class name, that is, it uses -"." as the package component separator and does not -have any file type (such as ".class" or ".properties") -suffix. - - basename - true - true - - - -Prefix to be prepended to the value of the message -key of any nested <fmt:message> action. - - prefix - false - true - - - - - - Loads a resource bundle and stores it in the named scoped variable or - the bundle configuration variable - - setBundle - org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag - empty - - -Resource bundle base name. This is the bundle's -fully-qualified resource name, which has the same -form as a fully-qualified class name, that is, it uses -"." as the package component separator and does not -have any file type (such as ".class" or ".properties") -suffix. - - basename - true - true - - - -Name of the exported scoped variable which stores -the i18n localization context of type -javax.servlet.jsp.jstl.fmt.LocalizationC -ontext. - - var - false - false - - - -Scope of var or the localization context -configuration variable. - - scope - false - false - - - - - - Maps key to localized message and performs parametric replacement - - message - org.apache.taglibs.standard.tag.rt.fmt.MessageTag - JSP - - -Message key to be looked up. - - key - false - true - - - -Localization context in whose resource -bundle the message key is looked up. - - bundle - false - true - - - -Name of the exported scoped variable -which stores the localized message. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Supplies an argument for parametric replacement to a containing - <message> tag - - param - org.apache.taglibs.standard.tag.rt.fmt.ParamTag - JSP - - -Argument used for parametric replacement. - - value - false - true - - - - - - Formats a numeric value as a number, currency, or percentage - - formatNumber - org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag - JSP - - -Numeric value to be formatted. - - value - false - true - - - -Specifies whether the value is to be -formatted as number, currency, or -percentage. - - type - false - true - - - -Custom formatting pattern. - - pattern - false - true - - - -ISO 4217 currency code. Applied only -when formatting currencies (i.e. if type is -equal to "currency"); ignored otherwise. - - currencyCode - false - true - - - -Currency symbol. Applied only when -formatting currencies (i.e. if type is equal -to "currency"); ignored otherwise. - - currencySymbol - false - true - - - -Specifies whether the formatted output -will contain any grouping separators. - - groupingUsed - false - true - - - -Maximum number of digits in the integer -portion of the formatted output. - - maxIntegerDigits - false - true - - - -Minimum number of digits in the integer -portion of the formatted output. - - minIntegerDigits - false - true - - - -Maximum number of digits in the -fractional portion of the formatted output. - - maxFractionDigits - false - true - - - -Minimum number of digits in the -fractional portion of the formatted output. - - minFractionDigits - false - true - - - -Name of the exported scoped variable -which stores the formatted result as a -String. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Parses the string representation of a number, currency, or percentage - - parseNumber - org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag - JSP - - -String to be parsed. - - value - false - true - - - -Specifies whether the string in the value -attribute should be parsed as a number, -currency, or percentage. - - type - false - true - - - -Custom formatting pattern that determines -how the string in the value attribute is to be -parsed. - - pattern - false - true - - - -Locale whose default formatting pattern (for -numbers, currencies, or percentages, -respectively) is to be used during the parse -operation, or to which the pattern specified -via the pattern attribute (if present) is -applied. - - parseLocale - false - true - - - -Specifies whether just the integer portion of -the given value should be parsed. - - integerOnly - false - true - - - -Name of the exported scoped variable which -stores the parsed result (of type -java.lang.Number). - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Formats a date and/or time using the supplied styles and pattern - - formatDate - org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag - empty - - -Date and/or time to be formatted. - - value - true - true - - - -Specifies whether the time, the date, or both -the time and date components of the given -date are to be formatted. - - type - false - true - - - -Predefined formatting style for dates. Follows -the semantics defined in class -java.text.DateFormat. Applied only -when formatting a date or both a date and -time (i.e. if type is missing or is equal to -"date" or "both"); ignored otherwise. - - dateStyle - false - true - - - -Predefined formatting style for times. Follows -the semantics defined in class -java.text.DateFormat. Applied only -when formatting a time or both a date and -time (i.e. if type is equal to "time" or "both"); -ignored otherwise. - - timeStyle - false - true - - - -Custom formatting style for dates and times. - - pattern - false - true - - - -Time zone in which to represent the formatted -time. - - timeZone - false - true - - - -Name of the exported scoped variable which -stores the formatted result as a String. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - - - Parses the string representation of a date and/or time - - parseDate - org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag - JSP - - -Date string to be parsed. - - value - false - true - - - -Specifies whether the date string in the -value attribute is supposed to contain a -time, a date, or both. - - type - false - true - - - -Predefined formatting style for days -which determines how the date -component of the date string is to be -parsed. Applied only when formatting a -date or both a date and time (i.e. if type -is missing or is equal to "date" or "both"); -ignored otherwise. - - dateStyle - false - true - - - -Predefined formatting styles for times -which determines how the time -component in the date string is to be -parsed. Applied only when formatting a -time or both a date and time (i.e. if type -is equal to "time" or "both"); ignored -otherwise. - - timeStyle - false - true - - - -Custom formatting pattern which -determines how the date string is to be -parsed. - - pattern - false - true - - - -Time zone in which to interpret any time -information in the date string. - - timeZone - false - true - - - -Locale whose predefined formatting styles -for dates and times are to be used during -the parse operation, or to which the -pattern specified via the pattern -attribute (if present) is applied. - - parseLocale - false - true - - - -Name of the exported scoped variable in -which the parsing result (of type -java.util.Date) is stored. - - var - false - false - - - -Scope of var. - - scope - false - false - - - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/web.xml b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index c60d36566b..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - Tuscany DAS Features - - html/DASWebSampleFrame.html - - - - - CommandServlet - CommandServlet - org.apache.tuscany.samples.web.CommandServlet - - - CommandServlet - /CommandServlet - - - - - http://java.sun.com/jstl/core - /WEB-INF/tld/c.tld - - - http://java.sun.com/jstl/fmt - /WEB-INF/tld/fmt.tld - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/DASWebSampleFrame.html b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/DASWebSampleFrame.html deleted file mode 100644 index 49f913eaec..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/DASWebSampleFrame.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -Tuscany DAS Web Sample - - - - - - \ No newline at end of file diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/blank.html b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/blank.html deleted file mode 100644 index 0bc2a49864..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/html/blank.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/ajax.js b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/ajax.js deleted file mode 100644 index c0b0be5e54..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/ajax.js +++ /dev/null @@ -1,188 +0,0 @@ -// - -var req; -var url; -var xslFileName; -var brwsr; -var htmlunitlimit; - -function startup(pageName) { - if(pageName == 'adhoc'){ - document.forms[0].sqlQuery.focus = true; - } - - if(pageName == 'command') { - document.forms[0].DasCommand.focus = true; - } -} - -function init() { - if (window.XMLHttpRequest) { - brwsr="NOIE"; - req = new XMLHttpRequest(); - } else if (window.ActiveXObject) { - brwsr="IE"; - req = new ActiveXObject("Microsoft.XMLHTTP"); - } - var url = "../CommandServlet"; - req.open("POST", url, true); - req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); -} - -function formWaitMessage(){ - var swappableSection = document.getElementById('msg'); - if (window.XSLTProcessor) - { - swappableSection.innerHTML = ''; - var x = document.createTextNode('Retreiving result..please wait'); - swappableSection.appendChild(x); - } - else if(window.ActiveXObject) - { - swappableSection.innerHTML = 'Retreiving result..please wait' ; - } -} - -function executeQuery(reqParams, xslFileNameVal) { - init(); - req.onreadystatechange = resultHandler; - xslFileName = xslFileNameVal; - //alert(reqParams); - xsldocloaded = false; - loadXsl(); - req.send(reqParams); - //alert('req sent'); -} - - var xsldocloaded = false; - var xsldoc; - -function loadXsl(){ - if(xslFileName != ''){ - if (window.XSLTProcessor) - { - // support Mozilla/Gecko based browsers - xsldoc = document.implementation.createDocument("", "", null); - xsldoc.addEventListener("load", onXslLoad, false); - xsldoc.load(xslFileName); - //alert("done loadXsl Mozilla"); - htmlunitlimit='false'; - } - else if(window.ActiveXObject) - { - // support Windows / ActiveX - xsldoc = new ActiveXObject("Microsoft.XMLDOM"); - xsldoc.ondataavailable = onXslLoad; - xsldoc.load(xslFileName); - //alert("done loadXsl IE"); - htmlunitlimit='false'; - } - else{ - //alert('setiing htmlunitlimit true'); - htmlunitlimit='true'; - } - } -} - -function onXslLoad() -{ - // flag that the xsl is loaded - xsldocloaded = true; -} - -function resultHandler() -{ - // Make sure the request is loaded (readyState = 4) - if (req.readyState == 4) - { - // Make sure the status is "OK" - if (req.status == 200) - { - // Make sure the XSL document is loaded - if (!xsldocloaded && xslFileName != '') - { - if(htmlunitlimit=='false'){ - alert("Unable to transform data. XSL is not yet loaded."); - // break out of the function - return; - } - else{ - var swappableSectionUT = document.getElementById('msg'); - if(brwsr=='NOIE'){ - //alert('limit case, xsl present, noie'); - swappableSectionUT.removeChild(swappableSectionUT.childNodes[0]);//remove wait message - var x = document.createTextNode(req.responseText); - swappableSectionUT.appendChild(x); - } - else{ - swappableSectionUT.innerHTML = req.responseText; - } - //alert('returning result:'+req.responseText); - return; - } - } - - var swappableSection = document.getElementById("msg"); - - if (window.XSLTProcessor) - { - if(xslFileName == ''){ - swappableSection.removeChild(swappableSection.childNodes[0]);//remove wait message - var x = document.createTextNode(req.responseText); - swappableSection.appendChild(x); - } - else{ - // support Mozilla/Gecko based browsers - var xsltProcessor = new XSLTProcessor(); - xsltProcessor.importStylesheet(xsldoc); - var outputXHTML = xsltProcessor - .transformToFragment(req.responseXML, document); - swappableSection.innerHTML = ""; - swappableSection.appendChild(outputXHTML); - } - } - else if(window.ActiveXObject) - { - if(xslFileName == ''){ - swappableSection.innerHTML = req.responseText; - } - else{ - // support Windows/ActiveX enabled browsers - var outputXHTML = req.responseXML.transformNode(xsldoc); - swappableSection.innerHTML = outputXHTML; - } - } - else{ - var swappableSectionUT = document.getElementById('msg'); - if(brwsr=='NOIE'){ - swappableSectionUT.removeChild(swappableSectionUT.childNodes[0]);//remove wait message - var x = document.createTextNode(req.responseText); - swappableSectionUT.appendChild(x); - } - else{ - swappableSectionUT.innerHTML = req.responseText; - } - return; - } - } - else - { - alert("There was a problem retrieving the XML data:\n" + - req.statusText); - } - } -} diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/dasmenu.js b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/dasmenu.js deleted file mode 100644 index 96b5d5288e..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/js/dasmenu.js +++ /dev/null @@ -1,112 +0,0 @@ -// -var dbstatus; -var brwsrDB; -var reqDB; - -function showSubMenu(){ - var objThis = this; - - for(var i = 0; i < objThis.childNodes.length; i++) - { - if(objThis.childNodes.item(i).nodeName == "UL") - { - objThis.childNodes.item(i).style.display = "block"; - } - } -} - -function hideSubMenu() -{ - var objThis = this; - - for(var i = 0; i < objThis.childNodes.length; i++) - { - if(objThis.childNodes.item(i).nodeName == "UL") - { - objThis.childNodes.item(i).style.display = "none"; - return; - } - } -} - -function initialiseMenu() -{ - var objLICollection = document.body.getElementsByTagName("LI"); - for(var i = 0; i < objLICollection.length; i++) - { - var objLI = objLICollection[i]; - for(var j = 0; j < objLI.childNodes.length; j++) - { - if(objLI.childNodes.item(j).nodeName == "UL") - { - objLI.onmouseover=showSubMenu; - objLI.onmouseout=hideSubMenu; - - for(var j = 0; j < objLI.childNodes.length; j++) - { - if(objLI.childNodes.item(j).nodeName == "A") - { - objLI.childNodes.item(j).className = "hassubmenu"; - } - } - } - } - } -} - -function refreshdb(){ - if (window.XMLHttpRequest) { - brwsrDB='NOIE'; - reqDB = new XMLHttpRequest(); - } else if (window.ActiveXObject) { - brwsrDB='IE'; - reqDB = new ActiveXObject("Microsoft.XMLHTTP"); - } - - var dbRefreshMsg = document.getElementById('dbmsg'); - if(brwsrDB=='NOIE'){ - var x = document.createTextNode('Refreshing database..please wait'); - dbRefreshMsg.appendChild(x); - } - else{ - dbmsg.innerHTML = 'Refreshing database..please wait'; - } - - //TODO - var urlDB = "../CommandServlet"; - reqDB.open("POST", urlDB, true); - reqDB.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - reqDB.onreadystatechange = dbresultHandler; - reqDB.send('refreshDB=yes'); -} - -function dbresultHandler() { - if (reqDB.readyState == 4) { - if (reqDB.status == 200) { - var dbRefreshMsg = document.getElementById('dbmsg'); - if(brwsrDB=='NOIE'){ - dbRefreshMsg.removeChild(dbRefreshMsg.childNodes[0]);//remove wait message - var x = document.createTextNode('Refreshed database!'); - dbRefreshMsg.appendChild(x); - } - else{ - dbmsg.innerHTML = 'Refreshed database!'; - } - return; - } - } -} diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/DASMenu.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/DASMenu.jsp deleted file mode 100644 index 041e05c8bb..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/DASMenu.jsp +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - DASMenu: Web Sample - - - - - - -

Tuscany DAS Web Sample

- -

Tuscany DAS web sample demonstrates - simple adhoc queries, DAS predefined commands execution and - some advanced features like Optimistic Concurrency Control (OCC), Converter, Result Set Shape etc. -

-

Check more details by navigating menu. - Press Refresh! button anytime for database refresh. -

- -
- - - - - - -
- - \ No newline at end of file diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/converter.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/converter.jsp deleted file mode 100644 index a3610e7639..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/converter.jsp +++ /dev/null @@ -1,117 +0,0 @@ - - -<%-- - * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - * - * 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. - --%> - -<%-- JSTL tags --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> - - - - - - - - - - - -<%@ page import="java.util.*" %> - - - -
- - - - - - - -Arbitrary Converter: - The column converted is a VARCAHAR. - ResultSetShape is used to specify that the property will be a SDODataTypes.DATE. - So this example uses a converter that transforms a string column into a date property - and conversely, a date property back to a string for the underlying column. -
- The converter returns 1957.09.27 if the column value is "Pavick" and 1966.12.20 if - the value is "Williams" -
- On write, the converter returns "Williams" if the property value is 1966.12.20 and "Pavick" - if the property value is 1957.09.27 -
- Check using direct database connection that the database table rows's column values are - either "Williams" or "Pavick". -
-
- -Select * from CUSTOMER where ID = 1; -
- -Check First Customer's LastName is 1957.09.27 -
- -Set First Customer's LastName to 1966.12.20 -
- -Check First Customer's LastName is 1966.12.20 -
- - -    - - -
- - - -
 
-
- - -
- -
- - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/default.css b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/default.css deleted file mode 100644 index 5680fab9ed..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/default.css +++ /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. - */ - -BODY {BACKGROUND-COLOR: #FFFFFF; COLOR: #333366; FONT-FAMILY: 'Times New Roman'} -H1 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -H2 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -H3 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -H4 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -H5 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -H6 {COLOR: #6666CC; FONT-FAMILY: 'Times New Roman'; TEXT-TRANSFORM: capitalize } -TH {COLOR: #000000; font-weight: bold } - -#TRowEven {background-color: #ccff99} -#TRowOdd {background-color: #ffffcc} - -A:link {cursor:hand; color: #3300FF; text-decoration: none;} -A:visited {cursor:hand; color: #3300FF; text-decoration: none; } -A:active {cursor:hand; color:#FEAA02; text-decoration: none;} -A:hover {cursor:hand; color:#FEAA02;} diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexAdhoc.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexAdhoc.jsp deleted file mode 100644 index f212d744f1..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexAdhoc.jsp +++ /dev/null @@ -1,87 +0,0 @@ - - -<%-- - * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - * - * 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. - --%> - -<%-- JSTL tags --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> - - - - - - - - - - - -<%@ page import="java.util.*" %> - - - -
- - - - - - - -Adhoc SQL Query:
- -    - - -
- - - -
 
-
- -
- -
- - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexCommand.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexCommand.jsp deleted file mode 100644 index 55dcb56e38..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/indexCommand.jsp +++ /dev/null @@ -1,85 +0,0 @@ - - -<%-- - * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - * - * 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. - --%> - -<%-- JSTL tags --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> - - - - - - - - - - - -<%@ page import="java.util.*" %> - - - -
- - - - - - - -DAS Command: - - - - - - -
- - -
 
-
- -
- -
- - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/main.css b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/main.css deleted file mode 100644 index 264facc985..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/main.css +++ /dev/null @@ -1,120 +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. - */ - -body -{ - margin: 0px; - border: 0px; - padding: 0px; - font-family: Verdana, Arial, Sans-Serif; - font-size: 0px; -} - -img -{ - border: none 0px #ffffff; -} - -h1 -{ - background-color: #ffcc00; - border-bottom: solid 1px #333333; - padding: 5px; - margin: 0px; - font-size: x-large; -} - -h2 -{ - font-size: large; -} - -p -{ - font-size: small; -} - -/* Real menu */ -ul, li -{ - font-size: small; - margin-top: 0px; - margin-right: 0px; - margin-bottom: 0px; - display: block; -} - -ul -{ - width: 130px; - border: solid 1px #333333; - border-top: solid 5px #333333; - border-right: solid 2px #333333; - padding: 0px; -} - -li ul -{ - display: none; - position: absolute; - margin-left: 100px; - margin-top: -20px; -} - -li a -{ - padding: 2px; - text-decoration: none; - color: #000000; - background-color: #ffffee; - width: 100%; - display: block; - border-bottom: dashed 1px #333333; - text-indent: 2px; - font-size: small; -} - -li a:hover -{ - background-color: #ffcc00; - font-weight: bold; - border-bottom: solid 1px #333333; -} - -li -{ - float: left; - width: 98%; -} - -a.hassubmenu -{ - background-image: url(../img/lay_dmnuhassub.gif); - background-repeat: no-repeat; - background-position: 120px 7px; -} - -#mainmenu -{ - margin: 10px; - margin-left: 5px; - float: left; - border-bottom: solid 2px #333333; - margin-bottom: 100%; -} \ No newline at end of file diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/occ.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/occ.jsp deleted file mode 100644 index ed5a7ee0c1..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/occ.jsp +++ /dev/null @@ -1,77 +0,0 @@ - - -<%-- - * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - * - * 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. - --%> - -<%-- JSTL tags --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> - - - - - - - - - - - -<%@ page import="java.util.*" %> - - - -
- - - - - - - -Automatic Optimistic Concurrency Control: - Try to modify same column in same database table row twice in one transaction. -
- - -    - - -
- - - -
 
-
- -
- -
- - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/rss.jsp b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/rss.jsp deleted file mode 100644 index 2d217d68b3..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/jsp/rss.jsp +++ /dev/null @@ -1,78 +0,0 @@ - - -<%-- - * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - * - * 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. - --%> - -<%-- JSTL tags --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> - - - - - - - - - - - -<%@ page import="java.util.*" %> - - - -
- - - - - - - -Result Set Shape: - DAS has ability to specify format(shape) of the ResultSet. This is necessary - when the JDBC driver in use does not provide adequate support for ResultSetMetadata. - Also, we expect that specifying the result set shape will increase performance. -
-
- -(Select 99, 'Roosevelt', '1600 Pennsylvania Avenue' from customer) - -    - - -
- - - -
 
-
- -
- -
- - - diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/company.xsl b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/company.xsl deleted file mode 100644 index 99d9dc1fad..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/company.xsl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - -

Query Result

- - - -
- - - - - - - - - - -
COMPANYIDCOMPANYNAME
- - - -
-
-
diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/companyDepartment.xsl b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/companyDepartment.xsl deleted file mode 100644 index f79d30595e..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/companyDepartment.xsl +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - -

Query Result

- - - -
- - - - - - - - - - -
COMPANYIDCOMPANYNAME
- - - -
- - - - - - - - - - - - -
DEPIDDEPNAME
- - - -
- - - -
-
diff --git a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/customer.xsl b/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/customer.xsl deleted file mode 100644 index 40e260bcce..0000000000 --- a/tags/java/das/1.0-incubating-beta2/samples/advanced-webapp/src/main/webapp/xsl/customer.xsl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - -

Query Result

- - - - - - - - - - - - - - - -
IDLASTNAMEADDRESS
- - - - - -
- - -
-
-- cgit v1.2.3