• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Replacing the drop down box to text field

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
My problem is,I have one jsp page,in that I have one filed Risk Level but it is a drop down box.Now I want to change it as a text field.In that drop down list I have four fields like critical,medium,high,low.But now I want to convert it as a text field with value as critical.But in jsp it is like as

<input type='hidden' name='<%= riskLevelName_hidden%>' value='<%= riskLevelValue%>' />

<select name='<%= riskLevelName%>' onchange='fn_OnClickRiskLevel(<%= index%> ' class="textfield">

<%
if ( "CRITICAL".equalsIgnoreCase( riskLevelValue ) )
{
%>
<option value='CRITICAL' selected>Critical</option>
<%
}
else
{
%>
<option value='CRITICAL'>Critical</option>
<%
}
%>
<%
if ( "HIGH RISK".equalsIgnoreCase( riskLevelValue ) )
{
%>
<option value='HIGH RISK' selected>High</option>
<%
}
else
{
%>
<option value='HIGH RISK'>High</option>
<%
}
%>
<%
if ( "MEDIUM RISK".equalsIgnoreCase( riskLevelValue ) )
{
%>
<option value='MEDIUM RISK' selected>Medium</option>
<%
}
else
{
%>
<option value='MEDIUM RISK'>Medium</option>
<%
}
%>
<%
if ( "LOW RISK".equalsIgnoreCase( riskLevelValue ) )
{
%>
<option value='LOW RISK' selected>Low</option>
<%
}
else
{
%>
<option value='LOW RISK'>Low</option>
<%
}
%>
according to risklevelvalue that options is changing.How I will convert it into text field.Iam sending my entire jsp code.Pleae help to me.
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic