Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

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 September 10th, 2003, 07:00 PM
djrowe djrowe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 djrowe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Java / JSP advice

Hi, I'm writing a small Java / JSP client-server webapp and need some help about the best way to generate the dynamic web content. The app, a basic Student Info. System, lets the student login via a webpage and the resultant Info page is displayed with their data. I have written a server class that loads the student data into a vector of student objects, and have also written a client-connection class that can access this data. Whats the easiest way to load this information back into a JSP page ? Some advice would be appreciated.

Reply With Quote
  #2  
Old September 10th, 2003, 08:03 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
Why not write the data to a SQL database? That way, you can always access the information - either directly from Java or from JSP.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #3  
Old September 10th, 2003, 08:12 PM
djrowe djrowe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 djrowe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to keep it as simple as possible. I have no experience with JDBC and as it's being submitted as a uni project, installation also needs to be kept simple.

Reply With Quote
  #4  
Old September 11th, 2003, 02:46 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If you cannot use a database, a XML-file or files might be an alternative to storing data
__________________
Now is the winter of our discontent made glorious summer by this son of York.

Reply With Quote
  #5  
Old September 11th, 2003, 02:55 AM
djrowe djrowe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 djrowe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The data is initially held in a text file(s), as an alternative to a db, and to use a truly object-oriented approach the data needs to be stored within an associated object. Can't this be done using Java ? With respect, I'm not looking for an alternative method of implementing this, I just want the solution for the current setup.
Thanks.

Reply With Quote
  #6  
Old September 15th, 2003, 08:31 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
Quote:
Originally posted by djrowe
The data is initially held in a text file(s), as an alternative to a db, and to use a truly object-oriented approach the data needs to be stored within an associated object. Can't this be done using Java ? With respect, I'm not looking for an alternative method of implementing this, I just want the solution for the current setup.
Thanks.


I think XML is going to be your best bet, really.

Reply With Quote
  #7  
Old September 15th, 2003, 08:39 PM
djrowe djrowe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 djrowe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

Thanks but I think I've found the solution using Java Beans. I can make an request to the server, create a bean containing the resultant data and then access that bean from the JSP page.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Java / JSP advice


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 5 hosted by Hostway