是否可以重定向到portlet? [Portlets + JSP]
我通过单击portlet中的链接来调用jsp页面。在jsp中,经过一些计算后,我试图通过
response.sendRedirect()
方法将重定向请求发送回portlet。但是,portlet不是转到重定向页面,而是简单地发布不应该看到的代码。
我究竟做错了什么 ??
..... some declarations and methods for computing stuff.... .
<%
String redirect = generateRedirect(request, name);
response.sendRedirect(redirect);
%>
<html>
<head>
<title>Testing Portlet redirect</title>
</head>
<body>
You should never see this page.
</body>
</html>
没有找到相关结果
已邀请:
1 个回复
犯痪桂涛杭