The following code shows how to add links to nav-pills.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
</head><!--from ww w . ja v a2s . c om-->
<body>
<div class='well'>
<ul class='nav nav-pills'>
<li><a href='#'>menu1</a></li>
<li><a href='#'>menu2</a></li>
</ul>
</div>
</body>
</html>