Socket « Development « JSP-Servlet Q&A





1. JSP socket only sending string once    stackoverflow.com

Hello everyone and thanks in advance. This is a last ditch effort to figure out what the problem is or find a better solution. I am using JSP filter to filter web access ...

2. Socket programming inside a servlet acting as server, is it a good solution to start a sort of server pushing environment?    stackoverflow.com

Socket programming inside a servlet acting as server, is it a good solution to start a sort of server pushing environment?

3. servlet for implementing socket connection    stackoverflow.com

How do I implement a web application with a Servlet that is listening on a port for socket connections?

4. How to restrict what files a desktop app can download from an online server    stackoverflow.com

The closest example I can think of is iTunes. I'm thinking about a system where a server stores loads of files, and each user only has access to those they have ...

5. Can you add an additional entrypoint to servlet web-apps?    stackoverflow.com

Imagine you have a standard java web-app using plain servlets, or SpringMVC, or whatever. You also want (for whatever reason) a way to talk to the server not using HTTP - ...

6. Open socket connection on a servlet container    stackoverflow.com

I've written a very simple server that accepts socket connections on a specific port and communicates with clients over that socket. Now I have a client lib which works perfectly fine in J2SE ...

7. Can a servlet open a socket to talk to native code?    stackoverflow.com

I have a C API that talks to hardware and I want to ultimately make calls to that API from a browser. Thinking some to the c++ servlet lib's are too ...

8. Servlet 3.0 async socket close problem    stackoverflow.com

I've been playing with the new Servlet 3.0 async features with Tomcat 7.0.4. I found this Chat Application, that lets clients hang on GET request to get message updates. ...

9. Upolading a file from server to client with servlet    stackoverflow.com

I'm trying to write a servlet, that can upload a file from client to server and download a file from server to client from specific location to specific location. But two ...





10. Transferring file content(byte array) from one server(servlet) to another server(servlet)    stackoverflow.com

I have 2 servers(tomcat) and each running on different hosts. My requirement is: in a jsp, clicking on a link will render a pdf document in a popup window. JSP and generation ...

11. rmi vs servlets vs sockets    stackoverflow.com

what is the difference between socket programming, rmi and Servlets. When to use what?

12. Socket and JSP application    stackoverflow.com

I am building an application which takes some parameters from jsp and send these parameter to another server using socket. After getting response i have to be in continous listen mode. ...

13. Restricting calls from socket program to servlet    stackoverflow.com

How do I restrict calls from a socket program invoking my servlet ? Thanks, rudran

14. when we hit the apache benchmark server I got issue "Only one usage of each socket address (protocol/network address/port) is normally permitted"?    stackoverflow.com

Test aborted after 10 failures Only one usage of each socket address (protocol/network address/port) is normally permitted. Please suggest me how to solve this problem? Thanks in advance teja

15. Java P2P Without Port Forwarding?    stackoverflow.com

I've been trying to figure out a way to establish a P2P socket connection without using port forwarding or a VPN service. I am aware of the TCP/UDP "hole punching" method, however, ...

16. How to transfer data from one jsp to another jsp with sockets    stackoverflow.com

I have 3 .jsp's. The first one asks the user for their username. Once the form is submitted it is taken to a 2nd jsp where a unique passcode is created ...





17. How to forward socket connection through servlet?    stackoverflow.com

I am looking into trying to do UDP/TCP hole punching using a servlet running on Google's AppEngine. I would be using primarily the Java EE library. But I don't quite see how ...

18. Creating file on a server through a jsp which is running on another server    coderanch.com

Hi guys, I am involved in a project which is used for alliances between different sites. Suppose there is site 'A' which is content provider to site 'B'. Site A maintain a database of list of sites who wants A's content.Now site A is creating a software which generates an html page with the links to A's site for site B(i.e ...

19. FTP servlet    coderanch.com

20. Creating Unique ID in Servlet    coderanch.com

This isn't a straight forward as it first appears. You need to ensure it's Unique for multiple instances of your servlet and in the case of most Servlet runners, for Multiple JVM's. To do so using a class variable, you need to see how the servlet runner maintains visability accross JVMs. Also, you need to concider the possiblity of running your ...

21. client socket to servlet    coderanch.com

Hi everyone, I've created a client socket..I've also created a server socket in servlet.I need to communicate that with a servlet..How can i achieve that?.How to give the host name inside the constructor of client socket?.is it "http://127.0.0.1:8080/servlet/servletfile". If i give like this it throws unknownhostexception.how can i achieve my task?. Early suggestions appreciated.. Best Regards, Paramaguru

22. Writing Secure Servlets    coderanch.com

I have recently started writing Servlet code. I want to know, how to send data from a web page to a Servlet in an encrypted format? Here is the web page

ID
Password
In the servlet I am retriving the ...

23. Call servlet from Application    coderanch.com

24. creating a custom servlet container?    coderanch.com

25. what is the better option to get connected to NNTP server from Servlets?    coderanch.com

I'm developing a web based news reader (NNTP) using Servlets/JSP. Currently I'm using sockets to connect to news server to issue NNTP commands and read back the content. I tried to fetch an article (size 3MB with attachment), but it took too long (around 30 minutes) and page cannot be read error was displayed. Fetching the same articles through telnet also ...

27. Invoking a servlet from an application??    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...

28. EPP and JSP    coderanch.com

30. Problem withTcpmon and Servlet    coderanch.com

Hello, I'm trying to moinitor the data stream between the server and the browser. I tried to use tcpmon for that purpose. Unfortunately I get no results. There are no entries in the traffic window in tcpmon. For testing purposes I simply used all various http (80,8080 etc.) ports for local port and then pointed the browser to the adress of ...

31. send data to jsp    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...

33. calling servlet from java program    coderanch.com

34. Connection with servlets (jsp)    coderanch.com

I have a jsp program which accepts form data (username and password). I want to automate this and so I wrote a program to send the username and password as post requests . import java.io.*; import java.net.*; public class mycon { public static final String MY_CON="http://11.11.11.11:8080/AwareIM/logonOp.jsp"; public static void main (String args[]) throws Exception{ URL newurl= new URL(MY_CON); URLConnection con=newurl.openConnection(); con.setDoOutput(true); ...

35. JSP Submit from java code    coderanch.com

Hi all, I wonder can some one help me here? Basically i have a very simple jsp page which on a submit press will forward an email address to a servlet which does processing on the email address which all works grand when the button is pressed manually. Now so want im trying to do is perform a java http post ...

36. servlets in myeclipse    coderanch.com

37. calling a jsp from a function?    coderanch.com

38. RTP servlet    coderanch.com

39. Socket vs RMI vs Servlets    coderanch.com

Hi, Ahem! You have casually asked a few major questions in one go! To quickly answer your questions: RMI is about communication between objects residing in different JVMs where the JVMs can be located in different machines too i.e. it is a distributed environment. You can invoke methods on an object residing in another JVM using RMI. RMI uses socket programming ...

40. Opening a socket connection on client machine    coderanch.com

Hello, I'm writing a jsp(which will shortly be uploaded on our server).Now what i'm trying to do is when a client requests this jsp this jsp would hold the logic to open a socket connection to the client(which has made a request)and write or read a file to/from the client. I want to achieve this without any client side coding/installation. this ...

41. Socket error: connection reset by peer ??    coderanch.com

Hi people, I'd like to expose my problem, because I couldn't find a solution for that. I have a JSP page that executes a method, which retrieves information from a database and show it to the user. The user press an Execute button, then the method is called and th results are shown. The problem I have is if the user ...

42. Connection aborted by peer: socket write error    coderanch.com

Generally this error comes if the client do not get any response from server side even after waiting for 240 seconds. This problem we have experienced while using Weblogic server. We could not solve this becuase windows OS socket is pre-set with this time settings. We could only catch this exception to inform user that the processing is going on in ...

45. Problems regarding Sockets    coderanch.com

Hi, I am facing a teasing problem, that is with my Server Application. When ever more then 700 clients are connect with my Server Application I found an error i.e. "java.net.SocketException: connection reset". But when the no. of connected user are below 600 the problem does't come. If anybody have any idea to handle this problem plz let me know. Thanks ...

46. Sockets in Servlets/JSP    coderanch.com

48. Javabeans and socket error?    coderanch.com

49. Socket Exception error    coderanch.com

51. problem in socket connection    coderanch.com

52. Different type of sockets in java?    coderanch.com

53. Socket Exception in servlet ??    coderanch.com

Hi, I have made a simple client server application wherein I am accepting a username and password and in servlet I am checking it with the database. Problem : My client when passes user name and password from a html client to the servlet and immediately presses stop button before getting the complete response from the server, At the server side ...

54. Sockets/Servlets/RMI    coderanch.com

All have advantages and disadvantages. It depends on the environment that the program will run, for example if it is intranet then I would suggest -sockets. If it is internet then I would suggest servlets cause socket connections are not accepted by firewalls by default. I hope this gives you a hint to get started. KB

55. socket and servlet.    coderanch.com

56. Sockets in Servlet    coderanch.com

57. Servlet and Socket    coderanch.com

58. servlets and sockets    coderanch.com

59. --Sockets in Servlets/JSP    coderanch.com

62. Servlets and Sockets -- Concerns?    coderanch.com

Hey people, Writing a small webapp which takes some user data and then connects to a legacy server app over UDP sockets over our intranet. It seems to be working fine but I was wondering what pitfalls i should be on the lookout for when doing socket programming from inside a j2ee app server. The server is weblogic btw. I only ...

63. using sockets from within my servlet    coderanch.com

I have a servlet that connects to a legacy server via a socket connection. it then reads/writes over this socket. It works fine in Tomcat, but I've ported the servlet over to Websphere and I can't seem to write to the socket. It connects just fine, but when I go to Write, the server never reads anything and I don't have ...

64. Socket programming in Servlet    coderanch.com

Hi, I have a situation. Is using sockets in a servlet problematic or an exceptional situation? Do we need to do something special to make them work? I have a java program using socket communication. This runs fine as long as I run it as a normal java application. But when I use the same code in a servlet the communication ...

66. call jsp from simple java class    coderanch.com

67. Question about JSP URLConnection    coderanch.com

71. need MAC address of client machine in servlet    coderanch.com

Hi guys, I need a feature in my web application. I want to restrict user login on the basis of IP address and MAC address. To achieve this feature i am able to find LAN IP address and i searched the internet to find MAC address code. But i am unable to get any help. Can you guys please show me ...

74. Difference between Servlet & Socket    java-forums.org

75. Socket and Servlet    forums.oracle.com

76. Socket and Servlet    forums.oracle.com

Hi, I connect a swing app to a servlet using sockets. The swing app consists of a server socket, a JLabel to write string from the servlet, a JTextFiel to send string to the servlet whenere you press a button and the button. The servlet manage the socket, and prints an html page to write strings from the swing app and ...

77. Servlets and Sockets    forums.oracle.com