This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a Java-application with Wicket used for the front-end, where the user can log in through the start page.
Now that start page is going to be replaced by a wordpress page, and you should be able to log onto the java application via the wordpress page.
I have very limited experience in this type of thing, but my thought was to POST the loginname and password from the wordpress page, and handle those parameters with a service.
I did this as follows:
The mock wordpress-start page , using a simple HTML page to send the POST:
Added the bean to my applicationContext-services:
When I check localhost/api it shows:
When I run the java application, and go into the mock login-form and submit username and password, I'm shown a blank page and receive the following warning message in the console:
This is my question: How do I make the CONNECTION between the html page and the java page? I'm in no way sure that the way I'm doing it right now is the best way, or even possible ...
I'd be very thankful for any help!