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

Passing new request parameter from action to action

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to pass a new parameter from one action to another.
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
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:

A tiny monkey bit me and I got tiny ads:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic