This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

fowarding or redirecting?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !, im using stripes in my web application nad i have a problem ...

there is a page (lets call it "pageOne") where i can submit more than one form , this forms go to the page's Actionbean ("pageOneActionBean") , the fact is one of this forms (lets call it logicForm) on "pageOne" has the logic on another ActionBean ("logicActionBean"). Soo , what i want to do is to send the information of the "logicForm" form (which is whithin the "pageOne" page) firstly to the "pageOneActionBean" and then send it to the "logicActionBean".
In other words, send the information to the first bean ,which only will redirect (or forward , i was expecting you tell me which one to use) to the second bean.

hope you undertood it and can help me.
 
author
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alexander,

Normally I would say that if the form does not modify the database, use a forward. For example, the form contains criteria to query (read-only) the database.

On the other hand, if you are writing to the database, you should use a redirect. In that case, it's easier to forward from "pageOneActionBean" to "logicActionBean" and then redirect from "logicActionBean" to a read-only action that displays the result.

Hope that helps.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!