*
The moose likes JSP and the fly likes Java Script error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Java Script error" Watch "Java Script error" New topic
Author

Java Script error

sucharitha muppidi
Greenhorn

Joined: Jul 05, 2006
Posts: 1
I am first displaying a jsp page in which i am calling a javascript function. First time its displaying correctly. Then i am performing a save operation for one of the attribute and then trying to call the same JSP which will redisplay the same page with the updated value.
When I try to refresh the page, its giving javascript error as the "Object is undefined". As i am displaying the same page second time, it shud not give any error.

Please respond to the error. I am stuck with it.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Welcome to Javaranch Sucharitha !!

Can you just post your code here?


My blood is tested +ve for Java.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The first thing I would do, if I were debugging this, would be to view the source of the page in each of it's states.
Something isn't being written to the page in it's second state.

Remember, your JSP/Servlet code doesn't interact with the client side Javascript code or HTML. It writes it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Script error
 
Similar Threads
posting to same jsp page again
Check for special characters.
Action Form error
calling function while re postingthe same page..javascript
Problem on Cross domain XMLHTTPRequest