the code is:

package my.portlets;

import java.io.IOException;
import java.io.*;

import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;


public class FirstPortlet extends GenericPortlet{


protected void doView(RenderRequest renderRequest, RenderResponse renderResponse)
                       throws PortletException, IOException {
               renderResponse.setContentType("text/xml");
               PrintWriter out = renderResponse.getWriter();
out.println("<h1>XSLT mesa se portlet control edition</h1>");
               String jspName = "/jsp/firstportlet.jsp";
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(jspName);
               rd.include(renderRequest, renderResponse);
       }

protected void doHelp(RenderRequest request, RenderResponse response)
                       throws PortletException, IOException {
               response.setContentType("text/xml");
               PrintWriter out = response.getWriter();
               response.setTitle("Helpsite of "+super.getTitle(request));
               out.println("Help is not yet available");
       }


protected void doEdit(RenderRequest request, RenderResponse response)
                       throws PortletException, IOException {
               response.setContentType("text/xml");
               PrintWriter out = response.getWriter();
               out.println("no edit available yet");
               response.setTitle("Edit of "+super.getTitle(request));
       }
}

i created the folder decorations/layout/xml/
with some decoration files and folders

any idea what the LayoutPortlet.class does?


From: Jacek Wi¶licki <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Developers List" <[email protected]>
To: Jetspeed Developers List <[email protected]>
Subject: Re: content-type
Date: Tue, 30 Aug 2005 18:07:01 +0200

Wiadomosc od Thanos Fakiolas z 2005-08-30 18:01 brzmiala:

what do  you mean?
I would like to see your code, check if it's correct and test it at my installations.
i think that the solution is at the configuration of jetspeed! do you know which file generates the portal page?
Wow, a good question ;) It's a quite complex process.

P.S. I'm not sure if it would matter, but do you have separate decorators for XML?

--
pozdrawiam,
    Jacek Wislicki

[EMAIL PROTECTED]
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to