how to redirect to struts action from java script?
if condition in the script got success then i need to invoke one action in the config xml, otherwise no action inv
try is:
function displayDate(){ var x=document.getElementsByName("userName") if(x = "shan") { alert("shankarasd"); document.myForm.action ="/setUpForInsertOrUpdate"; document.myForm.submit(); location.href = "nameaction.action?parameter1="+value1+"¶meter2="+value2; } }