apostrophe in returned value causing error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abilashnn
    New Member
    • Sep 2006
    • 12

    apostrophe in returned value causing error

    Dear All,

    In one of my appln, I have one pop up window which will select one name from the list and return to calling jsp page.
    Now one name eg: Kevin O' Connor , having apostrophe.
    So if we clicked on that name from the displayed list in pop up window, it shows an error since delimitting that returning arguments by apostrophe. So if any one of u know how to escape that apostrophe from the string....?
    Please reply me.....

    Abilash
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by abilashnn
    Dear All,

    In one of my appln, I have one pop up window which will select one name from the list and return to calling jsp page.
    Now one name eg: Kevin O' Connor , having apostrophe.
    So if we clicked on that name from the displayed list in pop up window, it shows an error since delimitting that returning arguments by apostrophe. So if any one of u know how to escape that apostrophe from the string....?
    Please reply me.....

    Abilash
    what do you mean by
    Code:
    since delimitting that returning arguments by apostrophe
    ?

    Are you splitting that input using ' as delimiter? What kind of a pop up are you using?

    Comment

    • abilashnn
      New Member
      • Sep 2006
      • 12

      #3
      Originally posted by r035198x
      what do you mean by
      Code:
      since delimitting that returning arguments by apostrophe
      ?

      Are you splitting that input using ' as delimiter? What kind of a pop up are you using?
      Ya ,its not returning to the jsp page.i cant get your ouestion abt pop up window?

      Comment

      • abilashnn
        New Member
        • Sep 2006
        • 12

        #4
        Originally posted by abilashnn
        Ya ,its not returning to the jsp page.i cant get your ouestion abt pop up window?
        Eg: userPreferences .do?name=O’hong

        Comment

        • abilashnn
          New Member
          • Sep 2006
          • 12

          #5
          Originally posted by abilashnn
          Eg: userPreferences .do?name=O’hong
          Now showing this error msg :

          " Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden. This web site does not allow Urls which might include embedded HTML tags. "

          Abilash

          Comment

          • abilashnn
            New Member
            • Sep 2006
            • 12

            #6
            I resolved that problem…. but now problemis inside url….
            Inside url query string, this name with apostrophe makes problem…
            Because the security filter on the Web Server won't even allow the escaped chars
            I am not much aware of pagination done in struts, so now checking how this url get automatically created when Next button is pressed
            Using <display:tabl e> tag…..

            please help me soon...

            Comment

            • mariarajesh
              New Member
              • May 2007
              • 1

              #7
              Hi Abilash,
              If you had resolved this , please pass me those information to me. I'm also facing the same issue in my application.
              Help me

              Maria Rajesh

              Comment

              • deepsrajk
                New Member
                • Sep 2007
                • 1

                #8
                hi
                even i am facing this problem Plz reply

                Comment

                Working...