• 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

How to emulate a HTML Form Submission with a servelt?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<p>I am using a search/indexing software package which has limited functionality in that it will only produce output from a form submission.</p>
<p>My thought is to create a servlet 'wrapper' which would provide an interafce so that I could call to the URL of the servlet, and provide it a search string as a parameter. The servlet would then perform the form submission and send the user to the resulting page. This is similar to page forwarding, but with more involved.</p>
<p>My question is, is this even possible & if so, then How?</p>
 
Author
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi greg
Welcome to JavaRanch..
can u elaborate your query a bit more...
till what i understood...u can always imitate actions performed by HTML in servlets i.e just code the HTML in servlet & u can make the form work in the same way as it does in th HTML format...
but to be bang on target i need more info...
hope this helps
malhar
 
Gregory Cranz
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will elaborate:
I am attempting to use the Hummingbird Search Server (formerly known as Fulcrum) - and the caveat is that to get a response I need to complete a form submission. This apparently needs to be a POST operation, otherwise I would simply encode the parameters in the URL.
What I want to do is to write a servlet that takes a single parameter, performs a form submission including all of the hidden parameters and then forwards the user to the resulting page.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic