I work on javaEE for web development. I want that whenever user tries to access any resource let us say abc by entering the url as:
www.example.com/abc
The program on server should be able to fetch the string after '/' i.e. 'abc' so that I could handle it. I know about error pages using struts and other frameworks but unable to implement this idea. Since I don't want to show any error page but want to handle the request as I wish. e.g. I should be able to redirect the user to the site of the company abc.
NOTE: The resource abc does not exist on my page.
Aucun commentaire:
Enregistrer un commentaire