Skip to Main Content

get application ip and port using expression language

JuwMar 6 2014 — edited Mar 7 2014

hi gurus, is it possible to get application ip and port using expression language / FacesContext ?

example :

i have application with url :

http://120.120.120.120:7001/MyApp/Faces/login.jspx

i can get "MyApp" (Context Root) using #{facesContext.externalContext.requestContextPath}

but i want get the 120.120.120.120:7001 using EL.

if it's not possible using EL, can i get it using javascript / java code in jspx ?

what am i achieving here is, i want to store several image in server folder, and then i will have my servlet to read that image from server folder and use that image as background image of the panelgrouplayout.

i want to store that image in a folder so user can update that image easily than store that image in DB / application package

thanks before

Comments
Post Details
Added on Mar 6 2014
2 comments
113 views