<a href="#" onclick="window.location.href="?action=n1">n1</a>
--------
String action=request.getParameter("action")
if(action.equals("n1"))
{
do something
}
else
{
do others.
}
--------
String action=request.getParameter("action")
if(action.equals("n1"))
{
do something
}
else
{
do others.
}
<scirpt language="javascirpt">
self.location="herf....";
document.formname.submit();
</scirt>
不刷新整个页面可以用ajax