• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Script error

 
sucharitha muppidi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Sucharitha !!

Can you just post your code here?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic