|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
||||
|
||||
|
Quote:
I think XML is going to be your best bet, really. |
|
#7
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Java / JSP advice |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|