Seeking assistance on how to call multiple actions from a single JSP without using ajax. I have attempted various methods, but they don't meet the standards. Can you provide guidance on calling multiple actions without ajax?
<html:form action="inspathNew" name="personInsuranceForm" method="post" scope="request">
<a id="addPatientButton" class="ovalbutton" href="javascript:void(0);">
<span>
<html:button property="addPatient" onclick="javascript:AddPatient();" />
</span>
</a>
</html>
function AddPatient() {
var jobIdVal = document.forms[0].jobId.value;
var batchId = document.forms[0].batchId.value;
var batchCode = document.forms[0].batchCode.value;
var batchCount = document.forms[0].batchCount.value;
var epiCount = document.forms[0].epiCount.value;
var docNum = document.forms[0].docNum.value;
var entryDate = document.forms[0].entryDate.value;
var admitDate = document.forms[0].admitDate.value;
var disDate = document.forms[0].disDate.value;
var epiMode = document.forms[0].epiMode.value;
var episodeId = document.forms[0].episodeIdVal.value;
var epiCntVal = document.forms[0].epiCntVal.value;
var epiDRN = document.forms[0].epiDRN.value;
var batchScanStatus = document.forms[0].batchScanStatus.value;
// bug #1569
var patLastName = document.forms[0].plname.value.toUpperCase();
var patFirstName = document.forms[0].pfname.value.toUpperCase();
var patSSN = document.forms[0].pssn.value;
var PatMrn = document.forms[0].mrn.value;
//bug 2304 c#90
<% String emrEpisodeId = request.getParameter("emrEpisodeId");
if (emrEpisodeId != null && emrEpisodeId.length() > 0) {%>
// to create new person from emrEpisode detail
window.location.href = "<%=request.getContextPath()%>/action/personInfoNew?action=<%=com.abc.dataentry.person.action.PersonAction.ACTION_CREATE_PERSON_FROM_EMR%>&<%=com.abc.dataentry.person.action.PersonAction.PARAM_EMR_EPISODE_ID%>=" + <%=emrEpisodeId%> + "&<%=com.abc.dataentry.person.action.PersonAction.PARAM_JOB_ID%>="+ document.forms[0]['jobId'].value+"&patFirstName="+patFirstName+"&patLastName="+patLastName+"&patSSN="+patSSN;
<% } else {%>
var url = "<%=request.getContextPath()%>/action/personInfoNew?action=newPatient&episodeId=<%=request.getParameter("episodeId")%>&name=<%=request.getParameter("name")%>&patientId=<%=request.getParameter("patientId")%>&jobId="+jobIdVal+"&batchId="+batchId+"&batchCode="+batchCode+"&batchCount="+batchCount+"&epiCount="+epiCount+"&epiMode="+epiMode+"&episodeIdVal="+episodeId+"&epiCntVal="+epiCntVal;
//bug # 2598 - view only person info
var viewMode = "<%=IConstants.PARAM_VIEWMODE%>=<%=IConstants.MODE_VIEWONLY%>";
if(${showPageEditableMode}){
viewMode = "<%=IConstants.PARAM_VIEWMODE%>=<%=IConstants.MODE_EDITABLE%>";
}
window.location.href="<%=request.getContextPath()%>/action/personInfoNew?"+viewMode+"&action=newPatient&episodeId=<%=request.getParameter("episodeId")%>&name=<%=request.getParameter("name")%>&patientId=<%=request.getParameter("patientId")%>&jobId="+jobIdVal+"&batchId="+batchId+"&batchCode="+batchCode+"&batchCount="+batchCount+"&epiCount="+epiCount+"&docNum="+docNum+"&entryDate="+entryDate+"&admitDate="+admitDate+"&disDate="+disDate+"&epiMode="+epiMode+"&episodeIdVal="+episodeId+"&epiCntVal="+epiCntVal+"&batchScanStatus="+batchScanStatus+"&epiDRN="+epiDRN+"&patFirstName="+patFirstName+"&patLastName="+patLastName+"&patSSN="+patSSN+"&mrnValue="+PatMrn;
<% }%>
}
Additionally, looking for information on how to call another action using windows.href.
NOTE: Parameters should be passed through URL. Please advise accordingly.