You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by gd...@cmhc-schl.gc.ca on 2004/05/25 19:13:29 UTC
Submit Design Question
Hi,
I have an application that permits a user to view and update Contact
information.
/app/Contact (gets data from the DB) --> posts to --> /app/ContactSubmit
(updates the data after validation)
I would like to ensure that the application is solid and executes smoothly
(doesn't eveyone!). ;>
Question 1:
-----------------
Is the above process a valid one?
Or should the GET and POST be done with the same URI such as
(/app/Contact).
Question 2:
----------------
I would like to prevent any processing or errors if someone enters the
/app/ContactSubmit URI in a browser address.
One way to do so is the check the HTTP request for a GET in the Action
class... and if found show an error page...
Any other suggestions?
TIA,
Glenn.