In this section, we are going to describe the select tag. The select tag is a UI tag that is used to render an HTML input tag of type select. Add the following code snippet into the struts.xml file. struts.xml <action name="selectTag" class="net.struts2.weekDay"> <result>/pages/uiTags/selectTag.jsp</result> </action> Create an action class with a list populated with various items as shown below: weekDay.java package net.struts2; import com.opensymphony.xwork2.ActionSupport; import java.util.*; public class weekDay extends ActionSupport{ private List day; public String execute()throws Exception{ day = new ArrayList(); day.add("Sunday"); day.add("Monday"); day.add("Tuesday"); day.add("Wednesday"); day.add("Thursday"); day.add("Friday")...
Archive of Struts 2 examples with tag, script. This is the best tutorial of struts 2 framework.