File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Java Script error" Watch "Java Script error" New topic

Java Script error

sucharitha muppidi

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: 3640
Welcome to Javaranch Sucharitha !!

Can you just post your code here?

My blood is tested +ve for Java.
Ben Souther

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
I agree. Here's the link:
subject: Java Script error
It's not a secret anymore!