Answer the question
In order to leave comments, you need to log in
Server in Java for Wordpress?
Hello, for learning purposes, I want to make a server in Java that receives requests from a form on the site, processes and gives a specific response, which is visible on the th site (details are omitted, they are not necessary)
I write and do this through Tomcat with servlets and JSP pages . You need to do this quite quickly (in a month), so I didn’t look in the direction of spring or some other frameworks, because it will take a lot of time to study them.
Now I had an idea to make a normal site for my server, but with JSP hands it’s something that's a pretty tedious job. Question: is it possible to make the site itself be on a WordPress template, but communicate with the server in Java?
I found the Rest API on the internet, but I'm new to programming and not very sure what is suitable for Java. How then will it interact with servlets? Or is it not necessary and does it have its own methods for processing Requests? I would be very grateful if someone could guide me a little
PS I didn’t mean to reuse VP templates, I meant to rewrite the server so that it would accept requests from the VP site as regular requests and give a response that would simply be shown on site
Answer the question
In order to leave comments, you need to log in
I recommend looking at three things apache wicket https://wicket.apache.org/, sparkjava.com and jooby.org. Especially for the last one!
WordPress templates will not be reused in Java in practice.
You can make a website on WordPress and write the necessary WordPress extensions in which to interact with the server in Java.
Hello!
I myself am currently working on a small project on Spring Boot + WordPress REST API.
If you need a website quickly in Java, then Spring Boot is the best choice. In a month with the study of Spring Boot, it is really possible to create a website.
https://www.youtube.com/watch?v=jH17YkBTpI4&list=P...
As for the VI, the following libraries will help you
https://github.com/Afrozaar/wp-api-v2-client-java
https://github.com/Afrozaar/wp-api-v2-client-java-...
Or you can even create a site on the VP, and add articles from Java. But, reusing VP templates will not work. For Spring Boot, you can connect any of the template engines. For example, thymeleaf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question