[opencms-dev] how to access url displayed in browser's address bar
Arian Abrahantes Quintana
Arian.Abrahantes.Quintana at cern.ch
Tue Sep 5 12:12:55 CEST 2006
hi andras,
sort of that but getPathInfo or other Methods within HttpServletRequest is not returning the full url -seems to be a URI-, instead of:
http://mywebsite.org/path/to/file.html
returns,
/path/to/file.html
Let me see if I make myself clear.
I'd like to code in opencms or java something to work like this: http://www.js-examples.com/page/javascripts__example.html?view=495 <http://www.js-examples.com/page/javascripts__example.html?view=495>
as you see the javascript goes directly to the bowser address bar.
thank you for your help I'll keep looking,
arian
________________________________
From: opencms-dev-bounces at opencms.org on behalf of Andras Balogh
Sent: Tue 9/5/2006 11:37 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] how to access url displayed in browser's address bar
Hello,
I'm not sure if I understand you 100% but You can check the:
HttpServletRequest getPathInfo()
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathInfo()
Best wishes,
Andras.
Arian Abrahantes Quintana wrote:
> Dear All:
>
>
> I've been using opencms for a while I still consider myself a newbie. Hope that some of you can help me.
>
> Due proxies and other stuff in opencms the url is rewritten. I am able to access the full url content in the cms object request and I need to match it with the one displayed on the browser. So far I couldn't access the url displayed on the browser. I am doing on the case that somebody tries to fake the address to get into the server, i.e. writing the address by typing directly in the address bar.
>
> I am aware that via javascript I can access history in the browser but many users, including myself, disable javascript operation on theirs browsers. I have found a few things in some java mailing list but they are browser dependent.
>
> hope anyone can help m. best regards,
>
> arian
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 6399 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060905/e9997a77/attachment.bin>
More information about the opencms-dev
mailing list