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.
module="/exercise">
Double and long via hard coded changes (module)
paramId="stringProperty" paramName="newValue">
String via paramId and paramName
paramId="booleanProperty"
paramName="testbean" paramProperty="nested.booleanProperty"
module="/exercise">
Boolean via paramId, paramName, and paramValue (module)
name="newValues">
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
module welcome page
application welcome page (context relative attribute)
application welcome page (module attribute)
validator welcome page
Struts website
Redirect to the default page ("/")
Actions
application welcome page
Exercise module welcome page
Upload welcome page
Validator welcome page
Pages
application welcome page
Exercise module welcome page
Upload welcome page
Validator welcome page