JEditorPane and Java Server Pages

Sorry, i m a newbie on client-server applications. I was just wondering, will the JEditorPane have problem rendering html pages produced by JSP? How about PHP? I know it is only suppose to work with basic HTML pages. But I am hoping to get it to display database results returned from an on the fly query. Many thanks on any advice you can give.

Jeev

[363 byte] By [jeevandrasa] at [2007-11-27 11:19:03]
# 1

That's impossible to answer. All you get is HTML. You have no idea what created the HTML, so that can't be a factor in whether you can deal with it or not.

DrClapa at 2007-7-29 14:34:33 > top of Java-index,Java Essentials,Java Programming...
# 2

Sorry, could you elaborate on this?

What I was thinking is that say for example I would like to display the result of a database search onto a html table. The page loaded from the server could perhaps build an html table and use jsp tags to call java functions to load values onto the table. The net outcome from the server would essentially be a html table populated with values. Now since the page is not of type html but of type jsp, would JEditorPane have any trouble rendering it if i call its setPage() method and pass the .jsp file as its argument ? The client side, which is essentially JEditorPane would just see this populated html table and will have no problem with the fact that jsp had something to do with generating it, no? Thanks again for your advice.

Jeev

jeevandrasa at 2007-7-29 14:34:33 > top of Java-index,Java Essentials,Java Programming...
# 3

JSPs generate HTML.

Why do you need elaboration on this point? It's all you need to know. Don't try to make things more complicated than they are. It doesn't matter what the URL ends in. It doesn't matter what's on the server generating the HTML. All you need to know is that you are getting HTML.

DrClapa at 2007-7-29 14:34:33 > top of Java-index,Java Essentials,Java Programming...
# 4

> JSPs generate HTML.

>

> Why do you need elaboration on this point? It's all

> you need to know. Don't try to make things more

> complicated than they are. It doesn't matter what the

> URL ends in. It doesn't matter what's on the server

> generating the HTML. All you need to know is that you

> are getting HTML.

Thanks DrClap,

That was what I needed to confirm. Like I said, I m very new to client server web development. So you have been of great help. Thanks again.

Jeev

jeevandrasa at 2007-7-29 14:34:33 > top of Java-index,Java Essentials,Java Programming...