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]

Reply via email to