You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by walid sallam <ws...@hotmail.com> on 2002/02/26 23:05:58 UTC
multiple Forms, one ActionForm and layers
Hi
I have a JSP page that has 4 different forms on it.
Three of these forms represent different layers that get displayed based on
a drop down selection. The selections are for undergrad, graduate and
research. The 3 forms need to have different names so that the layering
would work and the user views the correct layer. The names are used by a
javascript function to display the correct layer.
I want to have the page use one ActionForm - but the problem is that the
forms need to have 3 different
names for the forms (layers) to be displayed in the browser (Netscape). Can
I use Struts in this page, with the different forms having unique names,
going to one ActionForm object?
Thanks
code:
<form name="mainForm">
<table border="0" cellpadding="0" cellspacing="0" width="398">
<tr>
...............
<select name="pattern" class="blackreg"
onchange="getValueOfForm();"><option
value="Undergrad">Undergrad</option><option
value="Graduate">Graduate</option><option
value="Research">Research</option></select></form></td>
<tr>
<div id="relaDiv">
<span id="Undergrad">
<form name="UndergradForm">
<span id="Graduate">
<form method="post" name="GraduateForm">
<table cellpadding="0" cellspacing="0" border="0"
align="left">
<tr>
......
<span id="Research">
<form method="post" name="ResearchForm">
<table cellpadding="0" border="0" cellspacing="0"
align="center">
<tr>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>