This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes html-el:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-el:select" Watch "html-el:select" New topic
Author

html-el:select

madhuri rajan
Greenhorn

Joined: May 07, 2007
Posts: 28
Hi,

I am using the following code to generate a dropdown wherein the selected value will be in the form variable selectedReason. I am presetting this form variable in my action class. I see that the dropdown is displayed with the preset reason automatically and disabled as expected. But by the time control reaches the method 'shopCart' in my action class, the form variable selectedReason is coming in as null. Can someone please tell me why this form variable is not getting set.



Thanks in advance,
Madhuri.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What library are you using (html-el)?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
madhuri rajan
Greenhorn

Joined: May 07, 2007
Posts: 28
<%@ taglib uri="/tags/struts-html-el" prefix="html-el"%>
 
Don't get me started about those stupid light bulbs.
 
subject: html-el:select
 
Similar Threads
Default value in dropdown list after submitting page
Default value in dropdown list after submitting page
how to submit dynamic row generated in JSP using struts
struts 1.2 dynaform not populating object contained in map
to get value of disabled check box value in action class