Home Tutorialhelp Comment How do you see the selected month in the action?

 
 

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 ComponentTagSupport - Struts
 

Struts Questions

struts2 select tag multiple
 

Struts Questions

Struts2 UI - Struts
 

Struts Questions

tree tag in struts2 - Struts
 

Struts Questions

Struts2
 

Struts Questions

Struts2 tags - Struts
 

Struts Questions

Achor tag. Struts2 code - Struts
 

Struts Questions

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

Struts Questions

using displaytag with struts2 - Struts
 

Struts Questions

Achor tag. Struts2 code - Struts
 

Struts Questions

struts <html:select> - Struts
 

Struts 2 Tutorials

Example of struts2.2.1 bean tag.
 

Java Beginners

struts2
 

Travel

Must to See in Agra India
 

Struts Questions

query on struts2 - Struts
 

Struts Questions

Struts2
 

Struts Questions

struts2 - Struts
 

Struts Questions

tiles 2 with struts2 - Struts
 

JSP Servlet Questions

Select tag to fetch data from oracle database
 

Struts 2 Tutorials

How to create pdf file in struts2.
 

Struts Questions

struts2
 

Struts Questions

struts2 - Struts
 

Struts Questions

Help in Struts2
 

Struts Questions

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

Struts Questions

Regarding struts tag and struts dojo tags.
 

Struts Questions

struts html tag - Struts
 

Struts Questions

Struts2 - Struts
 

Struts Questions

How to Assign struts2 property to jsp variable
 

Struts Examples

Select Tag (Form Tag) Example
 

Struts Questions

struts2 Autocompleter
 

Struts Questions

struts2 - Struts
 

Struts 2 Tutorials

Struts2.2.1 doubleselect tag example.
 

Struts Questions

How to Assign struts2 property to jsp variable
 

Struts-Tutorials

Struts Tutorials
 

Struts 2 Tutorials

Example of struts2.2.1 combobox tag.
 

JavaScript Questions

. Display JavaScript dropdown selected value
 

Struts Questions

Generating dynamic fields in struts2
 

JavaScript

JavaScript validate select tag
 

Struts 2 Tutorials

Struts2.2.1 token tag example.
 

Struts 2 Tutorials

Struts2 Actions
 

Struts 1 Tutorials

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

Struts 2 Tutorials

Access value of array using OGNL in struts2.
 

Hibernate Questions

how I do select from select in hql
 

Spring Framework

The select tag
 

Struts 2 Tutorials

Struts2.2.1 UI tag example.
 

HTML Questions

nested selected tag ihave display selected item
 

Struts Examples

Struts Tag:
 

Framework Questions

struts2 - Framework
 

PHP Questions

select tag multiple values
 

Ajax Questions

how to operate on select box using ajax in struts2?
 

Struts Questions

how to prepopulate data in struts2 - Struts
 

Framework Questions

How to align the select tags in a single column.
 

Ajax Questions

how to operate on select box using ajax in struts2?
 

Struts 2 Tutorials

Ajax validation in struts2.
 

Struts 2 Tutorials

Struts2 ajax validation example.
 

Struts Questions

struts2+hibernate - Struts
 

Struts Questions

Struts2 connection pooling - Struts
 

Struts Questions

Struts2 connection pooling - Struts
 

Training

Struts2 Training
 

Struts Questions

dwr with struts2 - Struts
 

JavaScript Questions

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

Struts Questions

using struts1 and struts2 in one application - Struts
 

General

Java Get Month from Date
 

JavaScript Questions

Validate <select> tag Items
 

JavaScript Questions

Validate <select> tag Items
 

Struts Questions

action tag - Struts
 

Struts Questions

How to Use Struts 2 token tag - Struts
 

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

Iterator tag example of struts2.2.1
 

Struts Questions

How to use struts2 grid with form submission
 

Struts 2 Tutorials

struts2.2.1 include tag example.
 

Struts Questions

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

Struts 2 Tutorials

Example of autocompleter in struts2.2.1
 

Struts 2 Tutorials

Struts2.2.1 password tag example.
 

PHP Questions

How do you define a constant?
 

Struts Questions

contains for list in struts2 - Struts
 

Java Beginners

Output Previous or Next Day of the Month
 

Struts 2 Tutorials

Struts2.2.1 checkbox tag example.
 

Struts 2 Tutorials

Example of struts2.2.1 anchor tag.
 

Java Beginners

how to by default chceckbox button is selected in struts
 

Struts Questions

Struts2 Validation Problem - Struts
 

Struts 2 Tutorials

Example of set tag in struts2.2.1
 

Struts 2 Tutorials

Example of push tag in struts2.2.1
 

HTML5

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

Struts and Hibernate Integration Tutorial

Hibernate criteria example using struts2
 

Struts Questions

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

Struts 2 Tutorials

Struts2.2.1 optiontransferselect  tag example.
 

Struts 2 Tutorials

struts2.2.1 date tag example.
 

Struts Questions

you get a password field in struts
 

Ajax Questions

how to display textbox value based on selected option value?
 

Ajax

Dojo Filtering Select
 

Struts Questions

how to implement ajax in struts2 to operate on selectbox in jsp
 

SQL Tutorial

Select data from Table in Database
 

Struts-Tutorials

Struts Tutorials - Jakarta Struts Tutorial
 

Struts Questions

logic iterate tag - Struts
 

Ask Questions?

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.