Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@sookie-T06sFW • Jan 9, 2010
madhumurundiHello,
CE's
any knows code JSP CODE FOR SOCKET programming .......please inform meYep, 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 😀 -
@madhumurundi-DfePI4 • Jan 9, 2010
sookieYep, 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 😀@sookie
Thanks for your valuable comments... i have already done a socket programming in java ... it can execute in command line.. and command prompt... and for this program i didin't used any front end... so i thought that JSP will gives better front end look for this ... and i read lots... of PDF about jsp... but still finding the difficulty to programming in JSP for "scoket program".. please sort out my problem... -
@sookie-T06sFW • Jan 9, 2010
@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: -
@madhumurundi-DfePI4 • Jan 10, 2010
sookie@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:@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 😁 -
@sookie-T06sFW • Jan 14, 2010
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 😁No, you can share the unsuccessful code also. We will make it successful. :sshhh: