• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML and other java info

 
Sean Magee
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there everyone

just wondering if anyone can provide me any info on where i can learn how
java and html work together over the web.

What are the good api's for extracting html data?


Also, how can i get a program to change its code with recompiling itself all the time? I have heard suggestions about property files, but i dont know where to start.

anyone have some helpful info on these subjects or good references?



Thanks everyone,

Sean
[ May 22, 2005: Message edited by: Sean Magee ]
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you want to know about JavaServer Pages. Check these out.

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro.html#wp100465
http://www.coderanch.com/forums/f-50/JSP
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is probably a bad idea to create code that changes itself and needs to be recompiled. For one thing, compiling takes time. If the project is large enough, the amount of time for recompiling can be significant. It would probably be better to use property files or some other scheme where the changing values can be stored. Can you be more specific about what you are trying to accomplish with this idea? I am willing to bet there is a simpler, and more elegent, solution instead of recompiling the code each time something changes.

Layne
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Property files are the way to go. It's never a great idea to hardcode data into a program -- that's what files are for. If you've downloaded the free Java Tutorial from Sun (which I highly recommend doing if you haven't already), there's a tutorial on how to store and retrieve properties. If you've download the SDK, check the API docs, and the Sun free tutorial on J2EE.
 
Sean Magee
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, how can i get a program to change its code with recompiling itself all the time? I have heard suggestions about property files, but i dont know where to start.


I meant to say "without compiling itself all the tinme"
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sean Magee:


I meant to say "without compiling itself all the tinme"


Heh, that makes more sense. It's strange how much difference one word can make.

Do you have a specific example? If so, we can probably help a lot more if we discuss this in the context of the example.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic