• Post Reply Bookmark Topic Watch Topic
  • New Topic

html to servlet and come back to same html page with field values  RSS feed

 
Durga Roobini
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,my question is silly but i need it very urgent please help me. i have one html page ,inside html radio button and 3 textboxes and one submit button ->action->SampleServlet.java-> from here again come back to html page with checked radio buttton value and text box value,please help me

i dont want to click back button in this case, html page to servlet->here i have to call back to my html page with checked radio button and text box value
i tried response.redirect(original.html)-->i cant able to display checked radio button and textbox value
also tried requestdispatcher forward/include,html page comes newly from starting but i dont want it,i want to view in html page with checked radio button and text box value,i need it please htlp me soon
 
Stephan van Hulst
Saloon Keeper
Posts: 7722
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Durga,

Instead of writing an HTML page, consider writing a JSP page.

In JSP, you can create a template for your page, and put in special tags for your variables. This way, you can just forward to your JSP from your Servlet, and drop in variables that represent the state of your buttons and fields.
 
Durga Roobini
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai ,Am fresher please can you able to explain with me eg? i need it very urgent please
 
Stephan van Hulst
Saloon Keeper
Posts: 7722
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://bit.ly/u8sgxu
 
Durga Roobini
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Atleast give me the direct link or partial related link i dont understand what you post reply,am newbie to jsp ,please i have very short time tooo help me
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this article to understand what JSP is all about.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!