• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Help Needed Not able to display two drop downs in jsp

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
I have a jsp with 12 fileds. out of which 5 fields are drop downs.
I have a onchange function which populates the data from SQL server to 2 dropdowns.(FLEX VERSION and FLSHVERSION)but the problem is when i go to this page , i am not able to see those 2 dropdowns.but when i enter SALESMODEL then Onchage function calling and displaying the those two dropdown, but this time it is hiding 2 dropdows(NEXTEST RECIPE and TECHNOLOGY) dropdowns.i.e at any point of time i am viewing only 10 fileds.

Here is my jsp.Any help is greatly appriciated.
by the way 2 drop downs are editable.



<html:form action ="/ProgrammingAdd.do?method=addPrimaryConfig" >
<font size="4" color='#2B60DE'><h3><u>Add Primary Configuration</u></h3>
</font>


<table>
<li><font color='#2B60DE'><h3>BLUE Fields are Required</h3></li>
<br/><br/>
<table>
<TR>
<TD><font color='#2B60DE'><h3>SALES MODEL </h3><br/></TD>
<TD><html:text name= "ProgrammingAddForm" property= "salesModel" tabindex="8" maxlength="40" style="text-transform:uppercase" onchange="javascript:loadOnChangeModel()"></html:text></TD>


<TD><font color='#2B60DE'><h3>SVN KIT </h3><br/></TD>
<TD><html:text name="ProgrammingAddForm" property= "svnkit" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>
</TR>

<TR>
<TD><font color='#2B60DE'><h3>FAMILY </h3><br/></TD>
<TD><html:text name="ProgrammingAddForm" property= "family" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>

<TD><font color='#2B60DE'><h3>REFLASH</h3><br/></TD>
<TD><html:select name="ProgrammingAddForm" property="type" tabindex="8">
<html:option value="Y">Y</html:option>
<html:option value="N">N</html:option>
</html:select>
</TD></font>
</tr>


<logic:present name = "ProgrammingAddForm" property = "techList">
<tr><td><h3><font color='#2B60DE'>TECHNOLOGY</font></h3></td><td>
<select id = "tech1" name="tech1" onKeyDownn="fnKeyDownHandler(this, event);" onKeyUpp="fnKeyUpHandler_A(this, event); return false;" onKeyPresss = "return fnKeyPressHandler_A(this, event);"onChange="fnChangeHandler_A(this, event);" >
<logic:notPresent name = "ProgrammingAddForm" property = "tech">
<option value="">SELECT ONE or ENTER NEW TECH</option>
</logic:notPresent>
<logic:present name = "ProgrammingAddForm" property = "tech">
<logic:equal name = "ProgrammingAddForm" property = "tech" value = "0">
<option value="" selected = "selected">SELECT ONE or ENTER NEW TECH</option>
</logic:equal>
<logic:notEqual name = "ProgrammingAddForm" property = "tech" value = "0">
<option value="<bean:write name = "ProgrammingAddForm" property="tech"/>" selected = "selected"><bean:write name = "ProgrammingAddForm" property="tech"/></option>
</logic:notEqual>
</logic:present>
<nested:iterate name="ProgrammingAddForm" property="techList" indexId="index">
<option value="<nested:write property=""/>"><nested:write property=""/></option>
</nested:iterate>
</select></td>
</logic:present>




<logic:present name = "ProgrammingAddForm" property = "recipeList">
<td><h3><font color='#2B60DE'>NEXTEST RECIPE</font></h3></td><td>
<select id = "recipe1" name="recipe1" onKeyDownn="fnKeyDownHandler(this, event);" onKeyUpp="fnKeyUpHandler_A(this, event); return false;" onKeyPresss = "return fnKeyPressHandler_A(this, event);" onChange="fnChangeHandler_A(this, event);" >
<logic:notPresent name = "ProgrammingAddForm" property = "recipe">
<option value="">SELECT ONE or ENTER NEW RECIPE</option>
</logic:notPresent>
<logic:present name = "ProgrammingAddForm" property = "recipe">
<logic:equal name = "ProgrammingAddForm" property = "recipe" value = "0">
<option value="" selected = "selected">SELECT ONE or ENTER NEW RECIPE</option>
</logic:equal>
<logic:notEqual name = "ProgrammingAddForm" property = "recipe" value = "0">
<option value="<bean:write name = "ProgrammingAddForm" property="recipe"/>" selected = "selected"><bean:write name = "ProgrammingAddForm" property="recipe"/></option>
</logic:notEqual>
</logic:present>
<nested:iterate name="ProgrammingAddForm" property="recipeList" indexId="index">
<option value="<nested:write property=""/>"><nested:write property=""/></option>
</nested:iterate>
</select></td>
</logic:present>


<tr>
<TD><h3>FASTT ID</h3></TD>
<TD><html:text name="ProgrammingAddForm" property= "fasttid" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>

<TD><h3>LANGUAGE</h3></TD>
<TD><html:text name="ProgrammingAddForm" property= "lang" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>
</TR>

<tr>
<td><h3>FLASH FILE NAME</h3></TD>
<TD><html:text name="ProgrammingAddForm" property= "flashFile" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>

<TD><h3>FLEX FILE NAME</h3></TD>
<TD><html:text name="ProgrammingAddForm" property= "flexFile" tabindex="8" maxlength="40" style="text-transform:uppercase" ></html:text></TD>
</tr>

<logic:present name = "ProgrammingAddForm" property = "flashVersionList">
<tr><td><h3>FLASH VERSION</h3></td><td>
<select id = "flashVersion1" name="flashVersion1">
<logic:notPresent name = "ProgrammingAddForm" property = "flashVersion">
<option value=""></option>
</logic:notPresent>
<logic:present name = "ProgrammingAddForm" property = "flashVersion">
<logic:equal name = "ProgrammingAddForm" property = "flashVersion" value = "0">
<option value="" selected = "selected"></option>
</logic:equal>
<logic:notEqual name = "ProgrammingAddForm" property = "flashVersion" value = "0">
<option value="<bean:write name = "ProgrammingAddForm" property="flashVersion"/>" selected = "selected"><bean:write name = "ProgrammingAddForm" property="flashVersion"/></option>
</logic:notEqual>
</logic:present>
<nested:iterate name="ProgrammingAddForm" property="flashVersionList" indexId="index">
<option value="<nested:write property=""/>"><nested:write property=""/></option>
</nested:iterate>
</select></td>
</logic:present>




<logic:present name = "ProgrammingAddForm" property = "flexVersionList">
<td><h3>FLEX VERSION</h3></td><td>
<select id = "flexVersion1" name="flexVersion1">
<logic:notPresent name = "ProgrammingAddForm" property = "flexVersion">
<option value=""></option>
</logic:notPresent>
<logic:present name = "ProgrammingAddForm" property = "flexVersion">
<logic:equal name = "ProgrammingAddForm" property = "flexVersion" value = "0">
<option value="" selected = "selected"></option>
</logic:equal>
<logic:notEqual name = "ProgrammingAddForm" property = "flexVersion" value = "0">
<option value="<bean:write name = "ProgrammingAddForm" property="flexVersion"/>" selected = "selected"><bean:write name = "ProgrammingAddForm" property="flexVersion"/></option>
</logic:notEqual>
</logic:present>
<nested:iterate name="ProgrammingAddForm" property="flexVersionList" indexId="index">
<option value="<nested:write property=""/>"><nested:write property=""/></option>
</nested:iterate>
</select></td></tr>
</logic:present>

</table>
<br/><br/>
<html:submit></html:submit>
</html:form>
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use code tags to make your code understandable to others.
 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And do not replace < with &lt;
 
Bear Bibeault
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, please be sure to post Struts questions in the Struts forum. I've moved this there for you.
 
Revanth reddy
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok Here is my code again

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic