synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 4
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 4285 times and has 3 replies Next Thread
Male ggerena
Stranger



Joined: Feb 14, 2007
Posts: 6
Status: Offline

contentload as scriptlet

Hello :)

For a while I've been using this code to load a page's url en the jsp context

	%><cms:contentload collector="allInFolder"
param="<%=str_pathCarpeta%>diario_${number}.html|DiarioMural|1" editable="false"><%--
-%><c:set var="nombreArchivoAnterior"><cms:contentshow element="${opencms.filename}" /></c:set>"><%--
-%></cms:contentload><%


The thing is, now i need to do it with scriptlets.

Anyone knows how to do the same as above, but with java code in a jsp? (scriptlet)

thanks in advance
[Sep 4, 2007 5:50:38 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ggerena
Stranger



Joined: Feb 14, 2007
Posts: 6
Status: Offline

Re: contentload as scriptlet

 
Hello :)

For a while I've been using this code to load a page's url en the jsp context

	%><cms:contentload collector="allInFolder"
param="<%=str_pathCarpeta%>diario_${number}.html|DiarioMural|1" editable="false"><%--
-%><c:set var="nombreArchivoAnterior"><cms:contentshow element="${opencms.filename}" /></c:set>"><%--
-%></cms:contentload><%


The thing is, now i need to do it with scriptlets.

Anyone knows how to do the same as above, but with java code in a jsp? (scriptlet)

thanks in advance



I just need the name of the page, I get it to Java code with

String str_nombreArchivoAnterior = pageContext.getAttribute("nombreArchivoAnterior");

[Sep 4, 2007 5:53:25 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ggerena
Stranger



Joined: Feb 14, 2007
Posts: 6
Status: Offline

Re: contentload as scriptlet

got it!

	String str_nombreUltimo = "";

CmsJspXmlContentBean content = new CmsJspXmlContentBean(pageContext, request, response);

CmsJspTagContentLoad contentlist = (CmsJspTagContentLoad)content.contentload("allInFolder",str_pathCarpeta + "diario_${number}.html|DiarioMural|1",false);

while(contentlist.hasMoreContent()){

str_nombreUltimo = content.contentshow(contentlist,"${opencms.filename}");
out.print();
}

[Sep 4, 2007 10:26:27 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male king
Newbie



Joined: Mar 7, 2012
Posts: 40
Status: Offline

Re: contentload as scriptlet

Lastly, We have set up the actual opencmsvfs within over shadow.
These days We have observed the issue, We have published an incorrect route within the wordpress plugin settings in order to WEB-INF document.
Remorseful whatsoever with regard to the beginner error.
Football Shirts
Manchester United Shirt
England Football Shirt Beats By Dre
Deats By Dr Dre
Beats Headphones
Dr Dre Beats
Dre Beats
----------------------------------------
Soccer Jerseys
Netherlands Football Shirt
[Mar 7, 2012 11:08:31 AM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]