File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Handling a POST from a Wordpress-page to a Java page with Wicket as frontend. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Handling a POST from a Wordpress-page to a Java page with Wicket as frontend. " Watch "Handling a POST from a Wordpress-page to a Java page with Wicket as frontend. " New topic
Author

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

Emil Emotion
Greenhorn

Joined: Dec 09, 2010
Posts: 1
Hi!

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!

Regards,
Emil Emotion
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling a POST from a Wordpress-page to a Java page with Wicket as frontend.