What do you want to do with a JTree in a JSP? A JTree is a client-side Swing GUI component, used in a Frame or Window. A JSP is a server-side specification of how to generate a web page. I find it hard to imagine how you might use one with the other; can you give more details of what you are trying to achieve, maybe we can find another way for you to do it.