File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Calling jsp from within another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Calling jsp from within another" Watch "Calling jsp from within another" New topic

Calling jsp from within another

Dipti Lokhande

Joined: May 05, 2007
Posts: 9
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";

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

Joined: Dec 11, 2004
Posts: 13410

"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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63862

Is your form named "frm"?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Calling jsp from within another
jQuery in Action, 3rd edition