Hi ,
 
I think the Struts ActionMapping will try to invoke the setter and getter 
methods of the ActionForm with the same name in <html:text > if the names are 
not equal simply it will not invoke the Setter() method . So the corresponding 
Variable will be null . i think it wont throw any exception also(ActionMapping)
 
Regards
Kumar


Pradeep Shekade <[EMAIL PROTECTED]> wrote:
Hello,

We are using Struts 1.2.4, and Weblogic 8.1.

The problem is as follows -

One of the action mappings in my struts-config.xml is -

type="com.action.carrier.SampleAction"
name="sampleActionForm">


The "sampleActionForm" corresponds to an entry in as follows 

com.web.struts.form.carrier.SampleActionForm" name="sampleActionForm" />

The class SampleActionForm has a single variable with the appropriate setter 
and getter namely
public void setCarrierName(String carrierName)
public String getCarrierName()

The JSP that correponds to this action has entries as follows -



 [input] "saveChangeCarrier()"/>


Please note that the property "carrierNam" has been deliberately misspelt.

The SURPRISING thing is that struts does not throw any errors at all when 
forwarding to this page. I am sure I am missing something....

We have many JSPs like this but only this one seems to be having this 
problem...

Any pointers on what could be the problem ?????


Thanks and Regards,

Pradeep

                
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Reply via email to