Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling jsp from within another

 
Dipti Lokhande
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One jsp is being called from within another jsp on click of button (not submit button)by calling javascript function as

fucntion call()
{
document.frm.method = "get";
document.frm.action = "page2.jsp";
document.frm.submit();
}

A page has more than one button to call other jsp by calling appropriate javascript function.
This code works smoothly, but after some time it starts giveing error as "document.frm.submit is not a function"

What could be the reson? & how to resolve it?
Please do needful.
Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"document.frm.submit is not a function"


That would be a Javascript error.
I'm thinking that this is not a JSP issue.
We would need more information about your page and how it's being used to know why this is happening.
I'm going to move this to our HTML/Javascript forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your form named "frm"?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic