File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes hi(can i store data in files) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "hi(can i store data in files)" Watch "hi(can i store data in files)" New topic

hi(can i store data in files)

pradeep arum
Ranch Hand

Joined: Oct 01, 2003
Posts: 130
I have very minimum knowledge of java script....but I am a SCJP 1.4
my school server do not support data bases ....but I still want to maintain a file that gets appended with data that is entered online through a html file with javascript code in it ,can any body guide me through this process.That would be appreciated .

Failure is not when you fall down; its only when you fail to get up again.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Welcome to Javaranch pradeep -
Since what you're after is javascript, try posting your question here, this is the Java Server Pages (JSP) forum.

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

I think this would be better done with JSPs/servlets than javascript. The JSP/servlet has access to the files on the server and can write to them just like a regular java program.
Ideally, you would have a servlet write to the data file and then forward to a JSP to redisplay the page.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Indeed u better use JSPs or Servlets to do such kind of job... Since JavaScript is best used for client-side handling and JSPs/Servlets for server-side handling...

Co-author of SCMAD Exam Guide, Author of JMADPlus
I agree. Here's the link:
subject: hi(can i store data in files)
It's not a secret anymore!