Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling a POST from a Wordpress-page to a Java page with Wicket as frontend.

Emil Emotion
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My problem is as follows:

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 service:

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!

Emil Emotion
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic