Well I am building a website and I would like to use java for the entire thing. But how do you put HTML into a .class file?
You can display simple html with a JEditorPane.
However, dont do that for a webpage. Search engines won’t be able to index it, people will be annoyed to no end etc etc. Really… dont do that.
Just use proper (valid) xhtml+css.
If you can get someone to host it for you it’s pretty easy to use Java for dynamic web pages, but you’d probably be better off starting with just the static html and going on from there…
I assume you DONT want to write a server.
Which means you should probably lookat writing with either Servlets or Portlets.
Servlets are your answer if you need someone else to host it, Portlets migth be more sutibale if you are running your own machine.
You may want to take a look at JSP.
I will, but my idea is so no one can copy my information.
Then give up now and save yourself some time.
Then why put it on the internet in the first place?
i dunno, but ok thanks for the help