<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>StrutsOptGroup_Tag_Example</title>
</head>
<body>
<h1>StrutsOptGroup_Tag_Example</h1><hr>
<s:form action="ResultOptGroup.action">
<s:select label="Select City"
           name="Cites"          
           list="nameofCity">     
 <s:optgroup label="City_of_UP"
                list=" upCitiesName"   />
<s:optgroup label="City_Of_UttraKhand"
                list="%{#{'Rudrapur':'Rudrapur','RamNagar':'RamNagar','Doon':'Doon'}}" />
</s:select>
<s:submit></s:submit>
</s:form>

</body>
</html>