Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我想通过使用link href将值从一个jsp发送到另一个jsp页面,但出现了错误_Jsp - Fatal编程技术网

我想通过使用link href将值从一个jsp发送到另一个jsp页面,但出现了错误

我想通过使用link href将值从一个jsp发送到另一个jsp页面,但出现了错误,jsp,Jsp,index.jsp“>单击 common.jsp字符串attr=request.getAttribute(“param”); 打印输出(属性);%>` 欢迎来到StackOverflow,尝试提供您已经尝试过的更多信息、代码和解决方案,这样您可以帮助其他用户为您找到解决方案,另外,请参阅如何提出有关StackOverflow的好问题getAttribute方法返回一个java.lang.Object。您需要像这样转换为字符串,String attr=(String)getAttribute(“p

index.jsp“>单击

common.jsp字符串attr=request.getAttribute(“param”); 打印输出(属性);%>`


欢迎来到StackOverflow,尝试提供您已经尝试过的更多信息、代码和解决方案,这样您可以帮助其他用户为您找到解决方案,另外,请参阅如何提出有关StackOverflow的好问题getAttribute方法返回一个java.lang.Object。您需要像这样转换为字符串,String attr=(String)getAttribute(“param”);但是,如果您正在执行问题标题中所述的操作,那么应该使用getParameter方法。
Multiple annotations found at this line:
- Type mismatch: cannot convert from Object 
 to String`