Java, moving from desktop applications to web applications
I'm going to write my first Java - based web application, and I'm a little lost on how to start
First of all, I want a web application to be exactly the same as a desktop application. There is no hacker idea of embedding a web browser into a desktop application, because it does not allow easy desktop changes without affecting the web app, and vice versa
Now, my question
>Now, I have a bunch of POJOs that communicate with a class. Now, I use the flat file as the "database". Of course, in production, I will use the legal database, just change a single class Is that a good idea? Can I switch from POJO to web application? > Should I use frames? I hope to write this application soon and see that all the business logic is there. I just need to wrap it so that it can be used. Therefore, I don't want to spend too much time learning, such as spring (which AFAIK is big), but I don't want to continue to reinvent the wheel in my application I can always use JSPS and scriptlets... > if you are positive about the above, which framework do you recommend? Please note that I want a framework that I can start using for 3-4 weeks. > Do I have to use my POJO from scratch? Their LOC is more than 30K, if so, I will hesitate
Solution
You should definitely use a framework, or sooner or later you will eventually write your own framework
If you use maven, just enter MVN archetype: generate, which will provide you with a huge list of frames for you to choose from. It will set up all scaffolds for you, so that you can use some frames until you find a valid frame for you
Spring is well documented and easy to use Don't be delayed by the document page! You can use JPA to store content in a database You (theoretically) should be able to annotate your existing POJO to represent primary keys, etc. it should work properly If life is easier, you can also use JSP in spring