aspose file tools*
The moose likes Beginning Java and the fly likes To get input from the user and display it in the same page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "To get input from the user and display it in the same page" Watch "To get input from the user and display it in the same page" New topic
Author

To get input from the user and display it in the same page

Nandhini K Ami
Greenhorn

Joined: Oct 29, 2012
Posts: 1
Hi i am new to java script.I wanted to get input from the user(int,string,array of string or anything like that) and to display it in the same page just like a guest book.But they say i need to create a cgi directory through which only i can create it.I have created a HTML file as below




I created a servlet named "guestbook1" and passed the value to that program as below



from this program i call the jsp program to display the text the user has entered.



I am a begineer to java script so forgive me if there is any mistake in these program and can you please help me
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Welcome to the Ranch!

Please read CarefullyChooseOneForum. There is already a forum HTML, CSS and JavaScript for these questions.


The quieter you are, the more you are able to hear.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38896
    
  23
And this post is now in that forum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To get input from the user and display it in the same page