Dear Vladimir,
I'm not a programming expert, but I thought that wrapping some plain HTML in
JspPortlet would allow you to put code also in the HTML files (after all,
the rendering on the portal is of a jsp, not of an html!) included. This
sounds a bit strange to me, but it could be.
Did you use the <include> tag? I used it but I had file system based files
and not from DB.
Couldn't you change the file format of include files from html to jsp?
Good luck
Stefano


----- Original Message ----- 
From: "Vladimir Figurov" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 2004 7:21 AM
Subject: Re: HTML page with <a href="#anchor1"....


> To Stefano:
> Yes, it's working on JSP, but my JSP-portlet - is wrapper for varios
> HTML-pages outing from data base & in this HTML-pages (clean HTML, not
> JSP)  placed jsp-code don't work - HTML-pages out to stream server
> response & and not compiling ;-(
>
>
> Stefano Bianchi wrote:
>
> >I solved this by paasing to JspPortlet and using this code
> >
> ><%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
prefix='jetspeed'
> >%>
> >...
> ><%
> >  String s = request.getRequestURI();
> >  String ss = s.substring(s.lastIndexOf("portal")+6);
> >%>
> >...
> ><a href="<jetspeed:contentUri
>
>href='portal'/><%=ss%>;jsessionid=<%=request.getRequestedSessionId()%>#a001
"
> >
> >
> >>What is this?</a></li>
> >>
> >>
> >...
> ><a name="a001"> </a>
> >...
> >
> >Not so clean but it worked it out!
> >Good luck
> >Stefano
> >
> >
> >----- Original Message ----- 
> >From: "Vladimir Figurov" <[EMAIL PROTECTED]>
> >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, July 12, 2004 5:28 AM
> >Subject: HTML page with <a href="#anchor1"....
> >
> >
> >
> >
> >>Hi
> >>I have a trubles with working HTML pages. If HTML page has code:
> >>....
> >><a href="#anchor1">Goto step ONE</a>
> >>....
> >><a name="anchor1">Step ONE:</a>
> >>....
> >>at output this page on portal has wrong ref. on "Step ONE" - #anchor1
> >>write at once after Base URI Portal, without the current page (portlet)
> >>and its parameters.
> >>Example:
> >>"http://localhost/jetspeed/#anchor1";
> >>-------------------
> >>Certainly, this is a wrong refs...
> >>Please, help! need optimal choise (this page is taken from data base):
> >>1) I must use org.apache.jetspeed.util.HTMLRewriter class and after out
> >>from base and before render page portlets, TRANSFORMed <a href=... ????
> >>2) or have is another, better resolv...???
> >>
> >>Bob Figurov
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to