Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Web Applications

Options
  • 30-04-2003 12:50pm
    #1
    Registered Users Posts: 1,455 ✭✭✭


    I'm doing a timetabling system project in college and I need to make it accessible over the web. Before when workin on a similar project I used Java servlets but these were very awkward.

    I want to write the project in Java.Whats the best way of doing this.Applets or something else.

    Thanks
    TImmy


Comments

  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    Hey,

    You're right Java servlets are very awkward for displaying HTML, that's why Sun came up with JavaServer Pages (JSP)
    Basically it's HTML with Java mixed in. If you know Java and Servlets, which you do, you'll be flying.
    A JSP is actually converted into a servlet and compiled automatically.

    This doesn't mean you should go lobbing all your Java code into JSPs, you should try to keep as little code as possible in your JSPs. This can be done by using JSP tags, which are like functional extensions to HTML, or ColdFusion tags, or it can be done by using a layer of Java Beans between the front-end and your timetable application.

    This doesn't mean you should scrap Servlets completely but IMHO you can. Often a mix of Servlets (for performing actions) and JSPs (for displaying the pages) is employed, it's up to yourself really. Again, a JSP is translated into a servlet anyway so it's basically the same thing.

    You should probably stay away from Applets, you're relying on the clients to have Java installed on their machines.

    Take a look at:
    http://www.onjava.com
    http://www.thejspbook.com
    http://www.jspin.com

    HTH, all the best


Advertisement