Results 1 to 3 of 3
  1. #1
    Drun's Avatar
    Drun is offline Member
    Join Date
    Nov 2009
    Location
    Indian Head, MD (Missing Pittsburgh PA)
    Posts
    44
    Rep Power
    0

    Default having a JSP display the results in a Portlet setup

    I am right now working on trying to learn Struts & Portlets. I now have the ability to get the data saved to the "bean" if you will, I can have a JSP display it. On the portlet side I have been able to get to the ponit I can setup and run a portlet and put out a simple stream of data, but have yet found a way to have my portlet object redirect the output from its self to a JSP.

    Edit: I should note this is in the doView function (overrided from GenericPortlet) and not the processAction funciton.
    Last edited by Drun; 01-25-2010 at 09:00 PM.
    Michael P. O'Connor
    http://www.mikeoconnor.net

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    I remember when I was using Jetspeed portal (a long time ago), there was some tricks to make the Jetspeed container even use JSP, it by default was set to use velocity templates for some fool reason.

    but there must be a kind of hello world portlet specific to your portal container type right ?

  3. #3
    Drun's Avatar
    Drun is offline Member
    Join Date
    Nov 2009
    Location
    Indian Head, MD (Missing Pittsburgh PA)
    Posts
    44
    Rep Power
    0

    Default

    I finnaly found the anser it was that I had to do
    Java Code:
    PortletRequestDispatcher someVarable = getPortletContext().getRequestDispatcher("some_jsp_page.jsp");
    someVarable.include(req,res);
    Now the problem I am facing is that I am getting an error saying "Cannot find bean xxx in any scope"
    Michael P. O'Connor
    http://www.mikeoconnor.net

Similar Threads

  1. Portlet help required
    By chiragkini in forum Web Frameworks
    Replies: 0
    Last Post: 12-30-2009, 06:29 AM
  2. portlet ehcache
    By micheal.marky@gmail.com in forum Web Frameworks
    Replies: 0
    Last Post: 07-02-2009, 08:37 AM
  3. Replies: 0
    Last Post: 04-21-2009, 01:32 AM
  4. Portlet question
    By Heather in forum Advanced Java
    Replies: 1
    Last Post: 07-14-2007, 04:21 PM
  5. Portlet
    By Daniel in forum Web Frameworks
    Replies: 1
    Last Post: 07-06-2007, 06:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •