This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP code not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP code not working properly" Watch "JSP code not working properly" New topic

JSP code not working properly

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hello sir,

I'm having problem in my JSP Code which i'm not able to rectify.Its the code for my one-to-one chat module of a chat application i'm making using JSP & Servlets .

This code is for sending the message to a particular user through my servlets using my "send121.jsp"

I've used the concept of XMLHttpRequest in this code.The code for "send121.jsp" is as follows:

When the onBlur event is executed the callservlet()Function of javascript is called, through which my OnetoOneServlet .java gets the message parameter,that message parameter's value i'm storing in an ArrayList using a plain old java class namely

The code for both the servlet & plain java class i'm providing below.

Now the problem i'm facing is that the message is getting stored in the ArrayListbut on the JSP side i'm not able to get it printed in the TextArea provided nor i'm able to get it on the server console for verifying purpose.

So if you could help me sort out the where the problem lies in my code I will be grateful to you.

Thanking you,


The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Is there anybody to help me out???
If there is then please reply as soon as possible.........

Thanking You ,
I agree. Here's the link:
subject: JSP code not working properly
Similar Threads
javascript "object expected " error
Pagination Problem
ask for the pass value
XMLHttpRequest problem
Dependent Combo Box