[opencms-dev] (no subject)
Christian Steinert
christian_steinert at web.de
Fri Mar 2 10:54:57 CET 2007
I have never tried to manipulate the parameters when calling cms.include().
But you can try to use a request attribute instead.
In your main template, you can do;
request.setAttribute("<key>", "<value>" );
cms.include("../elements/menu_docs.jsp")
then in your include, you can get the request attribute by calling
String value = (String)request.getAttribute("<key>" );
hope that helps
christian
> I everyone i´m getting this done but now i neeed serious help
> i want to create one one doc tha uses another template for working in
> other docs, i mean
> an included template that will work on other a URI...
> how can i pass the URI by parameter without return null, watch my code:
> ----------------------------
> submenu.jsp
> if(createdocs==true)
> {
> HashMap parameters = new java.util.HashMap();
> parameters.put("myparameter", auxne.getResourceName());
> cms.include("../elements/menu_docs.jsp", null, parameters);
> }
> --------------------------
> menu_docs.jsp
>
> List list=null;
> HashMap map=(HashMap)cms.properties();
>
> String foldername=(String)map.get("myparameter");
> out.println(foldername);
>
>
> but always return null
>
> can anyone help me please???
>
> _________________________________________________________________
> MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070302/b0a1c655/attachment.bin>
More information about the opencms-dev
mailing list