Results 1 to 2 of 2

Thread: Web dev noob question regarding architecture

  1. #1
    Join Date
    Mar 2014

    Web dev noob question regarding architecture

    Hello all,

    I have spent most of my career (18yrs+) as a C++/Java system programmer (not a novice developer) and have just recently decided to get into web development. I have dabbled with HTML5, Javascript, JSP, PHP, etc. ... and have created a client/server app using a mixture of JSP and Javascript. It has Java servlets serving data forward from the server to the client, after being received based on input from other clients. It's not a chat engine. I wanted to create a near realtime inventory updating application and I have PoC.

    My question, is whether or not there's a better way of developing the front end (server was easy for me) to create automatic UI updates than using JSP. Either I am doing JSP wrong (it feels super messy with all that inline code), or I should be using AJAX, Mojo, or something else.

    What I would really like is to use the web dev capabilities of Javascript and use JSP to serve up the data in near real time.

    I have spent a great deal of time building this out and so I don't want to just rewrite it all if the tech won't do for me what I want.

    Thank you.


  2. #2
    Join Date
    Aug 2004
    I think you probably want to look into using AJAX, which likely means using JQuery to help deal with all the nitty-gritty, cross-browser compatibility stuff. Then you can write all the presentation layer stuff in HTML/JavaScript, and just query the server for data elements, typically returned to the client as JSON objects.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center