Results 1 to 5 of 5
  1. #1
    providence is offline Member
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    20
    Rep Power
    0

    Default Running on a Server

    So,
    I am trying to write a program that runs on my desktop at home and listens to a port. When I send data over the internet to that port on my home computer the program appends it to an html document that I can access by searching my url. The only issue is I am totally confused as to how to run this program so that I can connect and send it information... How do I go about something like this?
    I have downloaded tomcat, as I thought perhaps I could make a data entry page hosted on the desktop that sends data to an html generating servlet. Does that make sense? I've not done any web development before, so any help will be appreciated.

  2. #2
    baloda is offline Member
    Join Date
    Nov 2010
    Location
    New Delhi
    Posts
    50
    Rep Power
    0

    Default

    u can put that code in jsp page so whenever u send request for that page(jsp) then server will send u the updated web page.
    Last edited by baloda; 01-31-2011 at 05:49 AM.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    Yeah, JSP makes it easy since you can pass parameters and render html with it. Netbeans makes it easy!

  4. #4
    providence is offline Member
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    20
    Rep Power
    0

    Default

    Perfect, I'll use a JSP, thanks for the help!

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    No problem. I suggest making a simple 'Java Web Application' in netbeans, which will provide you with a sample JSP page and allow you to make class files. If you download the full java version of netbeans, it comes with glassfish server which works pretty well from within netbeans - though for actual deployment, I really like Jetty. Its very lightweight, and rock solid. Good Luck!

Similar Threads

  1. How to test if server is running Windows 7?
    By space889 in forum Advanced Java
    Replies: 18
    Last Post: 07-21-2010, 01:37 AM
  2. how to keep server running
    By Harris68 in forum Networking
    Replies: 4
    Last Post: 12-22-2009, 10:11 AM
  3. how to run web server w/out running at eclipse?
    By anthrax in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-13-2009, 09:06 AM
  4. rmi when running server and client
    By anukatoch in forum Networking
    Replies: 1
    Last Post: 01-28-2009, 12:03 PM
  5. running multiple server
    By amitnayak1 in forum Advanced Java
    Replies: 3
    Last Post: 06-05-2008, 04:14 AM

Posting Permissions

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