Spring 4 @RequestMapping handling REST URL with special characters -


how spring 4 handle rest url special character, such #?

for example : http://localhost:8080/#/members/browse?id=1234

the following code seems not working.

because spring discards after (including) #, , returns response of http://localhost:8080

could give help?

@requestmapping(value = "/#/members/browse", method = requestmethod.get, produces = "application/json") public string findmembers(@requestparam(value="id", required=false) {    // code } 

this expected behavior. it's fragment identifier , it's not meant used routing requests on server side.

in browser, clicking on anchor link #/members/browse?id=5678 in same page looks anchor within page , not send request server.

i think you're using javascript framework such ember or angular, provide routing components route events on client side , render views. see the router documentation ember.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -