WebSphere Portal Server - How to get code into the html <head> tag from portlet JSP?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2004 > How to get code into the html <head> tag from portlet JSP?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get code into the html <head> tag from portlet JSP?
Lee Francis Wilhelmsen

2004-04-29, 6:33 am

Hi

I was wondering how I can get my portlet's javascript code into the <head>
tag. Can this be done using JSP?

regards
Lee Francis Wilhelmsen


url

2004-04-29, 8:34 am

As far as I know, only way to write to <head> from Portlet is to
implement PortletPageListener and write in beginPage method.
You cannot write <head> from JSP.

Also as I see it, many Portlets simply leave scripts in body.
It is not quite correct, but most (all?) browsers accept scripts
in body.

url

Arvind

2004-05-08, 10:37 am

Yes, you can write script anywhere in the body and most browsers are tolerant.

Arvind


url <kessler297-NOSPAM@hotmail.com> wrote in message news:<c6qrme$43i4$1@news.boulder.ibm.com>...
> As far as I know, only way to write to <head> from Portlet is to
> implement PortletPageListener and write in beginPage method.
> You cannot write <head> from JSP.
>
> Also as I see it, many Portlets simply leave scripts in body.
> It is not quite correct, but most (all?) browsers accept scripts
> in body.
>
> url

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com