Win a copy of Spark in Action this week in the Open Source Projects 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Not able to pass values from one jsp to another Action in Struts2

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a search.jsp mapped to Search Action class where I am displaying search results with checkboxes. This is running fine.

However, now I want to select a result, by selecting a checkbox and click on "edit" button to edit that particular record in DB.

On the click of the edit button, I am invoking an Edit Action class, however, I am not able to pass the selected value from the search jsp.

Can someone please help?

Posts: 9612
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to? Are you selecting multiple records to edit?
If you are editing only a single record, why use a check box at all? Wouldn't it make more sense to associate an edit link or button with each line item? That's one less click for the user.
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To redirect you can use this code

Oh the stink of it! Smell my tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic