Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2003, 08:27 AM
jcarlos jcarlos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 10 jcarlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 16 sec
Reputation Power: 0
Save information of session in txt file

I want to save the session content
(cart shopping information: items, qty, etc.)
in a txt file.
I want to do it with a servlet. How can do it?

Reply With Quote
  #2  
Old June 2nd, 2003, 09:02 AM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
You'd be saving this text file on the server, is that what you want? And in what format do you want to save this info? Human readable or as something the jvm can make back into objects? What code do you have so far?

Reply With Quote
  #3  
Old June 2nd, 2003, 09:58 AM
jcarlos jcarlos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 10 jcarlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 16 sec
Reputation Power: 0
You'd be saving this text file on the server, is that what you want? And in what format do you want to save this info? Human readable or as something the jvm can make back into objects? What code do you have so far?

I want a txt file. For axample:

Order: 12000
Name: JC
Article: Book
Price: 12E

Reply With Quote
  #4  
Old June 2nd, 2003, 10:49 AM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
I'm sorry, you did not answer all of my questions. Do you want this file saved on the server then? What code do you have so far, anything? or were you wanting someone to show you how to do it from start to finish?

Reply With Quote
  #5  
Old June 2nd, 2003, 11:19 AM
jcarlos jcarlos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 10 jcarlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 16 sec
Reputation Power: 0
Do you want this file saved on the server then?
- Yes

The content of the file have to be the content of the cart.

Reply With Quote
  #6  
Old June 2nd, 2003, 12:42 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
You need to create a file using a stream.

FileStream

Streams

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Save information of session in txt file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT