When developing a Web Application in Java, launching in Tomcat, I need to be able to create (dynamically) a new static address (link,URL) in the server that will be used to view the information a new item, lets call it "new_item_001", which have been just created by one user.
Say I want to create a new address
http://ift.tt/1UmMMcN
which can be used to render a view of the contents of "new_item_001".
The question is, which is the best approach to do this?
Should I dynamically create a new servlet class for this view?
Should I dynamically create the folder "items" and one html file "new_item_001" for this item inside of it?
Should I edit the server address mapping rules to create this static address and map it to a central servlet which somehow knows which item to display?
I understand the question is ill posed, and that I am far from even understanding the issue, so I would like some guidelines on what to look for.
Aucun commentaire:
Enregistrer un commentaire