How can i read html anchor in java servlet?

后端 未结 3 1019
失恋的感觉
失恋的感觉 2020-12-11 20:30

I need to get all parameters from the request including what comes after \"#\". example: request: http://myserver/m#q=abc I need my server to get all parameters after \"#\"

3条回答
  •  星月不相逢
    2020-12-11 21:30

    You can't do this. The URI spec says:

    A reference to a particular part of a document may, including the fragment identifier, look like

    http://www.myu.edu/org/admin/people#andy
    

    in which case the string "#andy" is not sent to the server, but is retained by the client and used when the whole object had been retrieved.

提交回复
热议问题