Comment

Dave
How do you see the selected month in the action?,
February 13, 2008 at 10:38 PM

Good job showing how to add the select box. Now how do we use the data that gets submitted with the form? I have uses the month example in a page with an action that has a getter and setter for the field I put in the name attribute of the select tag. I have tried declaring it as a String and an Integer but no matter what it ends up as null in the action after submitting the form. Can you provide an example of how the action should handle the select tag?

Thanks!
View All Comments | View Tutorial
Related Tutorial and Articles
Struts Questions

How to add another option to the select tag using struts2 tag - Struts
 

Struts Questions

Struts2 - Struts
 

Struts Questions

select tag in Struts2 to handle Enums - Struts
 

Struts Questions

struts2 select tag multiple
 

Struts Questions

Struts2 ComponentTagSupport - Struts
 

Struts Questions

Struts2 UI - Struts
 

Struts Questions

tree tag in struts2 - Struts
 

Struts Questions

Struts2
 

Struts Questions

Achor tag. Struts2 code - Struts
 

Struts Questions

Struts2 tags - Struts
 

Struts Questions

Maintaining States of Selected CheckBoxes in Different Pages using dispaly table in struts2
 

Struts 2 Tutorials

Example of struts2.2.1 bean tag.
 

Struts Questions

struts <html:select> - Struts
 

Struts Questions

Achor tag. Struts2 code - Struts
 

Struts Questions

using displaytag with struts2 - Struts
 

Travel

Must to See in Agra India
 

Java Beginners

struts2
 

Struts Questions

query on struts2 - Struts
 

Struts Questions

Struts2
 

JSP Servlet Questions

Select tag to fetch data from oracle database
 

Struts Questions

struts2 - Struts
 

Struts 2 Tutorials

How to create pdf file in struts2.
 

Struts Questions

tiles 2 with struts2 - Struts
 

Struts Questions

struts2
 

Struts Questions

Struts2 and Hibernate
 

Struts Questions

Help in Struts2
 

Struts Questions

struts2 - Struts
 

Struts Questions

How to implement ajax in struts2 to operate on select box in jsp
 

Struts Examples

Select Tag (Form Tag) Example
 

Struts Questions

Regarding struts tag and struts dojo tags.
 

Struts Questions

struts html tag - Struts
 

Struts 2 Tutorials

Struts2.2.1 doubleselect tag example.
 

Struts Questions

How to Assign struts2 property to jsp variable
 

Struts 2 Tutorials

Example of struts2.2.1 combobox tag.
 

Struts Questions

Struts2 - Struts
 

JavaScript Questions

. Display JavaScript dropdown selected value
 

JavaScript

JavaScript validate select tag
 

Struts Questions

struts2 Autocompleter
 

Struts 2 Tutorials

Struts2.2.1 token tag example.
 

Struts 1 Tutorials

Select Tag&lt;html:select&gt;:
 

Struts Questions

How to Assign struts2 property to jsp variable
 

Struts Questions

struts2 - Struts
 

Struts-Tutorials

Struts Tutorials
 

Struts Questions

Generating dynamic fields in struts2
 

Struts 2 Tutorials

Struts2 Actions
 

Spring Framework

The select tag
 

Hibernate Questions

how I do select from select in hql
 

Struts 2 Tutorials

Access value of array using OGNL in struts2.
 

Struts 2 Tutorials

Struts2.2.1 UI tag example.
 

HTML Questions

nested selected tag ihave display selected item
 

PHP Questions

select tag multiple values
 

Struts Examples

Struts Tag:
 

Ajax Questions

how to operate on select box using ajax in struts2?
 

Framework Questions

How to align the select tags in a single column.
 

Framework Questions

struts2 - Framework
 

JavaScript Questions

how to display(update) current date and month in select box on selecting the year.
 

Ajax Questions

how to operate on select box using ajax in struts2?
 

Struts 2 Tutorials

Struts2 ajax validation example.
 

Struts 2 Tutorials

Ajax validation in struts2.
 

Struts Questions

how to prepopulate data in struts2 - Struts
 

General

Java Get Month from Date
 

JavaScript Questions

Validate <select> tag Items
 

JavaScript Questions

Validate <select> tag Items
 

Struts Questions

Struts2 connection pooling - Struts
 

Struts Questions

Struts2 connection pooling - Struts
 

Struts Questions

struts2+hibernate - Struts
 

Training

Struts2 Training
 

Struts Questions

dwr with struts2 - Struts
 

Struts Questions

using struts1 and struts2 in one application - Struts
 

Struts Questions

How to add struts2 dependency in Maven?
 

Struts Questions

About Select tag
 

Struts 2 Tutorials

struts2.2.1 include tag example.
 

Struts 2 Tutorials

Struts2 Application in Eclipse: Running the application in Eclipse IDE
 

JSP Servlet Questions

JSP:select image for db and display in image tag
 

JSP Servlet Questions

JSP:select image for db and display in image tag
 

JSP Servlet Questions

JSP:select image for db and display in image tag
 

Struts 2 Tutorials

Example of autocompleter in struts2.2.1
 

Struts 2 Tutorials

Iterator tag example of struts2.2.1
 

Struts 2 Tutorials

Struts2.2.1 password tag example.
 

Java Beginners

Output Previous or Next Day of the Month
 

Struts 2 Tutorials

Struts2.2.1 checkbox tag example.
 

Struts Questions

action tag - Struts
 

Struts 2 Tutorials

Example of struts2.2.1 anchor tag.
 

Struts Questions

retaining the selected values in html:select multiple="true" in jsp + collection + struts
 

Struts Questions

How to Use Struts 2 token tag - Struts
 

PHP Questions

How do you define a constant?
 

Struts 2 Tutorials

Example of set tag in struts2.2.1
 

Struts Questions

How to use struts2 grid with form submission
 

Struts 2 Tutorials

Example of push tag in struts2.2.1
 

HTML5

HTML5 option tag, Example of &lt;option&gt;tag.
 

Struts 2 Tutorials

struts2.2.1 date tag example.
 

Java Beginners

how to by default chceckbox button is selected in struts
 

Ajax

Dojo Filtering Select
 

JavaScript Questions

How to change focus among multiple select boxes?
 

Ajax Questions

how to display textbox value based on selected option value?
 

SQL Tutorial

Select data from Table in Database
 

Struts 2 Tutorials

Struts2.2.1 optiontransferselect  tag example.
 

Struts Questions

<html:option > with "selected" attribute - Struts
 

Struts Questions

contains for list in struts2 - Struts
 

Struts and Hibernate Integration Tutorial

Hibernate criteria example using struts2
 

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisement