i'm developing app generates url number of subscribers. has same content. example web page image in it.
the url pattern can http://host:xxxx/foo/randomnumbers i'm planning have 7 random numbers. won't repeat each subscribers.
i'm using java springmvc one. hope can me i'm stuck generating urls same content.
thanks! :)
generate url way have static aspects:
e.g.
string staticpart = "http://www.yoursite.com/foo/" //randomly generate integer number , store in variable (e.g. rannum) string finalurl = staticpart + integer.tostring(rannum)
that way user gets randomly generated url.
below method accessing randomly generated url:
@requestmapping("/foo/{id}") public modelandview returnview(@pathvariable int id)
i on top of store randomly generated url user , in returnview method check if legitimate.
content doesn't change way url , made unique user.
is going meet requirement?
Comments
Post a Comment