Repository: incubator-juneau Updated Branches: refs/heads/master 08da46a3b -> c2fad3fe9
Move resources in samples to correct location. Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/c2fad3fe Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/c2fad3fe Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/c2fad3fe Branch: refs/heads/master Commit: c2fad3fe93759faf4779eb166e70019a1acb63c4 Parents: 08da46a Author: jamesbognar <[email protected]> Authored: Wed Aug 10 17:30:16 2016 -0400 Committer: jamesbognar <[email protected]> Committed: Wed Aug 10 17:30:16 2016 -0400 ---------------------------------------------------------------------- juneau-samples/juneau-samples.launch | 9 +-- .../server/samples/CodeFormatterResource.html | 63 ----------------- .../server/samples/CodeFormatterResource.java | 2 +- .../juneau/server/samples/SqlQueryResource.html | 66 ------------------ .../server/samples/TempDirUploadPage.html | 34 ---------- .../juneau/server/samples/UrlEncodedForm.html | 62 ----------------- .../juneau/server/samples/averycutedog.jpg | Bin 40879 -> 0 bytes .../server/samples/CodeFormatterResource.html | 68 +++++++++++++++++++ .../juneau/server/samples/SqlQueryResource.html | 66 ++++++++++++++++++ .../server/samples/TempDirUploadPage.html | 34 ++++++++++ .../juneau/server/samples/UrlEncodedForm.html | 62 +++++++++++++++++ 11 files changed, 236 insertions(+), 230 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/juneau-samples.launch ---------------------------------------------------------------------- diff --git a/juneau-samples/juneau-samples.launch b/juneau-samples/juneau-samples.launch old mode 100755 new mode 100644 index 8578fa6..58f531c --- a/juneau-samples/juneau-samples.launch +++ b/juneau-samples/juneau-samples.launch @@ -1,14 +1,15 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> +<stringAttribute key="bad_container_name" value="/juneau-sam"/> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> -<listEntry value="/org.apache.juneau.microservice/src/main/java/org/apache/juneau/microservice/RestMicroservice.java"/> +<listEntry value="/juneau-microservice/src/main/java/org/apache/juneau/microservice/RestMicroservice.java"/> </listAttribute> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> <listEntry value="1"/> </listAttribute> +<booleanAttribute key="org.eclipse.jdt.debug.ui.CONSIDER_INHERITED_MAIN" value="true"/> +<booleanAttribute key="org.eclipse.jdt.debug.ui.INCLUDE_EXTERNAL_JARS" value="true"/> <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/> -<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.juneau.microservice.RestMicroservice"/> -<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.apache.juneau.samples"/> -<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="juneau-samples"/> </launchConfiguration> http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.html b/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.html deleted file mode 100755 index 307c1c1..0000000 --- a/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.html +++ /dev/null @@ -1,63 +0,0 @@ -<!DOCTYPE HTML> -<!-- -/*************************************************************************************************************************** - * 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. - * - ***************************************************************************************************************************/ - --> -<html> -<head> - <style type='text/css'> - @import '$R{servletURI}/style.css'; - </style> - <script> - // Quick and dirty function to allow tabs in textarea. - function checkTab(e) { - if (e.keyCode == 9) { - var t = e.target; - var ss = t.selectionStart, se = t.selectionEnd; - t.value = t.value.slice(0,ss).concat('\t').concat(t.value.slice(ss,t.value.length)); - e.preventDefault(); - } - } - // Load results from IFrame into this document. - function loadResults(buff) { - var doc = buff.contentDocument || buff.contentWindow.document; - var buffBody = doc.getElementById('data'); - if (buffBody != null) { - document.getElementById('results').innerHTML = buffBody.innerHTML; - } - } - </script> -</head> -<body> - <h3 class='title'>Code Formatter</h3> - <div class='data'> - <form id='form' action='codeFormatter' method='POST' target='buff'> - <table> - <tr> - <th>Language: </th> - <td><input name='lang' value='java'></td> - <td><button type='submit'>Submit</button><button type='reset'>Reset</button></td> - </tr> - <tr> - <td colspan='3'><textarea name='code' style='width:100%;height:200px;font-family:Courier;font-size:9pt;' onkeydown='checkTab(event)'></textarea></td> - </tr> - </table> - </form> - <div id='results' class='monospace'> - </div> - </div> - <iframe name='buff' style='display:none' onload="parent.loadResults(this)"></iframe> -</body> -</html> - http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.java ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.java b/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.java index b225f96..a9b9480 100755 --- a/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.java +++ b/juneau-samples/src/main/java/org/apache/juneau/server/samples/CodeFormatterResource.java @@ -21,7 +21,7 @@ import org.apache.juneau.server.*; import org.apache.juneau.server.annotation.*; /** - * Service at <code>/jazz/rawSql</code>. + * Service at <code>/codeFormatter</code>. * Used for executing SQL queries against the repository database. */ @RestResource( http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/SqlQueryResource.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/SqlQueryResource.html b/juneau-samples/src/main/java/org/apache/juneau/server/samples/SqlQueryResource.html deleted file mode 100755 index 1119400..0000000 --- a/juneau-samples/src/main/java/org/apache/juneau/server/samples/SqlQueryResource.html +++ /dev/null @@ -1,66 +0,0 @@ -<!DOCTYPE HTML> -<!-- -/*************************************************************************************************************************** - * 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. - * - ***************************************************************************************************************************/ - --> -<html> -<head> - <style type='text/css'> - @import '$R{servletURI}/style.css'; - </style> - <script> - // Quick and dirty function to allow tabs in textarea. - function checkTab(e) { - if (e.keyCode == 9) { - var t = e.target; - var ss = t.selectionStart, se = t.selectionEnd; - t.value = t.value.slice(0,ss).concat('\t').concat(t.value.slice(ss,t.value.length)); - e.preventDefault(); - } - } - // Load results from IFrame into this document. - function loadResults(b) { - var doc = b.contentDocument || b.contentWindow.document; - var data = doc.getElementById('data') || doc.getElementsByTagName('body')[0]; - document.getElementById('results').innerHTML = data.innerHTML; - } - </script> -</head> -<body> - <h3 class='title'>SQL Query API</h3> - <div class='data'> - <form action='sqlQuery' method='POST' target='buf'> - <table> - <tr> - <th>Position (1-10000):</th> - <td><input name='pos' type='number' value='1'></td> - <th>Limit (1-10000):</th> - <td><input name='limit' type='number' value='100'></td> - <td><button type='submit'>Submit</button><button type='reset'>Reset</button></td> - </tr> - <tr> - <td colspan="5"> - <textarea name='sql' style='width:100%;height:200px;font-family:Courier;font-size:9pt;' onkeydown='checkTab(event)'></textarea> - </td> - </tr> - </table> - </form> - <br> - <div id='results'> - </div> - </div> - <iframe name='buf' style='display:none' onload="parent.loadResults(this)"></iframe> -</body> -</html> - http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/TempDirUploadPage.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/TempDirUploadPage.html b/juneau-samples/src/main/java/org/apache/juneau/server/samples/TempDirUploadPage.html deleted file mode 100755 index 6410bdf..0000000 --- a/juneau-samples/src/main/java/org/apache/juneau/server/samples/TempDirUploadPage.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML> -<!-- -/*************************************************************************************************************************** - * 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. - * - ***************************************************************************************************************************/ - --> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <style type='text/css'> - @import '$R{servletURI}/style.css'; - </style> -</head> -<body> - <h3 class='title'>$R{servletLabel}</h3> - <h5 class="description">$R{servletDescription}</h5> - <div class='data'> - <form id='form' action='$R{servletURI}/upload' method='POST' target='buff' enctype="multipart/form-data"> - <input name="contents" type="file"><button type="submit">Submit</button> - </form> - </div> -</body> -</html> - http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/UrlEncodedForm.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/UrlEncodedForm.html b/juneau-samples/src/main/java/org/apache/juneau/server/samples/UrlEncodedForm.html deleted file mode 100755 index c530764..0000000 --- a/juneau-samples/src/main/java/org/apache/juneau/server/samples/UrlEncodedForm.html +++ /dev/null @@ -1,62 +0,0 @@ -<!DOCTYPE HTML> -<!-- -/*************************************************************************************************************************** - * 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. - * - ***************************************************************************************************************************/ - --> -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <style type='text/css'> - @import '$R{servletURI}/style.css'; - </style> - <script type="text/javascript"> - // Load results from IFrame into this document. - function loadResults(buff) { - var doc = buff.contentDocument || buff.contentWindow.document; - var buffBody = doc.getElementById('data'); - document.getElementById('results').innerHTML = buffBody.innerHTML; - } - </script> -</head> -<body> - <h3 class='title'>$R{servletLabel}</h3> - <h5 class="description">$R{servletDescription}</h5> - <div class='data'> - <form id='form' action='$R{servletURI}' method='POST' target='buff'> - <table> - <tr> - <th>$L{aString}</th> - <td><input name="aString" type="text"></td> - </tr> - <tr> - <th>$L{aNumber}</th> - <td><input name="aNumber" type="number"></td> - </tr> - <tr> - <th>$L{aDate}</th> - <td><input name="aDate" type="datetime"> (ISO8601, e.g. "<code>2001-07-04T15:30:45Z</code>")</td> - </tr> - <tr> - <td colspan='2' align='right'><button type="submit">$L{submit}</button></td> - </tr> - </table> - </form> - <br> - <div id='results'> - </div> - </div> - <iframe name='buff' style='display:none' onload="parent.loadResults(this)"></iframe> -</body> -</html> - http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/java/org/apache/juneau/server/samples/averycutedog.jpg ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/java/org/apache/juneau/server/samples/averycutedog.jpg b/juneau-samples/src/main/java/org/apache/juneau/server/samples/averycutedog.jpg deleted file mode 100755 index 335855e..0000000 Binary files a/juneau-samples/src/main/java/org/apache/juneau/server/samples/averycutedog.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/resources/org/apache/juneau/server/samples/CodeFormatterResource.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/resources/org/apache/juneau/server/samples/CodeFormatterResource.html b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/CodeFormatterResource.html new file mode 100755 index 0000000..90441cf --- /dev/null +++ b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/CodeFormatterResource.html @@ -0,0 +1,68 @@ +<!DOCTYPE HTML> +<!-- +/*************************************************************************************************************************** + * 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. + * + ***************************************************************************************************************************/ + --> +<html> +<head> + <style type='text/css'> + @import '$R{servletURI}/style.css'; + </style> + <script> + // Quick and dirty function to allow tabs in textarea. + function checkTab(e) { + if (e.keyCode == 9) { + var t = e.target; + var ss = t.selectionStart, se = t.selectionEnd; + t.value = t.value.slice(0,ss).concat('\t').concat(t.value.slice(ss,t.value.length)); + e.preventDefault(); + } + } + // Load results from IFrame into this document. + function loadResults(buff) { + var doc = buff.contentDocument || buff.contentWindow.document; + var buffBody = doc.getElementById('data'); + if (buffBody != null) { + document.getElementById('results').innerHTML = buffBody.innerHTML; + } + } + </script> +</head> +<body> + <h3 class='title'>Code Formatter</h3> + <div class='data'> + <form id='form' action='codeFormatter' method='POST' target='buff'> + <table> + <tr> + <th>Language: </th> + <td> + <select name='lang'> + <option value='java'>Java</option> + <option value='xml'>XML</option> + </select> + </td> + <td><button type='submit'>Submit</button><button type='reset'>Reset</button></td> + </tr> + <tr> + <td colspan='3'><textarea name='code' style='min-width:800px;min-height:400px;font-family:Courier;font-size:9pt;' onkeydown='checkTab(event)'></textarea></td> + </tr> + </table> + </form> + <div id='results' class='monospace'> + </div> + </div> + <iframe name='buff' style='display:none' onload="parent.loadResults(this)"></iframe> +</body> +</html> + http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/resources/org/apache/juneau/server/samples/SqlQueryResource.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/resources/org/apache/juneau/server/samples/SqlQueryResource.html b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/SqlQueryResource.html new file mode 100755 index 0000000..1119400 --- /dev/null +++ b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/SqlQueryResource.html @@ -0,0 +1,66 @@ +<!DOCTYPE HTML> +<!-- +/*************************************************************************************************************************** + * 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. + * + ***************************************************************************************************************************/ + --> +<html> +<head> + <style type='text/css'> + @import '$R{servletURI}/style.css'; + </style> + <script> + // Quick and dirty function to allow tabs in textarea. + function checkTab(e) { + if (e.keyCode == 9) { + var t = e.target; + var ss = t.selectionStart, se = t.selectionEnd; + t.value = t.value.slice(0,ss).concat('\t').concat(t.value.slice(ss,t.value.length)); + e.preventDefault(); + } + } + // Load results from IFrame into this document. + function loadResults(b) { + var doc = b.contentDocument || b.contentWindow.document; + var data = doc.getElementById('data') || doc.getElementsByTagName('body')[0]; + document.getElementById('results').innerHTML = data.innerHTML; + } + </script> +</head> +<body> + <h3 class='title'>SQL Query API</h3> + <div class='data'> + <form action='sqlQuery' method='POST' target='buf'> + <table> + <tr> + <th>Position (1-10000):</th> + <td><input name='pos' type='number' value='1'></td> + <th>Limit (1-10000):</th> + <td><input name='limit' type='number' value='100'></td> + <td><button type='submit'>Submit</button><button type='reset'>Reset</button></td> + </tr> + <tr> + <td colspan="5"> + <textarea name='sql' style='width:100%;height:200px;font-family:Courier;font-size:9pt;' onkeydown='checkTab(event)'></textarea> + </td> + </tr> + </table> + </form> + <br> + <div id='results'> + </div> + </div> + <iframe name='buf' style='display:none' onload="parent.loadResults(this)"></iframe> +</body> +</html> + http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/resources/org/apache/juneau/server/samples/TempDirUploadPage.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/resources/org/apache/juneau/server/samples/TempDirUploadPage.html b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/TempDirUploadPage.html new file mode 100755 index 0000000..6410bdf --- /dev/null +++ b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/TempDirUploadPage.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML> +<!-- +/*************************************************************************************************************************** + * 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. + * + ***************************************************************************************************************************/ + --> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type='text/css'> + @import '$R{servletURI}/style.css'; + </style> +</head> +<body> + <h3 class='title'>$R{servletLabel}</h3> + <h5 class="description">$R{servletDescription}</h5> + <div class='data'> + <form id='form' action='$R{servletURI}/upload' method='POST' target='buff' enctype="multipart/form-data"> + <input name="contents" type="file"><button type="submit">Submit</button> + </form> + </div> +</body> +</html> + http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/c2fad3fe/juneau-samples/src/main/resources/org/apache/juneau/server/samples/UrlEncodedForm.html ---------------------------------------------------------------------- diff --git a/juneau-samples/src/main/resources/org/apache/juneau/server/samples/UrlEncodedForm.html b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/UrlEncodedForm.html new file mode 100755 index 0000000..c530764 --- /dev/null +++ b/juneau-samples/src/main/resources/org/apache/juneau/server/samples/UrlEncodedForm.html @@ -0,0 +1,62 @@ +<!DOCTYPE HTML> +<!-- +/*************************************************************************************************************************** + * 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. + * + ***************************************************************************************************************************/ + --> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type='text/css'> + @import '$R{servletURI}/style.css'; + </style> + <script type="text/javascript"> + // Load results from IFrame into this document. + function loadResults(buff) { + var doc = buff.contentDocument || buff.contentWindow.document; + var buffBody = doc.getElementById('data'); + document.getElementById('results').innerHTML = buffBody.innerHTML; + } + </script> +</head> +<body> + <h3 class='title'>$R{servletLabel}</h3> + <h5 class="description">$R{servletDescription}</h5> + <div class='data'> + <form id='form' action='$R{servletURI}' method='POST' target='buff'> + <table> + <tr> + <th>$L{aString}</th> + <td><input name="aString" type="text"></td> + </tr> + <tr> + <th>$L{aNumber}</th> + <td><input name="aNumber" type="number"></td> + </tr> + <tr> + <th>$L{aDate}</th> + <td><input name="aDate" type="datetime"> (ISO8601, e.g. "<code>2001-07-04T15:30:45Z</code>")</td> + </tr> + <tr> + <td colspan='2' align='right'><button type="submit">$L{submit}</button></td> + </tr> + </table> + </form> + <br> + <div id='results'> + </div> + </div> + <iframe name='buff' style='display:none' onload="parent.loadResults(this)"></iframe> +</body> +</html> +
