<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [opencms-dev] Open Cms and Tag lib</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Ok, thanks, but now how can i get the value of "toto" attribute ?</FONT>
</P>
<P><FONT SIZE=2>-----Message d'origine-----</FONT>
<BR><FONT SIZE=2>De : Stephan Hartmann [<A HREF="mailto:hartmann@waehrisch-feykes.de">mailto:hartmann@waehrisch-feykes.de</A>]</FONT>
<BR><FONT SIZE=2>Envoyé : Thursday, July 10, 2003 10:55 AM</FONT>
<BR><FONT SIZE=2>À : opencms-dev@opencms.org</FONT>
<BR><FONT SIZE=2>Objet : Re: [opencms-dev] Open Cms and Tag lib</FONT>
</P>
<BR>
<P><FONT SIZE=2>hi,</FONT>
</P>
<P><FONT SIZE=2>try </FONT>
</P>
<P><FONT SIZE=2><%</FONT>
<BR><FONT SIZE=2>Object o = pageContext.findAttribute("toto");</FONT>
<BR><FONT SIZE=2>%></FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Am Donnerstag, 10. Juli 2003 10:21 schrieben Sie:</FONT>
<BR><FONT SIZE=2>> Hello,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> I do some sql stuff with this :</FONT>
<BR><FONT SIZE=2>> <%@ taglib prefix="sql" uri="<A HREF="http://java.sun.com/jstl/sql" TARGET="_blank">http://java.sun.com/jstl/sql</A>" %></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <c:set var="myDbUrl" value="jdbc:mysql://localhost:3306/opencms"</FONT>
<BR><FONT SIZE=2>> scope="session"/></FONT>
<BR><FONT SIZE=2>> <c:set var="myDbDriver" value="org.gjt.mm.mysql.Driver" scope="session"/></FONT>
<BR><FONT SIZE=2>> <c:set var="myDbUserName" value="bidule" scope="session"/></FONT>
<BR><FONT SIZE=2>> <c:set var="myDbPassword" value="truc" scope="session"/></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <sql:setDataSource</FONT>
<BR><FONT SIZE=2>> var="example"</FONT>
<BR><FONT SIZE=2>> driver="${sessionScope.myDbDriver}"</FONT>
<BR><FONT SIZE=2>> url="${sessionScope.myDbUrl}"</FONT>
<BR><FONT SIZE=2>> user="${sessionScope.myDbUserName}"</FONT>
<BR><FONT SIZE=2>> password="${sessionScope.myDbPassword}"</FONT>
<BR><FONT SIZE=2>> /></FONT>
<BR><FONT SIZE=2>> <sql:transaction dataSource="${example}"></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <sql:query var="toto"></FONT>
<BR><FONT SIZE=2>> select count(RESOURCE_NAME)/2 from CMS_ONLINE_RESOURCES where</FONT>
<BR><FONT SIZE=2>> RESOURCE_NAME like '%RetExp/fiches%html'</FONT>
<BR><FONT SIZE=2>> </sql:query></FONT>
<BR><FONT SIZE=2>> </sql:transaction></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <c:out value="${toto.rows[0]}" /></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> My question is : How can I get the "toto" value in the last part of the</FONT>
<BR><FONT SIZE=2>> script, which is like that :</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> <%</FONT>
<BR><FONT SIZE=2>> com.opencms.flex.jsp.CmsJspActionElement cms = new</FONT>
<BR><FONT SIZE=2>> CmsJspActionElement(pageContext, request, response);</FONT>
<BR><FONT SIZE=2>> com.opencms.file.CmsObject cmsobj = cms.getCmsObject();</FONT>
<BR><FONT SIZE=2>> com.opencms.flex.jsp.CmsJspNavBuilder cmsnav = new</FONT>
<BR><FONT SIZE=2>> CmsJspNavBuilder(cmsobj);</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> String param = request.getParameter("qfam");</FONT>
<BR><FONT SIZE=2>> ArrayList qfamlist ;</FONT>
<BR><FONT SIZE=2>> String[] finale = null ;</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> finale = new String[value of toto];</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> %></FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> This mail is send to you from the opencms-dev mailing list</FONT>
<BR><FONT SIZE=2>> To change your list options, or to unsubscribe from the list, please visit</FONT>
<BR><FONT SIZE=2>> <A HREF="http://mail.opencms.org/mailman/listinfo/opencms-dev" TARGET="_blank">http://mail.opencms.org/mailman/listinfo/opencms-dev</A></FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Stephan Hartmann</FONT>
</P>
<P><FONT SIZE=2>Währisch & Feykes GmbH</FONT>
<BR><FONT SIZE=2>Gustav-Adolf-Str. 5</FONT>
<BR><FONT SIZE=2>47057 Duisburg</FONT>
<BR><FONT SIZE=2>Tel. 0203 / 373 070</FONT>
<BR><FONT SIZE=2>Fax 0203 / 376 766</FONT>
<BR><FONT SIZE=2>hartmann@wfnetz.de</FONT>
</P>
<P><FONT SIZE=2>------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Ausschlusserklärung (Disclaimer):</FONT>
<BR><FONT SIZE=2>Über das Internet versandte E-mails können unter fremden Namen erstellt oder </FONT>
<BR><FONT SIZE=2>manipuliert werden. Aus diesem Grund enthalten unsere mit E-mail verschickten </FONT>
<BR><FONT SIZE=2>Nachrichten grundsätzlich keine rechtsverbindlichen Willenserklärungen.</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>This mail is send to you from the opencms-dev mailing list</FONT>
<BR><FONT SIZE=2>To change your list options, or to unsubscribe from the list, please visit</FONT>
<BR><FONT SIZE=2><A HREF="http://mail.opencms.org/mailman/listinfo/opencms-dev" TARGET="_blank">http://mail.opencms.org/mailman/listinfo/opencms-dev</A></FONT>
</P>
</BODY>
</HTML>