Home Tutorialhelp Allcomments Struts Struts Struts Uitags Select Tag

 
 

Comments

 
User Comments for the tutorial:

Select Tag (Form Tag) Example



Total comments: 26      View Tutorial    Discuss: Select Tag (Form Tag) Example
Advertisement
Comments

Set selected option
Hello, Is there any ways for us to set selected option based on variables set by an action who render the jsp for success result? like on your example, how can we automatically set the selected option of date, to option number 5 maybe. 

retriving data in d action class
hi any one of u may plz inform me after selecting d data from the jsp, how we can retrive dat data in d action class.  

500 Exception
Has anyone else received this error from this example? Or can someone let me know how I can get this example to work. Thanks. tag 'select', field 'list', name 'daysname': The requested list key 'day' could not be resolved as a collection/array/m 

i am not able to see the whole result
Hi i am getting only title ie "select tag Examples". i am not getting the other result can any help me over here 

How do you see the selected month in the action?
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 ta 

Strut2 and Weblogic
When I use the struts2 select tag with a static map like: <s:select label="Select Month" name="monthname" headerKey="1" headerValue="-- Please Select --" list="#{'01':'January','02':'February','03':'March','04':'April', '05' 

drop down creation problem
if we are returning array of bean how can make drop down list.we select only selected fiield from bean. 

Problem
There is actually a problem with this tag in Struts 2 !! If you give a namespace to appropriate package and containing form, select tag doesn't recognize list parameter anymore. 

i18n
How about internationalization in list attribute? 

Select tag in table rows
Hi i have something like this: <input type="text" name="myInputValues['<s:property/>']" value="0" size="4"/> myValue is Map<String, String>, where <s:property/> is key (String) to input values in table rows... I have to do this with <select> t 

What's associating Weekday class to SelectTag.jsp
Is this done in struts.xml. If so can I see this artifact too in context of this example 

Struts 2.0
How to write logic tag in struts2.0 can you help me plz 

Problem with <s:select />
I have EmpID, EmpName. I want add Empname as listkey and EmpID as listvalue. Please some help me to do this. Thanks in advance 

Sorting Values
I using a hashMap as the list for a select tag. Is there a way to sort the values by the listValue? i.e. I have a hashmap where the key is a country code like "CAN" and the value is the country name like "Canada". I want to sort the select list by 

What about the List values
Do you always have to select something childish like Fruits, animals and days of week. How about something like list of celebrities or something? 

Label doesn't appear
Hi! I have a problem with the property label. I have tried to run the examples but they don't work. The label doesn't appear, but I have copy the code from the example. I don't know why it happens. 

Superb
Simply super. 

Lead Consultant
This is a very useful quick access tutorial for start using Struts 2. I find it very useful. It is just like a small palm book where u can look for a solution and use it. 

Value retain in select tag
Everything is working fine in with tomcat server,but how to retain the values in the select drop down list box after page is refreshed. 

Good For Problem Solving
Hello sir/madam, I m happy to inform u that through this website i got the solution of my problem. i kindly inform u that u have any kind of tips of struts2 programming just send me on my mail Dhaval Thaket 

Overcomplicated answers
All I need is the mapping. What goes in what properties of select tag.  

software Devloper
your code snippet is not working... 

Cannot execute the example
Hi y'all !! This example has been driving me crazy for the last 2 days and I can't find a solution. I execute the code just as shown above (except for adding <String> to the 'List' element in weekDay.java), but I can't retrieve nothing but this 

NOT working
i have tried this. but it is not showing the select boxes .. 'plzz help me the error is ........... SEVERE: Servlet.service() for servlet jsp threw exception tag 'select', field 'list', name 'daysname': The requested list key 'day' could no 

not working
when i runing this page no select is coming on the page only label "select tag examples is coming". plzzz help me i need it very urgent....... thank u 

problem with select tag !!`
i worked with the above example but m getting a error msg like given below... Servlet.service() for servlet jsp threw exception tag 'select', field 'list', name 'daysname': The requested list key 'day' could not be resolved as a collection/arra 

Related Tutorial and Articles
Struts Questions

How to add another option to the select tag using struts2 tag - Struts
How to add another option to the select tag using struts2 tag  Hi, How to add another option to select tag using tag. My scenario is : If the logged in user is admin then drop down should contain the normal list 

Struts Questions

select tag in Struts2 to handle Enums - Struts
select tag in Struts2 to handle Enums  I have an java enum in my object. I am trying to set its values from struts2 select tag. I tried with "#list... to handle enums in struts2 select tag ?   Hi friend, Code to solve 

Struts Questions

struts2 select tag multiple
struts2 select tag multiple  struts2 select tag multiple 

Struts Questions

<html:option > with "selected" attribute - Struts
with "selected" attribute  how to display formbean object with "selected" attribute in . please help me 

HTML Questions

nested selected tag ihave display selected item
nested selected tag ihave display selected item   i have two combo..."> option value="0">-select- option value="1">INDIA option value.... thanks   Change the option values of select box to India,USA like 

Struts Questions

Struts2 - Struts
Struts2  S:select tag is being used in my jsp, to create a drop down list. The drop down works very well in Mozilla, but in IE7 it behaves very weird, meaning that the drop down wen clicked it just jumps out from the first row 

JSP Servlet Questions

select option with text facility - JSP-Servlet
select option with text facility  Hello. My doubt is regarding how to provide facility to add text in a drop down box ie(select tag in html )in a jsp... the select in html and if the user wants also to directly type the option instead 

Struts Questions

query on struts2 - Struts
query on struts2  I am using struts2 for my application.i have a form that contains 'select' tag, for this i am getting values form DB. The problem is after i am submitting the form it is giving the following error 

Struts Questions

Struts2
Struts2  i want select multiple items from select list in struts2.when i did like that the two selected values must saved into databse in two diffirent rows.pls provide any one code for this i am new to Struts2 

Struts Questions

Maintaining States of Selected CheckBoxes in Different Pages using dispaly table in struts2
Maintaining States of Selected CheckBoxes in Different Pages using dispaly table in struts2  Hi, I am working in a Struts 2 project where in the jsp.... Actually my requirement is to select particular checkboxes across different pages 

Advertisements Advertisements
 

 

 

DMCA.com