using java on the net

im an absolute noob when it comes to programming so i was wondering about a few things. if anyone can give a quick, simple response and references that would be really helpful.

i have a project that needs to:

1. take a bunch of txt files and store each line of each file in different arrays/vectors.

2. randomly generate a given number of lines and display them.

3. take this program and put it on the internet.

the main problems ive been having are:

1. how do i take a program i've written in say, eclipse, and make it operate on the web?

2. one of my txt files contains chinese characters, how do i generate this so it displays properly on the webpage?

sorry for the long post but i've searched all over the web and im not sure what to do. thanks.

[806 byte] By [lulu8585a] at [2007-10-2 4:45:25]
# 1

You describe a project that, for a beginner, is complex. You'll need to learn quite a few things to do what you describe, and these forums are not designed for teaching. I don't want to discourage you, but that's reality.

I recommend you spend some time exploring the various tutorials that Sun has:

http://java.sun.com/learning/tutorial/index.html

ChuckBinga at 2007-7-16 0:50:17 > top of Java-index,Java Essentials,New To Java...
# 2
ive done some java but i thought this would be a lot simpler than it probably is. ive got the txt files saved to arrays already so the big problem im having is how i can display this program on a webpage? sorry to post in the wrong forum.
lulu8585a at 2007-7-16 0:50:18 > top of Java-index,Java Essentials,New To Java...
# 3
> im an absolute noob when it comes to programming so i> was wondering about a few things. You should remain a noob. It suits you fine.
Master_Consultanta at 2007-7-16 0:50:18 > top of Java-index,Java Essentials,New To Java...
# 4
thanks for the help M_C
lulu8585a at 2007-7-16 0:50:18 > top of Java-index,Java Essentials,New To Java...
# 5

not sure what the requirement are regarding the files...

but if you just need to read them and have it run using Java on the web, you can use an Applet or JApplet and embedded it in a html page and have it read the files and work with the data like display it...

a note though, Applets can read file using URL name not File names and can only read from the host that the Applet code base resides...

other possibilities include using Servlets and/or JSP... tough is more involved... :-P

for more on Applets... check this link out... http://java.sun.com/docs/books/tutorial/applet/index.html

hope this helps... :-)

- MaxxDmg...

- " He who never sleeps... "

MaxxDmga at 2007-7-16 0:50:18 > top of Java-index,Java Essentials,New To Java...