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

the data in form is not being displayed :

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m using struts: when i click on a link it will go to my action (Dispatch) method and loads
the data from the db into my formfield of type map. then i forward my page to actionforward
:"loadpage":, this is declared as shown below:::

<forward name="loadPage" path="/mymodule/my followed jsp page.jsp"
redirect="false" />

the action form is set to request scope ... so is there a way i can retrieve my data put in form
field MAP...

My action mapping :

<action path="/action/mymodule/rel_path"
type="com.company.subpart.module.plan.ProcessNameAction
name="processNameForm" scope="request"
validate="false"
parameter="method">

And i set values in my action class :

like this : in its method : load()

loadMaps(request, form, initialLoad); -->loads data from db to my form field Maps
return loadPage(mapping, form, request, null); --> load page returns to my desired page

i am able to access the valuesin map in loadpage method even..but after forward(last instruction)
i dont get data (null values in Maps) ...can any one helpme regarding this issue..(arch ..problem)

regards,
-eswar
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. 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!