-
1. Re: Is there any other example other then the hello world ex
bdaw Nov 17, 2006 4:39 PM (in response to johnybravo2004)wrong place. This is design forum, moving to user forum
-
2. Re: Is there any other example other then the hello world ex
bdaw Nov 17, 2006 4:44 PM (in response to johnybravo2004)You don't need separate war files. Hint: portlet.xml has one 'portlet-app' tag and multiply 'portlet' tags. For egz you can look in portletswap or portal codebase
-
3. Re: Is there any other example other then the hello world ex
johnybravo2004 Nov 17, 2006 4:46 PM (in response to johnybravo2004)but do they have to be in the view.jsp file to view in the portlet since to the jsp folder I added a myTask.jsp and changed all the references to view.jsp to myTask.jsp but I see the portlet but not the content of the portlet.
-
4. Re: Is there any other example other then the hello world ex
bdaw Nov 17, 2006 5:04 PM (in response to johnybravo2004)To be honest I don't understand the question. Did you look at JSR168? It's really quite well written specification...
http://docs.jboss.com/jbportal/v2.4/reference-guide/en/html_single/#d0e1934 -
5. Re: Is there any other example other then the hello world ex
johnybravo2004 Nov 17, 2006 6:01 PM (in response to johnybravo2004)what i am saying is that if i replace view.jsp to myTask.jsp it should work... but even if myTask.jsp has the exact same stuff as view.jsp the content of myTask.jsp dont appear. I went through that doc but it doesn tell you how to refer to other jsps other then view, edit and help jsp pages are those the only ones you can use...
-
6. Re: Is there any other example other then the hello world ex
peterj Nov 17, 2006 6:49 PM (in response to johnybravo2004)I think this is what you are looking for. In the doView method in your portlet, do this:
protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException{ . . . response.setContentType("text/html"); PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("myTask.jsp"); prd.include(request, response); }