Getting Params from Form
Hi,
I've built a form that will send an email. I placed a button on the form which allows you to preview the email before it's sent. This preview is opened in a new window...
<script>
function previewEmail(){
document.forms[0].enctype ='application/x-www-form-urlencoded';
document.forms[0].action ='preview.jsp';
window.open(document.forms[0].action,'preview','width=700,height=500,resizable,scrollbars');returnfalse;
document.forms[0].target ='preview';
document.forms[0].submit();
}
</script>
.
.
.
<form name="form1" method="post" action="send_mail.jsp" enctype="multipart/form-data">
.
.
.
<input type="button" name="Submit" value="Preview" onClick="previewEmail();">
The javascript opens the window correctly, but the params from the form are not coming through.
I've tried accessing them like...
${param.paramName}
and...
${pageScope.param.paramName}
but both ways they show up empty.
Any help would be greatly appreciated!!!

