开发者

Problem in displaying dropdown box

<html>
<head>
<title>ADD URL Sources</title>
</head>
<body>

<form action="Test1.jsp" method="post">


<br><br><select name="source" onchange="">
<opti开发者_如何学编程on value="rss">RSS LINK</option>
<option value="other">OTHER LINK</option>
</select>       


<br><br> Enter URL to be added 

 <input type="text" name="url" size=50>


<br/><br>Enter the Source Name of the 

URL<t><input type="text" name="source" size=50><br/><br>


 <input type="Submit" name="submit1" value="Add URL in DB">
 </form>   

  </body>
   </html>

I am using the above html code in a .jsp extension file. While running the file, I can successfully get two input boxes that I have mentioned but not the dropdown box(select tag) in the output.

What modifications should be done. Please advise.


I tried your code on a Tomcat server and everything displays just fine. Just out of curiosity, try re-starting your server and see if the dropdown comes up.

You may also want your input tags to be like this <input type="text" value="value" name="name" />, make them self-closing tags.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜