Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JSP/ Applets to open up a socket connection

 
Sean McGurk
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In response to my earlier question regarding opening up a socket connection from a web browser, I am thinking of 2 possible alternatives to calling the java function directly from an ASP page:
1. Call the java function from a JSP page
2. Create an applet that will perform the message processing (i.e. opening up a connection to the host, sending the message across this connection and reading back the response)
From reading the messages on this forum, I think perhaps the java applet might not be a good idea as I will run into the same restrictions as I have when calling the java function directly from ASP. Right?
What then of JSP? Are the security restrictions removed when we declare: Socket socket = new Socket(ADDRESS, PORT) inside a JSP page?
Thanks again,
Sean
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic