This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "hi(can i store data in files)" Watch "hi(can i store data in files)" New topic
Author

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 .
thanks
pradeep


SCJP1.4,SCBCD
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30353
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi(can i store data in files)