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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -