output text to hmtl page

Hi allI have a series of strings which have been entered by the user, I need to output this info to a html page, in lines for example - forname, surname, date, score etc.Does anyone know how to do this? Thanks in advance.
[249 byte] By [crashEvansa] at [2007-11-27 7:03:28]
# 1
Sure. the question is: do we know what you really want to do? Do you want to embed that text into an existing file? Or are you writing a new one? Is it supposed to show on a webserver?
CeciNEstPasUnProgrammeura at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...
# 2

> Hi all

>

> I have a series of strings which have been entered by

> the user, I need to output this info to a html page,

> in lines for example - forname, surname, date, score

> etc.

>

> Does anyone know how to do this?

>

> Thanks in advance.

Hi

How are you taking in the params? What kind of structure is your program using? Are you redirecting the user to a html web page or are you just creating a .html file with the specified params? Showing code may also help you get an answer ;-)

ita6cgra at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...
# 3

I have a database, it holds information of a user, my applet interacts with the database to retrieve/write etc. What i want to do is when some1 clicks a button to open a new Internet Explorer page and then output a record from the database. Just like System.out.println(forname + surname + date + score);

I dont know how to open a new IE and then output the info to it.

I dont have any code for this part as I havent written it and I dont think there is any value in posting code to retrieve from database. We can just treat them as strings? String forname, surname etc.

crashEvansa at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...
# 4
Ok we now know you are working with applets I have to admit I am more of a servlet man maybe if you try reposting in the applet forum you may get more responses?Message was edited by: ita6cgr
ita6cgra at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...
# 5

> I have a database, it holds information of a user, my

> applet interacts with the database to retrieve/write

> etc. What i want to do is when some1 clicks a button

> to open a new Internet Explorer page and then output

> a record from the database. Just like

> System.out.println(forname + surname + date +

> score);

>

> I dont know how to open a new IE and then output the

> info to it.

Yeah.

This is not the way this works at all. Are you sure you don't want a Servlet?

cotton.ma at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...
# 6

Applets interacting with databases are bad news. In fact applets are seldom good for much, unless you want a user interface far fancier than a simple input form (I've used them, for example, for graphical input). Applets, in general, aren't allowed to play with anything but the browser window and the http connection they came from. No local files, no sockets. (And, hence, no databases)

What you want is a server (probably tomcat from jakarta.apache.org), servlets to update your database and JSPs to display the records.

malcolmmca at 2007-7-12 18:54:41 > top of Java-index,Java Essentials,Java Programming...