• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Passing new request parameter from action to action

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'd like to pass a new parameter from one action to another.
Example:
The first Action (EnterAction) gets one Parameter called 'id'. During the action is executed I'd like to add another parameter like 'another=123' to the request. After that I'd like to forward to my second action (ExitAction). That second action should be able to read it.
I'd search something like 'request.setParameter("another", "123")'.
Maybe someone could give me a hint.
Regards, Kurt
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpRequest parameters are immutable. A possible solution, although probably not exactly what you want, would to be to use:

to set your value into the request scope and read it from your ExitAction with:

Matt.
 
A tiny monkey bit me and I got tiny ads:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic