Virtual url for jsp website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • francodojs
    New Member
    • Nov 2010
    • 1

    Virtual url for jsp website

    i have a website which is developed on jsp. i would like to add google analytics (tracking) code in every page of my website. There is a drop down in which there are 5 options (a, b, c, d, e). When i select any of the options and click on GO button the url loads for every option is the same (eg. http://www.mywebsite/optionselect.js p). Due this url i am not able to figure out exactly which page was selected by the user (a or b or c or d or e?). somebody told me create virtual urls so that a unique entry can be created for each of the pages.

    Can somebody explain me how can i create virtual url? I dont want to change my website code else the entire website will need to be changed.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    So, optionselect.js p is accessed via the POST method when you select the option and click GO? You could pass the option as a parameter to differentiate.

    Re. virtual paths/URLs. You'll have to set them up using your web server software.

    Comment

    Working...