Issue
I have a html file which have a simple form and 3buttons. And JavaScript and jQuery file which have functions counting id,node,attributes in html.
I want to count id,node,attributes by java too and meke a server side with jsp!! Is this files right to design? Action.java, findAction.java frontcontroller.java, find.jsp
What keywords can I googling about this?
Solution
This is a very broad question which are generally not well accepted on SO. I will answer your question in a very unformal matter with the hopes of making it more understandable.
- Clientside is what the user sees, it usually consist of HTML, CSS and JavaScript.
- Serverside in the context of web applications an archetypical backend is usually a program deployed on a remote server that takes requests from the client and delivers data that is not appropriate to include in the web application.
You want to build a program with some buttons that executes some logic without storing any permanent data. That means you do not need to set up a database for your needs.
There is various approaches to setting up your serverside with Java. I would suggest to learn about servlets and/or a framework called Spring. These are both technologies used to build the bridge from clientside to serverside. Here you will be able to count nodes and evaluate what the user has entered.
If you are uncertain about how to structure your program, you can look up a very popular architectural pattern called MVC.
Answered By - Jonas Grønbek
Answer Checked By - David Marino (JavaFixing Volunteer)