File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-el:select" Watch "html-el:select" New topic


madhuri rajan

Joined: May 07, 2007
Posts: 28

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,
Ben Souther

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

Joined: May 07, 2007
Posts: 28
<%@ taglib uri="/tags/struts-html-el" prefix="html-el"%>
I agree. Here's the link:
subject: html-el:select
jQuery in Action, 3rd edition