[Tomcat, HTTPD, Servlets & JSP] - renderURL stuff - URL navigation inside portlet
by wasabi3689
I am developing a JSP portlet application under uPorta (JSR 168 portlet). The portlet has 3 pages - view.jsp, view1.jsp, and view2.jsp. Now I know how to go view.jsp (actionURL)from view1.jsp, and from view1.jsp (renderURL) back to view.jsp.
Now I have a task that I don't know how to do it. There is a URL link in view1.jsp as below
......
<%=MyIP%>
........
Now I want to go to view2.jsp when a click on the above link. But the problem is when a click on above link, it bring me back to the first page view.jsp, not view1.jsp
Can you tell me how to do pages with URL navigation inside portlet? Sample code please if you can provide
here is my doview function. The problem is when I subcribe my portlet, it first automaitcally go to view3.jsp, not from view.jsp to view2.jsp then view3.jsp
protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException, UnavailableException {
response.setContentType("text/html");
String MyEndDate = request.getParameter("EndDate");
String MyNetworks = request.getParameter("networks");
String MyYourName = request.getParameter("yourname");
PortletURL actionURL = response.createActionURL();
actionURL.setPortletMode(PortletMode.VIEW);
request.setAttribute("actionURL", actionURL.toString());
PortletURL renderURL = response.createRenderURL();
renderURL.setPortletMode(PortletMode.VIEW);
request.setAttribute("renderURL", renderURL.toString() );
if(MyEndDate!= null )
{
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view2.jsp");
prd.include(request, response);
}
else if (renderURL.toString()!=null)
{
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/view3.jsp");
rd.include(request,response);
}
else
{
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view.jsp");
prd.include(request, response);
}
}
Hope the above code you can know what's wrong
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024971#4024971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024971
19Â years, 1Â month
[JBoss Seam] - Re: Seam portlet with Facelet support
by h.cahyadi
Hi jboss(a)biancashouse.com What can I share to you? the configuration? or something else? I believe that there are somebody else who have done some thing same with me, to use facelets inside the portal, do you already check facelets wiki? but I still found some problems with my application, maybe I can share it here :
1. Inter Portlet Communication problem: if we do IPC, seam cannot detect if existing conversation exist, so every time I make an IPC new converstion is created, so I resolved this problem with kick out the IPC, this already old issue, I don't know if the current version of seam already fix this issue
2. Multiple window isolated state, you can view that thread on this forum also
3. Back button problem, you can view that thread also in this forum
4. Still confusing about the seam interceptor, until now I not declare the seam interceptor, but I can still get seam "magic" like bijection, conversation demarcation, etc, so what is the essence of declaring/using seam interceptor
Lets share, and tell me what can I share to you, I will share it, as long as it not confidential for my company
Thanx and Regards,
-haric-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024970#4024970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024970
19Â years, 1Â month