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 a servlet from html 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 a servlet from html" Watch "calling a servlet from html" New topic

calling a servlet from html

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
I am having a html form which consist of two frames.In one frame,one html file is called and in another frame the other html file is called.i that html, i need to call the servlet .I had given the tag like this

But i am getting a blank page.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
When are you getting a blank page? The page you posted above will of course be blank, since it contains no elements that would have a visual appearance.

As an aside, how were you planning on submitting the form, seeing that there is no submit button?
[ May 07, 2008: Message edited by: Ulf Dittmer ]
Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

Hi preethi,

what do you think this page should display? There's nothing but an empty form tag in your HTML body, so there really is nothing to display for the browser. If you don't have some form elements to collect the data you want to transmit to your form action servlet there won't happen anything.

Or did I get you wrong with this question?

I agree. Here's the link:
subject: calling a servlet from html
It's not a secret anymore!