I want to realize the following scenario:
The frontend is based on HTML5 / CSS3 / JavaScript (with a JavaScript framework like ExtJS or jQuery). I have full HTML pages with forms, buttons, text fields, which have submit buttons which should send the data to the webserver. On the other hand I also have a website in this web application which get/send the data via a JSON webservice.
The backend should be realized with Java EE (MySQL database, Hibernate as ORM, …). But which basic technology should I use? JavaServer Faces? Or JavaServer Pages?
What is the best method to handle JSON and HTTP GET/POST requests?
Thank you in advance & Best Regards.
Be careful not to duplicate code. Whatever solution you choose, move the code into services, and consume them from the json and regular response renderers.