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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "calling a servlet from html" Watch "calling a servlet from html" New topic
Author

calling a servlet from html

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,
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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

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?

Marco
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling a servlet from html
 
Similar Threads
no ContextLoaderListener exception
Display of Latin Characters
Request Attribute confusion
How Do You Send text/html After Sending A ServletOutputStream File To The Client?
JSLT EL display session attribute