equivalent of ${opencms.uri} in the java api?

View: New views
6 Messages — Rating Filter:   Alert me  

equivalent of ${opencms.uri} in the java api?

by Tim Daschner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello everyone,

 

How do we access the value of ${opencms.uri} in the opencms java api?

 

Thanks so much!

Tim

 

 



_______________________________________________
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

Re: equivalent of ${opencms.uri} in the java api?

by Florian Heinisch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tim,

get reference to the org.opencms.file.CmsRequestContext object - e.g.  
CmsObject.getRequestContext() - on which you can call getUri()
Have a look here:
http://files.opencms.org/javadoc/core/org/opencms/file/CmsRequestContext.html#getUri()

Good luck,

Florian

On Jun 29, 2009, at 12:21 AM, Tim Daschner wrote:

> Hello everyone,
>
> How do we access the value of ${opencms.uri} in the opencms java api?
>
> Thanks so much!
> Tim
>
>
>
> _______________________________________________
> 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


_______________________________________________
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

Re: equivalent of ${opencms.uri} in the java api?

by Tim Daschner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That was a really quick response thank you.

-----Original Message-----
From: opencms-dev-bounces@...
[mailto:opencms-dev-bounces@...] On Behalf Of Florian Heinisch
Sent: Sunday, June 28, 2009 5:29 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] equivalent of ${opencms.uri} in the java api?

Hi Tim,

get reference to the org.opencms.file.CmsRequestContext object - e.g.  
CmsObject.getRequestContext() - on which you can call getUri()
Have a look here:
http://files.opencms.org/javadoc/core/org/opencms/file/CmsRequestContext.htm
l#getUri()

Good luck,

Florian

On Jun 29, 2009, at 12:21 AM, Tim Daschner wrote:

> Hello everyone,
>
> How do we access the value of ${opencms.uri} in the opencms java api?
>
> Thanks so much!
> Tim
>
>
>
> _______________________________________________
> 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


_______________________________________________
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


_______________________________________________
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

Parent Message unknown Re: equivalent of ${opencms.uri} in the java api?

by Christian Steinert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

An additional method that might help is CmsJspActionElement.info( ... ).

It gives various forms of the current request URI and other information, depending on which information you request. See the Alkacon taglib documentation (there is also a cms:info tag that does the same, and it is documented better than the info( ... ) method)

hth
Christian

> That was a really quick response thank you.
>
> -----Original Message-----
> From: opencms-dev-bounces@...
> [mailto:opencms-dev-bounces@...] On Behalf Of Florian Heinisch
> Sent: Sunday, June 28, 2009 5:29 PM
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] equivalent of ${opencms.uri} in the java api?
>
> Hi Tim,
>
> get reference to the org.opencms.file.CmsRequestContext object - e.g.  
> CmsObject.getRequestContext() - on which you can call getUri()
> Have a look here:
> http://files.opencms.org/javadoc/core/org/opencms/file/CmsRequestContext.htm
> l#getUri()
>
> Good luck,
>
> Florian
>
> On Jun 29, 2009, at 12:21 AM, Tim Daschner wrote:
>
> > Hello everyone,
> >
> > How do we access the value of ${opencms.uri} in the opencms java api?
> >
> > Thanks so much!
> > Tim
> >
> >
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
>


______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


_______________________________________________
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

Re: equivalent of ${opencms.uri} in the java api?

by a.westermann@alkacon.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tim,

BTW: you should use %(opencms.uri) instead of the old ${opencms.uri}
(latter one could collide with JSP EL) in your jsps since OpenCms 7.0.0.


Kind Regards,
Achim.

-------------------
Achim Westermann

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org




Florian Heinisch schrieb:

> Hi Tim,
>
> get reference to the org.opencms.file.CmsRequestContext object - e.g.  
> CmsObject.getRequestContext() - on which you can call getUri()
> Have a look here:
> http://files.opencms.org/javadoc/core/org/opencms/file/CmsRequestContext.html#getUri()
>
> Good luck,
>
> Florian
>
> On Jun 29, 2009, at 12:21 AM, Tim Daschner wrote:
>
>> Hello everyone,
>>
>> How do we access the value of ${opencms.uri} in the opencms java api?
>>
>> Thanks so much!
>> Tim
>>
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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

_______________________________________________
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

Smtp port

by Salvador Tejero Silva :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

 

I need to change the port to smtp server. I tried to add ip:26 to mail host in opencms-system.xml and add an attribute port=”26” too.

 

Somebody know the solutions

 

thanks

 

 

 

      img     

       Salvador Tejero Silva

       e-Administración

       Técnico Desarrollo

        image008  +34 952700020   

        image006  +34 952702610

        image002   stejero@...

        image004   www.e-gim.es

   Centro de Negocios CADI | Edificio Antequera | C/ Cueva de Viera, 2, 2ª Planta Local 1 | 29200 Antequera (Málaga) España

 

   Antes de imprimirlo, piense si es necesario. ¡El cuidado del medioambiente es cosa de todos!

RENUNCIA DE RESPONSABILIDAD: Este mensaje contiene información propietaria de la cual parte o toda puede contener información  confidencial o protegida legalmente. Está exclusivamente destinado al usuario de destino. Si, por un error de envío o transmisión, ha recibido   este mensaje y usted no es el destinatario del mismo, por favor, notifique de este hecho al remitente. Si no es el destinatario final de este mensaje no debe usar, informar, distribuir, imprimir, copiar o difundir este mensaje bajo ningún medio.

 

DISCLAIMER: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print or relay on this e-mail.

 

 








_______________________________________________
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