Struts2.2.1 optiontransferselect  tag example.
Posted on: January 12, 2011 at 12:00 AM
Struts2.2.1 optiontransferselect  tag example.

Struts2.2.1 optiontransferselect  tag example.

In this example, you will see the implementation of optiontransferselect tag of struts2.2.1. The Optiontransferselect tag is a generic UI tag that creates an option transfer select component. There are two <select ...> tags with buttons in the middle of them. With the help of these button tag, you can transfer selected data form one select box to another select box.

Directory structure of optiontransferselect tag example.

 1- index.jsp



<style type="text/css">

hr{margin: 0;}</style></head>



<a href="optionTransfer.action">_Option Transfer Select_</a>




<%@taglib uri="/struts-tags" prefix="s" %>




<s:form action="resultAction.action">


leftTitle="List of indian cities.. "


headerValue="----Select Indian city-----"


list= "indianCityName"


doubleHeaderValue="----Select American city-----"

rightTitle="List of American cities... "

doubleList="americanCityName" doubleName="americanCity">

</s:optiontransferselect><s:submit> </s:submit>



Related Tags for Struts2.2.1 optiontransferselect  tag example.: