Results 1 to 6 of 6
  1. #1
    Calab's Avatar
    Calab is offline Member
    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Default Is server side java really that complicated?

    I would like to learn java, but most of the code that I write runs on a web server. I know that java can run on the server instead of the client but it really looks complicated to do so.

    The "Hello World" example for most languages is pretty simple, just a few lines of code. When I try and find a server side java example it seems VERY complicated. See here for an example: Server Side Tutorial | Codenvy Docs

    I'm not new to coding... I've used perl, html, bash, visual basic, dBase (yes, I'm old), 6809 assembler, etc...

    Am I missing something? Even setting up an IDE is a daunting task, not to mention adding any kind of framework.

    Should I just stick with using PHP, Python, etc. for my web based apps?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Is server side java really that complicated?

    That example's a web service using some framework that's not part of JEE (I've not heard of everrest before, except for double glazing).

    You should be looking into Servlets and JSP. Start with the former and then after you've got a couple of simple things working (like a HelloWorld) add in JSPs.

    It's not that complex.
    The web.xml is possibly the only odd thing you need to get your head around.

    Just remember, the client should submit to a Servlet, which handles any processing, gathers together whatever data is needed, and then forwards it all to the JSP, whose job is simply to display what it's given.

    You will see examples where people do the processing inside a JSP. That's is wrong. A very bad habit to get into, and a sod to debug.

    Of course if you're happy in PHP etc then there's no great need for you to learn Java.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Is server side java really that complicated?

    "server side java" is too broad. It can also be a JAX-RS based RESTful webservice. Those are actually magnificently easy to setup, build and maintain.

    But they're still dead hard if you don't understand concurrency and multithreading, networking, the internet, HTTP (not the same), core Java, security, etc. etc.

    My point being: things are difficult when you're inexperienced. Technology does not dictate what as easy and what is not. Only people with great senses of fanboyism try and make you believe that.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    Calab's Avatar
    Calab is offline Member
    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Default Re: Is server side java really that complicated?

    Thanks for the information. It gives me a place to start.

    Concurrency, multithreading, networking, the internet, etc... More stuff to pick up as I go along. It seems that no matter what you want to do, you need to learn something else first.

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Is server side java really that complicated?

    When I wanted to learn about JSP and using containers I went to
    Free Online Version of Core Servlets and JavaServer Pages (Second Edition) in PDF.
    The online book was pretty good. My IDE of choice is Eclipse and I use Tomcat as my
    servlet container but there are others. I can't speak for other IDE's but Eclipse makes
    it pretty easy to interact with a local server (which is on my laptop along with my IDE).

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    15

    Default Re: Is server side java really that complicated?

    Shameless-self promotion: I run a little tutorial/hosting website called Static Void Games. It uses "server side Java", and is completely open source. If you want to check out a "real" project's source, it's available on GitHub here: https://github.com/KevinWorkman/StaticVoidGames

    And here is a guide on how to get it up and running: https://github.com/KevinWorkman/Stat...p-with-Eclipse

    This is probably overkill for what you want to be doing (like Tolls said, start with basic JSP pages), but it might be interesting to look at.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Arduino GSM Shield & java server-side
    By foxmain in forum CLDC and MIDP
    Replies: 0
    Last Post: 02-28-2014, 01:02 AM
  2. Replies: 0
    Last Post: 10-06-2013, 04:30 PM
  3. Client-side or server-side XML parsing?
    By noodle_variation_187-X in forum JavaServer Pages (JSP) and JSTL
    Replies: 11
    Last Post: 05-31-2012, 10:06 AM
  4. Replies: 2
    Last Post: 11-16-2011, 10:28 PM
  5. updating server side file using java bean
    By tskarthic in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-30-2009, 03:53 PM

Posting Permissions

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