Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

field value displayed wrongly

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two jsp pages with different form bean.

on first jsp page & second jsp page, i have text field called "LastName".

on first jsp page user enteres data on last name and pressed cancel . the user is navigated to second jsp page which has also a field called "lastName".

The problem is what ever value i enter on first jsp page lastname field is appearing on second jsp lastname field.

note: the lastname field is a textbox
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are they both refering to the same ActionForm??
Secondly, i dont know if you have used isCancelled() in ActionClass when you press the cancel button . If yes then try clearing the value of the "lastName" explicitly in that.
If no, then please post the code so that we all here may have a look at that.
[ April 05, 2007: Message edited by: RoshaniG Gopal ]
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic