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 Is it possible... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is it possible..." Watch "Is it possible..." New topic
Author

Is it possible...

Yan Yi
Greenhorn

Joined: Dec 03, 2003
Posts: 2
Hi,
Is it possible to write a desktop program in Java to communicate with my weblog?
You know, I want a program which is capable of doing all my weblog things without opening the browser. Thus, I can write any time I want and publish it when online.
In a word, do weblog things in the program instead of in the web pages.
Any ideas?
Thanks.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Sure. The easiest way is probably to drive the existing web interface by sending requests and receieving responses in your software. I usually use httpunit for this. Although billed as a testing tool, it also contains a useful general purpose toolkit for driving web pages and extracting information from the results - just what you need!
You can read some code examples of using httpunit to drive a web application in an article I wrote for the javaRanch journal back in September: here.
Have fun!


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Yan Yi
Greenhorn

Joined: Dec 03, 2003
Posts: 2
Thanks, Frank.
I am learning your article.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible...