Results 1 to 1 of 1
- 10-26-2013, 09:13 PM #1
Member
- Join Date
- Oct 2013
- Posts
- 2
- Rep Power
- 0
The best practice to choose the action in servlet.
For example we have one servlet (products). It can create product, delete product, update product.... The right action depends on the URI: example.com/products/UPDATE. So the question what is the best practice to choose the right action. I know about switch (not elegant), command patter (too many classes). What would you advise?
Similar Threads
-
HTTP Status 404 - There is no Action mapped for action name showmainframe...
By vaibhavspawar in forum Advanced JavaReplies: 3Last Post: 08-19-2010, 09:27 AM -
servlet secure loging best practice
By simo_mon in forum Java ServletReplies: 0Last Post: 04-17-2010, 01:47 AM -
Servlet action is not available in struts
By anilonwebs in forum Web FrameworksReplies: 0Last Post: 11-21-2008, 07:20 AM -
HTTP Status 404 - Servlet action is not available---Error
By sireesha in forum Web FrameworksReplies: 0Last Post: 04-18-2008, 08:25 PM -
HTTP Status 404 - Servlet action is not available
By onceuponatime in forum Java ServletReplies: 1Last Post: 12-11-2007, 05:29 PM
Bookmarks