[jboss-dev-forums] [Design of JBoss Portal] - including jsp from one application in jboss-portal portlet

umeshthakare do-not-reply at jboss.com
Thu Sep 28 06:44:07 EDT 2006


I have jsp file names.jsp in my one application. I have downloaded hellowordjspportlet and deployed in my application means kept class and the three xml file in my application. 


In hellowordjspportlet.java contains following code


PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/bi/jsp/view2.jsp");
prd.include(rRequest, rResponse);
	
For this jsp

View2.jsp ----->>

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ page import="javax.portlet.RenderRequest,javax.portlet.RenderResponse,javax.portlet.PortletRequestDispatcher" %>

<portlet:defineObjects/>


   Hello<%= renderRequest.getAttribute("yourname") %>!
   
   Back
   


it comes with portlet 

it work sucssesfully,

but instead of view2.jsp, if i write myjsp name ie names.jsp which is at same location, it doesnot work

Any one can suggest me, why this is not work 

How can i include or forward to names.jsp?


i inncluded names.jsp 
<jsp:include page="/bi/jsp/names.jsp"></jsp:

in view.jsp ,but this not work


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974829#3974829

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974829



More information about the jboss-dev-forums mailing list