事情又有点猥琐

这个起名为biaoti2的input框的值 ,servlet一直取不出,request.getParameter("biaoti2")说我空指针。
也就算了。我就在生成biaoti2的jsp原页面中。直接在下面request出来也是空指针。难道不能这样取名字么?这样取了名字人家不认识的么?这样取得名字不是名字么??求赐教啊!!

像这样的代码也经常有用,request一下就出来biaoti了。
------解决方案--------------------

在同一个页面怎么用request.getParameter()?
同一个页面要得到值 可以$("#biaoti2").val()
------解决方案--------------------
input 要放到 form中而且要提交才能获取到。
String topic = request.getParameter("biaoti2");
if(null == topic){
response.sendRedirect(request.getRequestURL().indexOf("?") > -1 ? request.getReuqestURL() + "&biaoti2=..." : request.getRequestURL() + "?biaoti2=...";
}