The Artima Developer Community
Sponsored Link

Java Answers Forum
Combo Values

1 reply on 1 page. Most recent reply: Dec 1, 2005 2:30 AM by Rajeev Mutalik

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
nila r

Posts: 1
Nickname: nila
Registered: Nov, 2005

Combo Values Posted: Nov 11, 2005 9:31 AM
Reply to this message Reply
Advertisement
In a JSP i need to slect one of the values in the combo box, based on the value i selected the second combo should list the values. After selecting one of the value in the second combo box, i need to display the third combo box list based of the values selected in the first and second combo box values.

I need to do this only in the JSP without taking to any database of to any service. Can any one tell me whether it is possible to do and help to fix this.

Thank You.


Rajeev Mutalik

Posts: 57
Nickname: rajmutalik
Registered: Sep, 2002

Re: Combo Values Posted: Dec 1, 2005 2:30 AM
Reply to this message Reply
U need to make use of Javascript in the JSP u have developed. Something like

<!--<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<script language="JAVASCRIPT">
function comboChanged() {
alert("Combo is changed");
}
</script>
<body>

<form method="POST" action="--WEBBOT-SELF--">
<p><select size="1" name="D1" onchange=comboChanged()>
<option selected>One</option>
<option>Two</option>
<option>Three</option>
</select><input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>

</body>

</html>
-->


Re gards,
Mutalik

Flat View: This topic has 1 reply on 1 page
Topic: simple beginners question for exam Previous Topic   Next Topic Topic: JPG

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use