• 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

call servlet from javascript

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone .Help me
I cannot call servlet from javascript function in search.jsp
-- index.html contain 2 frame (Frame 1 , Frame 2)
Frame 1 include search.jsp
Frame 2 include blank
when run index.html included search.jsp
Click Search button ==> function javascript ==> set target to Frame 2 of index.html and call servlet SearchProduct ==>servlet SearchProduct redirect to result.jsp
Here my code
index.html
<html>

search.jsp

servlet SearchProduct
 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Calling a Servlet from a javascript:

What i did for myself is :

document.PDForm.action="../ProcessDefinitionOut?newsdlc="+idea;
document.PDForm.method="POST";
document.PDForm.submit();

This worked for me

What is the following page that you see after you execute the java script?
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic