E
Eugfene
I have the following function in a html file:
function selectEdit(fileID, processCode, processID, fileName,fileDesc)
{
document.forms[0].recordID.value = fileID;
document.forms[0].processor.value = processCode; `
document.forms[0].processorID.value = processID;
document.forms[0].interfaceFileName.value = fileName;
document.forms[0].fileNameDesc.value=fileDesc;
document.forms[0].submit();
}
The function is called by many buttons in the same form.
Each button is supposed to be redirecting to different html pages
based on the parameter "document.forms[0].recordID.value" i have
directed the form action to a jsp page to handle the redirection but i
cannot get the parameter using jsp. Can i retrieve the
"document.forms[0].recordID.value" if so how?
Do i use javascript to retrieve? I tried using
request.getParameter("recordID")in my jsp but i get a null pointer
exception.
Am i retrieving the value corrrectly?
Thanks
function selectEdit(fileID, processCode, processID, fileName,fileDesc)
{
document.forms[0].recordID.value = fileID;
document.forms[0].processor.value = processCode; `
document.forms[0].processorID.value = processID;
document.forms[0].interfaceFileName.value = fileName;
document.forms[0].fileNameDesc.value=fileDesc;
document.forms[0].submit();
}
The function is called by many buttons in the same form.
Each button is supposed to be redirecting to different html pages
based on the parameter "document.forms[0].recordID.value" i have
directed the form action to a jsp page to handle the redirection but i
cannot get the parameter using jsp. Can i retrieve the
"document.forms[0].recordID.value" if so how?
Do i use javascript to retrieve? I tried using
request.getParameter("recordID")in my jsp but i get a null pointer
exception.
Am i retrieving the value corrrectly?
Thanks