Jahia in English > Generate URLs in...

0 (0 Good)
0 (0 Bad)

Generate URLs in Live-Mode

by  ejub.boric@landtag.nrw.de »  2019/01/29 12:59

Ist there an convenient way to generate/rewrite the URL-Path  in Action:doExecute()  just like c:url-tag does in .jsp files?

It should for example shorten a path "/cms/render/live/de/sites/mysite/home.html" to "/home.html". 

Tnx in advance!

 

  (ejub.boric@landtag.nrw.de)

Number of messages  3
Registration date
2 (2 Good)
0 (0 Bad)

Re: Generate URLs in Live-Mode

by  shyrkov »  2019/01/29 15:47

Hello Ejub,

 

in the Action.doExecute() you could use:

renderContext.getResponse().encodeURL(url)

for that purpose.

Kind regards

Sergiy

  • Re: Generate URLs in Live-Mode
    2019/02/01 08:29

    shyrkov <p>Hello Ejub,</p> <p>&nbsp;</p> <p>in the Action.doExecute() you could use:</p> <blockquote> <p>renderContext.getResponse().encodeURL(url)</p> </blockquote> <p>for that purpose.</p> <p>Kind regards</p> <p>Sergiy</p>

  • Number of messages  407
    Registration date Jan 29, 2019
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page