tag:blogger.com,1999:blog-510594773915377610.post5757999176166101343..comments2024-02-29T22:09:44.421-08:00Comments on potatoes and carrots no bones: JSP Practice: Simple chatbenbai123http://www.blogger.com/profile/02710053250987444028noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-510594773915377610.post-52130019030535691972016-06-28T09:25:42.261-07:002016-06-28T09:25:42.261-07:00Regarding low browsers, do you mean IE7 or below? ...Regarding low browsers, do you mean IE7 or below? Are there any error in the console?benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-82854895089089412132016-06-28T07:15:41.147-07:002016-06-28T07:15:41.147-07:00thank you for this application, i test the app wit...thank you for this application, i test the app with tow browsers, when start typing after Enter the other browser redirect to index, I traced the error the request.status is 500, how can i fix the errorAnonymoushttps://www.blogger.com/profile/02341678539872966021noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-75531796761086034632015-07-20T01:58:04.238-07:002015-07-20T01:58:04.238-07:00nope, it will similar with the 'send private m...nope, it will similar with the 'send private message' feature in a public chat room.<br /><br />to work like a private conversation you will need one more options (probably a checkbox or completely different page) to let user refuse all messages except the message from specific idbenbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-40548293977965976072015-07-20T00:47:05.225-07:002015-07-20T00:47:05.225-07:00I will try this but will it work like a messenger ...I will try this but will it work like a messenger where 2 people can have a conversation??Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-26904733148375859862015-07-19T22:43:45.234-07:002015-07-19T22:43:45.234-07:00guess not, basically I do not know what other chat...guess not, basically I do not know what other chat engine did, this is just a simple practice with respect to share message between multiple users.benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-70182751841840081242015-07-19T19:55:03.469-07:002015-07-19T19:55:03.469-07:00
it should be redirected to index.jsp by chat.js L...<br />it should be redirected to index.jsp by chat.js Line 44<br />https://goo.gl/tJcjYd<br /><br />probably because server response a SC_BAD_REQUEST error<br />( Chat.java Line 45 https://goo.gl/21Geuo )<br /><br />or a HTTP Code 400 Error caused by<br />the Web Server cannot manage the resource properly<br />the sample just tested with Tomcat 7<br /><br />To check the status,<br />you can check the status code with<br />alert(request.status)<br /> or<br />console.log(request.status)<br />(if pressed F12 to open the console)<br /><br />To check the get action,<br />you can output uid before Chat.java Line 44 by<br />System.out.println(uid);<br /><br />You can also try to debug with debugger,<br />some tutorial:<br />Java Debugging with Eclipse - Tutorial<br />http://goo.gl/kaNlJ9<br /><br />Using the Console<br />https://goo.gl/XKVdGRbenbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-58728831964904474902015-07-19T19:38:29.202-07:002015-07-19T19:38:29.202-07:00Similar to that but not the same,
chat.js Line 15...<br />Similar to that but not the same,<br /><br />chat.js Line 15 it sends message to server<br />https://goo.gl/aKvfwu<br /><br />then Chat.java Line 38 store the message to current users' message List<br />https://goo.gl/lOfZgN<br /><br />Note that the message will be sent to all users<br /><br />after that when a user POST a request that action=‘get’<br />( chat.js Line 27 https://goo.gl/E8ulE4 )<br /><br />the server will response all unread message<br />( Chat.java Line 55 https://goo.gl/s52FtV )<br /><br />to send message to specific user,<br />you will need to add an input field for target user id,<br />send this info to server with message,<br />and put the message to only the list of target user.benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-39628036876440865772015-07-19T01:45:59.978-07:002015-07-19T01:45:59.978-07:00 I have the same problem.What should i do to solve... I have the same problem.What should i do to solve this??Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-15372962272267903052015-07-19T00:12:34.527-07:002015-07-19T00:12:34.527-07:00I send a message and someone should be able to rep...I send a message and someone should be able to reply to the message does it wok like that ??<br />Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-18558665809064740592015-07-17T23:40:17.031-07:002015-07-17T23:40:17.031-07:00will this work like a chat box ?just like any othe...will this work like a chat box ?just like any other chat engine ?Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-626082986130820302015-07-17T20:48:11.920-07:002015-07-17T20:48:11.920-07:00To see messages from multiople users, you need to ...To see messages from multiople users, you need to login with another browser (for different session) and type messages in both browser.benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-19083601520294886272015-07-17T11:04:49.464-07:002015-07-17T11:04:49.464-07:00I can only see the messages which I type.But I am ...I can only see the messages which I type.But I am not getting any messages from the server .Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-88990892775892380442015-07-17T11:03:09.288-07:002015-07-17T11:03:09.288-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-47302957723054473622015-07-17T00:38:12.026-07:002015-07-17T00:38:12.026-07:00With this sample they are just skipped, you will n...With this sample they are just skipped, you will need to use a database if you want new logged in user can see all old message.benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-43721949592440946262015-07-16T06:16:39.821-07:002015-07-16T06:16:39.821-07:00I got a index page ,login redirects to the chat pa...I got a index page ,login redirects to the chat page ,then what about messages they are not displayed ??Anonymoushttps://www.blogger.com/profile/15691290368110892319noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-5707601546739930262015-05-25T12:50:01.492-07:002015-05-25T12:50:01.492-07:00Your blog has excellent information On JSP.
From
...Your blog has excellent information On JSP.<br /><br />From<br />www.javatportal.comjavatportalhttps://www.blogger.com/profile/09368434751858637582noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-90158471624452153272015-02-10T08:16:36.089-08:002015-02-10T08:16:36.089-08:00Sorry but I cant understand what you mean.Sorry but I cant understand what you mean.benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-40807143138174549262015-02-10T08:16:06.127-08:002015-02-10T08:16:06.127-08:00in .jsp, it means the form will post to the url ch...in .jsp, it means the form will post to the url chat.go,<br /><br />in .java, it means the servlet will process request that post to chat.gobenbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-60935392111519196412015-02-10T08:13:01.324-08:002015-02-10T08:13:01.324-08:00This may related to your server/JEE version or som...This may related to your server/JEE version or some other reason, the test environment of this article is Tomcat7/JDK6 (if memory served :p)benbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-31662782498027455082015-02-09T11:06:28.284-08:002015-02-09T11:06:28.284-08:00please submit the demo of your projectplease submit the demo of your projectAnonymoushttps://www.blogger.com/profile/15164311469854633388noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-68617037792080042652015-02-09T11:03:18.194-08:002015-02-09T11:03:18.194-08:00what is the mean of chat.do logout.go
what is the mean of chat.do logout.go<br />Anonymoushttps://www.blogger.com/profile/15164311469854633388noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-7203235455358392392015-02-09T11:01:55.965-08:002015-02-09T11:01:55.965-08:00this is only shows my message not other messagesthis is only shows my message not other messagesAnonymoushttps://www.blogger.com/profile/15164311469854633388noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-9779226777956269832013-11-30T06:02:50.071-08:002013-11-30T06:02:50.071-08:00You can check whether this line below within chat....You can check whether this line below within chat.js is executed:<br /><br />document.location.href = 'index.jsp';<br /><br />if so this means the ajax request cannot connect to your pagebenbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-25806849412022602792013-11-29T10:00:41.897-08:002013-11-29T10:00:41.897-08:00Hello, I have a problem. I have opened it in two b...Hello, I have a problem. I have opened it in two browsers to try it and when I write in one of them i get a logout in the other window and I do not know what it is happening ¿any idea?Anonymoushttps://www.blogger.com/profile/16468840268574690982noreply@blogger.comtag:blogger.com,1999:blog-510594773915377610.post-70630798246380079162013-04-10T07:32:20.068-07:002013-04-10T07:32:20.068-07:00I'm not sure what is your problem, maybe you c...I'm not sure what is your problem, maybe you can try the war file directly<br /><br />http://dl.dropbox.com/u/90546423/JSPChat24.warbenbai123https://www.blogger.com/profile/02710053250987444028noreply@blogger.com