• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling jsp from within another

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your form named "frm"?
 
reply
    Bookmark Topic Watch Topic
  • New Topic