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

Holding values after refresh

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I have a JSP page. I have 3 text fields here. I enter some values and submit the form. It talks to the server, does some DB ops and refreshes itself. Here, after the refresh, I want the values that were entered before to be retained with the text fields. so that I can re use them. I can use session for this but would like to know if any thing simple possible with HTML.
Thanks,
Lavanya.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
you can do it with JavaScript, but it is not great sunce you would need to write a code for it. I am sure you are able to do it easier with jsp. I know I can do it with asp by using the form property appended to the value.
Eric
 
Padma Prasad
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thanks Eric,
I have known what I am doing is not a get around of whatever possible in a simple one line statement. But I wonder. How come a widely used language like HTML doesnt have a feature like this?
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
LOL,
There are many things that should be there, but are not! If only I could code standards for browsers, it would make people's days easier!!
Eric
 
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:
  • Report post to moderator
N, it is considered a no-no to cross-post the same question in multiple forums. Please continue any discussion here.
bear
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic