Can Java do everything that CGI (PHP, Pearl...) can do?
hi,
can you do everything with java, that you can do with cgi, providing that you have a server? I'm completely new to java, thats why I'd like to know this. Can you do for example a chat? Or a multiplayer game or saving and creating files (in an internet programm)?
And how (in general) does it work to write, lets say a chat. I mean the user uses his browser to go to an the URL where my java programm is. So what happens then (just the veryyyy basics to get an idea of how internet programming with java works).
thanx
I'm pretty sure it can do anything CGI can. I saw it used for forums and chat rooms, as well as logon-based websites and multiplayer games. I wrote a multiplayer card game with player registration, login, chat, multiple playing rooms, and money amounts saved in about a week and a half with some friends.
Java Server Pages are basically like PHP scripts, essentially outputting HTML for a web browser based on some logic, but they can use all the Java classes and language constructs and connect to databases, communicate with server applications, etc.
For an internet application, you usually need to have a server program that runs on a server machine somewhere and client applications or applets that know where to find it and connect to it. Then you can create a socket connection between the client(s) and the server (if you want multiple clients at the same time you need to use a thread for each one on the server). The socket is basically a link between the two programs that you can input and output to using standard input and output streams (use its getInputStream and getOutputStream methods). You have to decide on some sort of protocol for what the messages you send accross mean, and then write appropriate code on the server and client to handle them.
Similar Messages
-
i have just dowloaded the icloud control panel on my PC and i am am able to see everything that has been pushed to icloud from my ipad. However i cannot see my email. i can send from the computer using icloud, but i do not see any mail that is being received by my ipad, which is set up with my mail server. What haven't i checked lol?
turn your ipad off by holding the sleep wake button for 5 seconds and slide to turn off then turn it back on and the apps should be finished and if the apps didnt finish just redownload them
-
When I go to plug in my iPhone 5 to my PC it will charge my phone but it doesn't show up that it's connected to my computer or in iTunes. I have tried just about everything that I can find in the support discussions but nothing has worked. Any other suggestions?
If you have carefully follow ALL of the steps in that article, you are using a USB port directly on your computer and not a USB hub (don't use a front port on a tower or desktop either, as they are an internal hub) and you installed iTunes correctly using an Administrator ID and you have tried disabling your antivirus and firewall then there is no hope of it ever working. Look at the tip again, and go through it carefully, not skipping any steps.
Note, BTW, that an iPhone will not show up on a computer, only in iTunes. If there are photos in the Camera Roll then it will appear in Windows as a digital camera only. -
I can't seem to update my software, every time I do it says that there is a problem and to close everything that is open. Once I close everything it still doesn't work. How do I get it to complete?
Make sure there's enough free space on the startup disk to install software updates...
Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
Freeing Up Hard Disk Space - Mac Guides -
I am a former user of Adobe Photoshop CS3 as a very beginner. I have had no training. I wish to know if the new Creative Cloud will do everything that my Photoshop CS3 did for me. Can you help me?
Please refer to:
Photoshop Help | Photoshop CC / Common Questions
https://helpx.adobe.com/lightroom/faq.html
Photoshop CC is much enhanced than CS3 & you would love the new features too.
Regards
Rajshree -
My old itunes id was an email that no longer can be used, therefore, I can not change the password for that account. Everything that I purchased under that id name will not play. How can I fix this?
I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.
Note: @mac.com and @me.com Apple IDs can not be renamed. If you no longer use the .mac or .me email address be sure to add your valid email address as an additional email address.
From here > http://support.apple.com/kb/HT5622?viewlocale=en_US
If necessary...
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
My HD died on my iMac. I replaced it and lost everything that was on it. I found my source disks from my original purchase for Final Cut Express HD 3.5. I now have Maverick ISO and it will not let me load my software so I can continue my film work. How do I get it too recover it without paying for it again since I paid for it already and have projects in progress that need to be completed?
1) Partition your hard drive or add an external drive and install Snow Leopard (with the Optional Rosetta) into it and then you can dual-boot (System Preferences:Startup Disk) into Snow Leopard and run FCE 3.5 there.
2) Use one of the following methods to install FCE 3.5 into Mavericks:
a) Pacifist: http://www.charlessoft.com/
b) Jeremy Johnstone's Terminal method: http://www.jeremyjohnstone.com/blog/2012-03-11-installing-final-cut-pro-studio-2 -0-on-mac-os-x-10-7-lion.html
Reports on this forum seem to confirm that Final Cut Studio 2 will continue to operate in Mavericks once it is functionally installed, albeit some plug-ins may fail to function. FCE 3.5 is the same generation as FCS2, and presumably will continue to operate in Mavericks, as well. -
How can i put my music back on a new drive so that itunes see's everything that was there before
how can i put my music back on a new drive so that itunes see's everything that was there before
Restore the backup of your library from the old drive?
See Recovering your iTunes library from your iPod or iOS device.
Or HT2519 - Downloading past purchases from the App Store, iBookstore, and iTunes Store
tt2 -
I have a 32gb iphone 5 the wifi signal is bad and the time doesnt work can someone help i did everything thats in my hands and its still not working
Do you experience the same issue on other WiFi networks?
Do any other iOS devices experience the same issue on your network?
Make sure you follow all steps provided in the article below:
iOS: Troubleshooting Wi-Fi networks and connections -
Hey there, I have an iPhone 3g that was synced to my computer. My computer got stolen with all my music on it. I have a new computer but I can't sync my computer to my iPhone. How can I recover everything that's on my iPhone 3g to my computer?
If your backup copy of your computer was not stolen, then use it to put everything back.
Otherwise, authorize your computer for your itunes account, connect iphone, do not sync, Click: File>Transfer Purchases
This will transfer itunes purchases from the iphone to the computer.
Enter at least one unique contact and calendar entry on the new computer. When you first sync, then you should get the option to merge the data. -
I've just setup icloud on our new ipad but can't get any music to play on the ipad. It shows everything that is in our itunes but they won't play
Keep the Powerbutton and the Homebutton pressed at the same time until you see the Apple logo on your iPad screen.
-
When I updated my iPhone 4Sto IOS 7.0.3 I lost all of the events and appointments that were on my calendar. HOw can I retrieve everything that was on my calendar?
Same here. Besides the phone randomly crashing all the time I now also lost my calendar.
I did a backup to iCloud and then updated the phone and I assumed it would get the data back from iCloud...
Anybody hae a fix for this? Do I need to trigger a restore in iTunes? It seems that the calendar is still on iCloud but I fear that the empty calendar on the phone will wipe that.
Really makes this device slowly unusable and not good advertising to upgrade the hardware.... -
can java do everything like for any problem, can we solve only use java programing alone without help of any other programming language such as C# PERL etc.???
and how many (percent) software out there written purely in java?can java do everything like for any problem, yes.
and how many (percent) software out there written
purely in java?35.42%. -
I wonder if my company can have the name of the apple. to sell everything that Apple may offer for the Brazilian people, Para. Respond to my email please
This is a user to user forum: no-one on here works for Apple and consequently no-one on here can help you.
If you want to become an 'Apple Approved' retailer you will have to contact them directly: start at the 'Contact Us' link at the bottom right-hand corner of this page. -
Hi there,
This has been going on for days now. I've tried everything that was suggested in the help section with no success. I can get on gmail & facebook just fine but can't access craigslist or any other regular sites I frequent. I keep getting "problem loading the page" "connection was reset" I've tried IE & google chrome & I can't even get on https on the other browsers. I don't know what to do & would greatly appreciate any input. Thank you for your time.Dear Jody..jone5
Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
Goodluck
Atousa
Maybe you are looking for
-
My screen is conti uously flickerring have reset as well butnot solved. Pls guide.
-
Problem in sorting of maintanence view contents-
Hi , I have created the maintanence view for one DB table in the dictinory.the view contains the fields as floows. CUPNO CUPNAME GUPNO GUPNAME. Data it is displaying correctly.But user want CUPNAME and GUPNAME should be in the sorted format(alphab
-
I recently purchased the iPhone 5 and all of a sudden my phone has been freezing whenever I try to use the emoji app in text messages, and on any social networking site. I have tried to delete and re-install but nothing seems to be working. what sh
-
Business Rules Error : Exception Occured.
Hi Everyone, I have a problem with business rules , an error message is Exception Occured. I already restart all services, but this error still appear. Please help ... Thanks Een
-
How to Install ATI drivers and apps using MDT 2010
Hi, I am a greenhand for the Windows7 deployment via MDT. I am currently facing an issue, I downloaded the ATI drivers from Dell Offical website (I am using Dell laptop), they I extracted the driver files using the 7zip, then imported the files to th