Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with underscores in URL parameter names?

843838Aug 9 2006
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2006
Added on Aug 9 2006
0 comments
222 views