简单的方法就是
<%
if(request.getParameter("value")==null)
{
out.print("斤两袋");
}else if(request.getParameter("value").toString().equals("0"))
{
out.print("斤两袋");
}else if(request.getParameter("value").toString().equals("1"))
{
out.print("斤两袋");
}else if(request.getParameter("value").toString().equals("2"))
{
out.print("斤两袋");
}
%>