How can i read html anchor in java servlet?

后端 未结 3 1013
失恋的感觉
失恋的感觉 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:24

    Have in mind that anchors are a client-side concept so they shouldn't be used in the server side. Clients don't send the anchor data to the server, so you can't do this. Better use get parameters.

提交回复
热议问题