Jsp code for socket programming
CE's
any knows code JSP CODE FOR SOCKET programming .......please inform me
Member • Jan 9, 2010
Yep, I guess I can be of some help in this but I am still not able to figure out why you want to include the code that should be done in Java in JSP. Please make it clear.madhumurundiHello,
CE's
any knows code JSP CODE FOR SOCKET programming .......please inform me
Member • Jan 9, 2010
@sookiesookieYep, I guess I can be of some help in this but I am still not able to figure out why you want to include the code that should be done in Java in JSP. Please make it clear.
Thanks 😀
Member • Jan 9, 2010
Member • Jan 10, 2010
@sookiesookie@madhumurundi I liked your going out-of-box way. 😀
Very first thing is you need to have knowledge of Servlets and JSP(just basic -nothing fundoo) then as per me what you can do is
1. Create two servlet classs -one as (ClientServlet.java)and this servet will run as soon as your server of client machine will start and other create server side servlet class (say ServerServlet.java). Put your client side socket code in ClientServlet.java and server side code in ServerServlet.java.
Now right now, what you might be doing is using Java I/O streams stuff for data handling which is getting displayed in command prompt. Now , you need to change bit of code(only data displaying and handling part- no need of touching socket programming related code) of yours in Java classes such that it will be displayed as UI using JSP.
Feel free to correct and ask questions if any. If possible share the code, I am dying to give it a try. :sshhh:
Member • Jan 14, 2010
No, you can share the unsuccessful code also. We will make it successful. :sshhh:madhumurundi@sookie
Thanks for providing a ample of informations about JSP... i will try the code..once the code is run successfully i will post it here 😁