window.location.href跳转怎么接受所带的参数

window.location.href使用这个跳转之后,怎么在我product_update.jsp这个页面上接受并显示product_number的值!求大神们讲一下,不甚感激!图片说明

location.href方式带参数,一般是在链接中,获取参数,你可以直接在jsp或者html页面,用js获取

${product_number}

至少得让我知道你是怎么传参的吧

可以request.getParameter("product_number"),或者strust框架可以在action定义一个同名的全局变量就ok

 String product_number=request.getParameter("product_number");