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

back button issue...

Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a user defined back button...

1st jsp is load project.jsp...

i select a project and click 'OK' to go to vocabulary.jsp... here, based on the project selected I am populating rows in vocabulary.jsp(using s:iterator)

I can also add a new row in this jsp.After this I have a button called 'RS' to go to RS.jsp.

Now,in RS.jsp I have a user defined back button.When I click on it i need to go back to vocabulary.jsp and it showing vocabulary.jsp a blank rather it should show the values.

what should be done here to show the vocabulary ,jsp as it was before clicking on 'RS' button?

Is it the problem with the s:iterator??

In loadproject.jsp I have the ArrayLists and these are used in vocabulary.jsp viz...

in LoadProjectAction...

Is the framework not recognizing the Arraylists on back button click? it looks for all the actions registered in struts.xml isn't it? and i dont have duplicate names either!

In the output i could see the values of all 4 ArrayLists on click on back button but not in my jsp(UI)...

Hope I am clear!
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not because of framework, html could not cache object such as your list so when you when back, only directly attribute could be kept.
So in this case you have to re-submit this page to get your arraylist agian.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic