用LE,getAttribute,getParameter都获取不到怎么回事

解决方案 »

  1.   

    el 需要把参数放进作用域里  
    getparameter 是后台获得前台jsp 那么的名称的参数
    getAttribute 也是获得作用域里的参数 一般与setAttribute配合使用的 
    不知道你是前台还是后台获得不了参数呢 
      

  2.   

    updateUser.jsp?bianhao=1 什么意思?是不是每次取到的bianhao都是1?
      

  3.   

    request.getParameter("bianhao")难道不行吗
      

  4.   

    <input type="hidden" name="wjdc.schoolid" value="<%=request.getParameter("uid") %>">这样写就可以拿到了
      

  5.   

    首先保证你的参数传递到servlet,再就是通过request或者session保存好
      

  6.   

    什么意思?你弄个文本框是提交到别的JSP再用el取值吗?那得先接收,用jstl的<c:set>标签,然后用el,或用JSP标签接收,el接收值别忘了,requestScope
      

  7.   

    首先,EL,需要你在jsp页面或者servlet中存放bean,jsp:usebean,或者servlet中setAttribute
    getAttribute,同理之前没有setAttribute,那么无法使用getAttribute,同时注意域scope,
    getParameter,一般没有form表单提交。或者特定requset中传输其,值,也无法get到啊
    再说看到你的代码window.location=updateUser.jsp
    想必是没有通过servlet,forward或者redicte。而是直接跑jsp页面了。那么jsp页面中有jsp code吗进行处理吗。没有的话,想El,getAttribute,不可能吧