Hi,

I call a JavaScript Function and now i want to call servlet from that function with parameters plz help me.

Thanks in advance.

function ex()
{
 document.forms[0].action="/servelt/TestServlet?param1="+document.getElementById("id");
 document.forms[0].submit();
}

document.getElementById("id").value

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.