<%-- 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. --%> <%@ 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" %> Test html:link Tag<% String newValue = "New string value"; pageContext.setAttribute("newValue", newValue); java.util.HashMap newValues = new java.util.HashMap(); newValues.put("floatProperty", new Float(444.0)); newValues.put("intProperty", new Integer(555)); newValues.put("stringArray", new String[] { "Value 1", "Value 2", "Value 3" }); pageContext.setAttribute("newValues", newValues); %>

Test struts-html Link Tag

The following links should hyperlink back to this page, with various combinations of request parameters used to modify the previous values of the associated form bean. Press the "Cancel" button to return to the main menu.

Current Values
booleanProperty intProperty
doubleProperty longProperty
floatProperty stringProperty
stringArray
Hyperlinks To Be Tested via page attribute
No modifications at all
Double and long via hard coded changes
String via paramId and paramName
Boolean via paramId, paramName, and paramValue
Float, int, and stringArray via name (Map)
Hyperlinks To Be Tested via action and module attributes
No modifications at all, but link to the default module.
Double and long via hard coded changes (module)
String via paramId and paramName
Boolean via paramId, paramName, and paramValue (module)
Float, int, and stringArray via name (Map)
Reset and Cancel Buttons
Reset Cancel

The following list tests relative, context-relative, and absolute links. Press (back) to return.

Forwards

Actions

Pages