aspose file tools*
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
Author

Calling jsp from within another

Dipti Lokhande
Greenhorn

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

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
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Is your form named "frm"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling jsp from within another
 
Similar Threads
How to do two actions on a same Form in Struts?
Calling JSP method from within a javascript function?
Calling a jsp page from javascript
invoking java function with java script Onclick event
onload not working with jsp