Problem with underscores in URL parameter names?
Struts based web application
I'm struggling with the following and was hoping that someone may be able to help.
when parameters are tagged onto a URL i.e.
http://website.com/processData.do?id=1&M_ordertype=2
The url is correctly finding my action mappings and the form bean is built and passed to the action class, however one of the parameters is named M_ordertype, for some reason this M_ordertype parameter isn't being populated in the form bean (the set method isn't being called).
However if I remove the M_ and just use a variable named ordetype (amending the form bead to match) the parameter value is correctly received.
Is there a problem submitting parameters with an underscore in their name or in this case with an M_ prefix.
Once the system goes live I will have no control over the parameter names being received via the url as they will be coming from a third parties system.
Thanks.