• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

Icculus

[java] Applet/Servlet communication

8 posts in this topic

Can someone give me a hand in applet/servlet communication. I can only find one source http://gamelan.earthweb.com/journal/techworkshop/020300_appserv2.html and this code I have played with but I can''t get his code to work by itself or integrated with mine. I have tried using Sockets and this works great in AppletViewer, but in IE I am getting SecurityExceptions. Can someone give me some code or a source for this type of thing without having to set permissions up to do it. Note that I don''t want the servlet to send back a html doc like all the tutorials but a stream such as a ObjectOutputStream so I can send things across. Thanks
0

Share this post


Link to post
Share on other sites
How were you running it? You should have the servlet on the same server as where you put your webpage for it to work properly. Some web hosting services allow you to do that, others don''t. You might want to check into that. Sandbox rules only allow you to connect to the machine that the applet''s class came from.

Anyways, forgive me if you knew this, but the above solution immediately popped up in my head when I read your request for help.

joeG
0

Share this post


Link to post
Share on other sites
Try this link... http://java.sun.com/docs/books/tutorial/applet/practical/server.html

I don''t know if that''s quite what you''re looking for.

War doesn't determine who is right, war determines who is left.
0

Share this post


Link to post
Share on other sites
thanks but nevermind, it was a dumb error on my part. I put the servlet in the servlets directory in the jdsk server and thought that was the directory to access it. I actually is the address/servlet for some wierd reason instead. Anyway I tried the above page and got a exception too, since it uses datagram sockets. I guess I''ll have to do http communication but it is not as good as Sockets since the applet had to refresh every so often to get info. Has anyone used Sockets without security problems between a applet and a servlet?
0

Share this post


Link to post
Share on other sites
I know it is possible... I read something on it, but cannot remember where. Is the applet being served off of the same server that the servlet resides on? That can cause problems with security
0

Share this post


Link to post
Share on other sites
I''m trying to find some good information about this subject too. I have to transfer binary data from my applet to a servlet, but I haven''t been able to find any information about it. All I''ve been able to find, is comments about a supposedly great book from o''reilly. Anyone have the book "Java Servlet Programming"? I''d like to know whether or not it contains any valuable info about the subject.
0

Share this post


Link to post
Share on other sites
I have done applet to server communication. I haven''t bothered with the servlet part. It seems rather overkill to wrap you server behind an http server.
0

Share this post


Link to post
Share on other sites
If you use the javax.servlet API, you will probably use the javax.servlet.http.HttpServlet class that generates HTTP content. Instead, use the javax.servlet.GenericServlet and implement the service method.Good links:
http://java.sun.com/products/servlet/?frontpage-javaplatform
http://java.sun.com/products/servlet/2.2/javadoc/index.html
0

Share this post


Link to post
Share on other sites
I''ve done applet to server communication before as well... I think it was a simple chat app.

I wonder what your doing thats causing the Security Exception?

Can we get some code?

Mark

----
http://go.to/e[m]anate
----
0

Share this post


Link to post
Share on other sites