01:17 am - monkeyfruit - Don't you just LOVE coursework ='( I'm doing a big project involving servlets & JSP technology. A brief description of the system I had to design & implement would be an online booking system for students to book appointments with a lecturer, on the dates he previously specified. Here's the introduction I wrote:This project should implement a tool which allows students to book meetings with a lecturer. The lecturer should be able to specify for a given week in a year, in a text file, the days and times during which he is willing to meet students. There should be a web form to let him perform this easily.Students should be able to view the available time slots on a web page, via a JSP-enhanced page that extracts the data from a data source. They should be able to select a 15-minute slot with the lecturer from those available. The meeting minder will store their selection. All the appointments should be saved in vCalendar format (see http://www.imc.org/pdi/vcal-10.txt) in a single location so that the lecturer can import them into his diary program.The format of each appointment should look something like this:BEGIN:VCALENDARVERSION:1.0PRODID:PalmDesktop GeneratedBEGIN:VEVENTSUMMARY:Crime meeting with the Think Crime Associate Programme Manager, Dr Carmine Ruggiero at 9.30am on Friday, 13 December. This meeting will now take place in the Staff Club, Committee Room and not the seminar room in R628 as previously advised.DTSTART:20021213T093000ZDTEND:20021213T103000ZEND:VEVENTEND:VCALENDARBasically I've successfully implemented most of the classes required to do these jobs, BUT (and there always is a bluddy But =( ) I haven't really started putting them into JSP formats, or linking the class files to servlets. I have had no prior experience in working with servlets & JSPs, and I've been studying a couple of books & some great sites on java & web dev... Yet I'm terribly hesitant about applying it to my system. - I've read up on JSPs, servlets, tag libraries, Java Beans, etc., but is it possible for me to NOT involve the use of Java Beans? (I have a feeling the ans to this is Yes, but I could be wrong =/)- I was thinking of dumping some of my file handling code into scriplet form in JSPs. The codes are relatively heavy, compared to the ones I've seen included in JSPs in examples, because they are able to create hundreds of text files with differing contents at one time. Is there anything I should know about just how much of the processing load I should place on JSPs, and possibly, WHEN to do it?- If the answer to the 2nd question says I can place as much of the processing load as I want on the JSPs, then when is the right time to use servlets?Sorry if I phrased anything unprofessionally here =/ I really could use some good advice, coz my supervisor is away most days, and he doesn't know anything about servlets or JSPs anyway =(If you require any info about how I've gone about implementing the system, you're welcome to ask =) It might ease the advice-giving process =)
08:39 am - grrlpower - RMI Ugh, so I'm working on my first RMI project and it's giving me some trouble... wen I try to compile my client-side menu I get the following error:Lab2.java:265: Can't make static reference to method Item findItem(java.io.BufferedReader, Inventory) in class Lab2. temp = findItem(read, invent);where I reference the findItem method. The thing is, the method isn't static... I am guessing this may have to do with serializing the Item, but I'm not sure... The method itself is:public Item findItem(BufferedReader read, Inventory invent) throws IOException, RemoteException { try { String input = promptString(read, "Enter the UPC code of the item you want"); return invent.findItem(input); } catch (NoSuchItemException nsi) { System.out.println("No Such Item"); } return null; } any thoughts? if anyone has any other ideas, let me know....