Hello All,
I am calling a java webscript from a ftl.
var uri = Alfresco.constants.PROXY_URI+"/vs/insurancetype?" + encodeURIComponent("company="+companyValue+"&insurancetype="+insuranceValue);
this.register = function () {
Alfresco.util.Ajax.jsonGet({
url: uri,
successCallback: {
fn: this.updateSubInsuranceType,
scope: this
},
failureCallback: {
fn: function(){},
scope: this
}
});
Passing Parameter:
var companyValue = "A&B Company";
var insuranceValue = "R&K insurance"
Request URL:
Request URL:
When I get the request in Java Webscript.
final String insuranceCompany = req.getParameter("company"); ///companyValue= A
final String insurancetype = req.getParameter("insurancetype"); /// insuranceValue=R
Basically, I am not getting right parameter from the request object.
Please suggest...