« Xpage: getWeek() function in Server Side JS | Main| Domino weblog will be based on the Domino Blog template »

Strange behaviour of facesContext.getExternalContext().getRequestContextPath()

Category  
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

I have build a webbased Digital Image Gallery and there I use 'facesContext.getExternalContext().getRequestContextPath()' to collect the databasepath, '/saas/xdig.nsf But when I load the Xpage in the Client I see a strange behaviour. My databasepath is modified in the follow syntax, '/xsp/Paddington R8!!saas\xdig.nsf' (Paddington R8 = servername). Can someone explain how I can fix the database path in my xpage, so it will work in web and client.

Comments

Gravatar Image1 - in 8.5.1 you can use

session.getCurrentDatabase().getFilePath()

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus