The hidden variable name is subAction and I'm assigning it a value 'next' when I submit the page i.e on submit, I call a javascript method which assigns the hidden variable value as 'next'. But in my Action Class, form.getSubAction() fetches null :(
-----Original Message----- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: Sunday, September 26, 2004 12:56 AM To: Struts Users Mailing List Subject: RE: Action Form variable null in Action Class does the name of your hidden var is subAction. and are you initializing it when you submit the page on selection of dropdown. Or else you should have the dropdown named subAction. Then only it would initialize the property. -----Original Message----- From: Priya Jotwani [mailto:[EMAIL PROTECTED] Sent: Sat 9/25/2004 2:23 PM To: Struts Users Mailing List Subject: Action Form variable null in Action Class Hi, I have a dropdown in my JSP page along with a hidden variable . I select something from the dropdown and Submit the form. In my Action Class, when I try to access the hidden variable value as below : ClientReportingForm myForm = (ClientReportingForm) form; strSubAction = myForm.getSubAction(); But this strSubAction is always null. Why is my ActioForm not getting populated when I submit the page. Please HELP !! TIA, Priya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]