[英]Error in passing variables from one jsp to another jsp page through jsp:include tag
[英]Error in passing values from a jsp page to another
我是初学者。在我的项目中,我使用的是JSP和Mysql Workbench。 我将一个值从jsp页面传递给另一个我使用的代码时遇到错误
response.sendRedirect("setter.jsp?userid=<%=(rs.getInt("user_id"))%>");
显示的错误是)
预期但我无法确定错误在哪里请有人帮助我。
当你已经在scriptlet中时,不确定为什么需要scriptlet标记。 不应该
response.sendRedirect("setter.jsp?userid="+rs.getInt("user_id"));
PS:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.