This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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"%>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html-el:select