Get browser URL in JSF 1.2 bean -
i'm using tuckey url rewriter on site (for example) url www.test.com/faces/dynamicform.jsp appears user www.test.com/a/b/c/form.html
in bean, how access url user seeing in browser, in case: www.test.com/a/b/c/form.html
you can httpservletrequest javax.faces.context.externalcontext.
from can call getrequesturl method.
httpservletrequest request = ( httpservletrequest) facescontext.getcurrentinstance().getexternalcontext().getrequest(); string url = request.getrequesturl()
Comments
Post a Comment