PDA

View Full Version : Can you use HttpInvoker to return a web page?



darrell_2399
Jun 22nd, 2005, 08:51 PM
Our application is a rich swing client that is using spring remoting. We want to implement a reporting system where the report is generated as HTML from the server and then displayed in a preview component using a JEditorPane.

The JEditorPane can take a java.net.URL object or you can setText() with html.

Is there a way to use spring's HttpInvoker to retrieve the webpage?

Right now we are using Basic Authentication with the remoting but I'd like to use the URL object with the JEditorPane in combination with spring.

Does anyone have any ideas or suggestions?

Thanks,

Darrell

Alef Arendsen
Jun 26th, 2005, 02:43 PM
I think it's better to NOT use the HttpInvoker to display HTML on the client. You're better off using the MVC framework for this I guess. The HttpInvoker is meant to serve as RPC mechanism, not to display HTML stuff...


rgds,
alef