[jboss-user] [JBoss Portal] - Problems using jsp in Jboss Portal

alexander.lvov1@gmail.com do-not-reply at jboss.com
Fri Jun 27 02:47:20 EDT 2008


Hi i am experimenting with that jsp example helloworldjspportlet.war that is provided for jboss portal 2.6.5
and have problems with quite basic things. In the java portlet i can see that there are jsp pages
used for each of those 3 modes (View, Edit and Help), view.jsp, view2.jsp, edit.jsp and help.jsp
So i figured i should be able to use other jsp pages like that (forex index.jsp) but the portal just dont seem to except anything else but view.jsp and view2.jsp in view mode so then i simply take a copy of view.jsp and change text in it i still get the old view.jsp. And yes i am sure i am building and deploying stuff correctly, i was actually been able to change context of view.jsp to
something else but not to use index.jsp or something instead.
 
         rRequest.setAttribute("yourname", sYourName);
         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/index.jsp");
         prd.include(rRequest, rResponse);
 
Another problem i experienced is that i dont seem to be able to bundle images in the same .war
When i use <img src="http://localhost:8080/portal/cotent/default/....> way of refering to the picture then no problem
but if i place the picture in the same map in the .war as the jsp page and directly refer to it then no, it wont find it.
 
I am using Jboss Portal 2.6.5 GA
 
Any Experiences, Ideas on that matter ?

/Alexander

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

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



More information about the jboss-user mailing list