beehive/netui/test/webapps/drt/web/bugs/j1141/index.jsp

63 lines
2.3 KiB
Plaintext

<%--
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.
$Header:$
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
<netui:html>
<head>
<title>FormBean Populate Test</title>
<netui:base />
</head>
<netui:body>
<h2>FormBean Populate Test</h2>
<p>Test that form beans are populated with the correct parameter values for both GET and POST HTTP requests.</p>
<p>result: <netui:span value="${pageInput.inputValue}" /></p>
<p>Test GET requests with parameters in the URL query</p>
<a href="getFormData.do?someParam=formDataWorked">getFormData</a>
<br />
<a href="getSerializable.do?someParam=serializableWorked">getSerializable</a>
<br />
<a href="getFormBean.do?someParam=formBeanWorked">getFormBean</a>
<br />
<p>Test POST requests using a form with hidden parameters (no expressions)</p>
<form action="getFormData.do" method="post">
getFormData
<input type="hidden" name="someParam" value="formDataWorked">
<input type="submit" value="Submit">
</form>
<form action="getSerializable.do" method="post">
getSerializable
<input type="hidden" name="someParam" value="serializableWorked">
<input type="submit" value="Submit">
</form>
<form action="getFormBean.do" method="post">
getFormBean
<input type="hidden" name="someParam" value="formBeanWorked">
<input type="submit" value="Submit">
</form>
</netui:body>
</netui:html>