• 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 call the html form

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi , i want to call the html form when the user is ligal. so what i have to do for that?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand this question, can you re-phrase it?
 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i want to call the html page from the servlet.
the servlet validate the user so after that validate i want to disply the html page so , how i can do that?
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's one way. Please respond if you need more information.
 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
will it work? how that httml will get the responce and request object and what it will do?
 
Ranch Hand
Posts: 31
MyEclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to pass information from servlet to html form?

As above code is to show you how to display static html page, to create dynamic html page, see JSP tutorials.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does "call the html form" mean anyway?

The programming sense of "call" does not appear to apply - describe the sequence of events you want to occur.

Bill
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, maheshm morem.

First you must understande what you need. Your question it is not clear.

If you only need a tutorial of a login, you can see a tutorial in my signature.

Why do you need to call a form?
 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sir,
i want to call the html from servlet. i am serching database of user login from servlet if the user is rigth than it goes to main page so my main page is of the html so want to call it from servlet , plese tell me how to call it?
 
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
Your use of the verb "call" is incorrect and confusing.

Are you wanting to redirect to the HTML page? Forward to it?
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

maheshm morem wrote:hi sir,
i want to call the html from servlet. i am serching database of user login from servlet if the user is rigth than it goes to main page so my main page is of the html so want to call it from servlet , plese tell me how to call it?



Hi Mahesh,

you must be writing the code to search Database for a user in some Servlet code. In that servlet code you need to add the two lines that Tom has mentioned. If at all you want some kind of a message back to the page (e.g., you want to display the username on the page), then instead of home.html you will need to use some JSP file and retrieve the data in the JSP file using custom tags or JSTL or a simple scriptlet.

How to do that in JSP? Ask the question in the JSP forum...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic