In this section, we are going to describe the updownselect tag. The updownselect tag is a UI tag that creates a select component with buttons to move up and down the elements in the select component. When the containing form is submitted, its elements will be submitted in the order they are arranged (top to bottom).
Add the following code snippet into the struts.xml
Create a jsp using the tag
parameter presets the value of input
element. In our case we have set it to
"daysname" The moveDownLabel parameter is used
for the text to display on the move down button. In our case we have set it to
The moveUpLabel parameter is used for the text to
display on the move up button. In our case we have set it to:
"Move Up"parameter is used for the text to be displayed on the select all button In our case we have set it to:
<%@ taglib prefix="s" uri="/struts-tags" %>
<title>Updownselect Tag Example</title>
<h1><span style="background-color: #FFFFcc">Updownselect Tag Example!</span></h>
headerValue="-- Please Select --"
Output of the updownselectTag.jsp:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.