Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call the html form

 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
will it work? how that httml will get the responce and request object and what it will do?
 
Vijay Bhuruk
Ranch Hand
Posts: 31
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • 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
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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?
 
Chetan Natu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic