Hi, after go through the URL and aritcel regarding sturts, I have some doubts and question. beofre that, do share me your attention on listening to my explanation on Sturts.
1st version (Dummy version)
====================
1. each time user (browser) will call the controller (Action Servlet).
2. Then in the ActionServlet, it will determine or delegates the responsibilities to JSP/Classes/Form based on the sequence.
3. The sequencing is set in the web.xml program.
4. The classes is my own customize java program on achieve something or control or validate something.
5. Display the end-result to user using JSP with JSTL tag.
6. One cycle end. If user want to have another round, thwe whole cycle will repeat again.
2nd version (more technical)
====================
1. Browser willc all the servlet. based on the web,xml program, it'll map the location of the ActionServlet in using XML tag.
2. After that ActionServlet will delegate the responsibilities using struts-config.xml to map some of the Action Class (Java class), JSP. In sturts-config.xml, it's also shown the sequence of the loading program (JSP/JavaClass).
3. In the Action Class, I can have my own custom method or custome code to perfom my own custom logic.
4. JSP view is using the JSTL concepts plus the session functionalities.
Question:
1. Do i need to code the struts-config.xml manually? Is it exist when I download the struts.jar into my project? This is because my web.xml will come out automatically.
2. What is ActionForm? It's seems that it's esential for me to have this before my JSP page can come out.
3. ActionError. What is this? Is it prebuild by struts or I have code myself.
4. Where should i put the strut-confi,xml is I need to create myown. WEB-INF/lib , or WEB-INF/Classes?
i think overall, I understand this framework will ease my time on creating the program for me. But I don't know which one is inbuild and which one I have to create my own.
Please correct me for the explanation above if there is anything wrong.