Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-2007, 01:00 PM
reachpradeep's Avatar   
reachpradeep reachpradeep is offline
Learning Programmer
 
Join Date: Mar 2007
Location: India
Posts: 41
Rep Power: 7
reachpradeep is on a distinguished road
Send a message via MSN to reachpradeep
Default How to share data between action components in a struts application

Hi Guys,

I am stuck. I have set up my application using
the struts framework. I have an
Account class and a helper class Account Manager. I am storing my data in an
array of Account in Account Manager. So, in the create Action component I create
a new account in the account array. In the login Action component I am trying
to access the account using userid. The lookup method is in the Account Manager
class along with the array of Account. In order to use the lookup method from
the login Action I have to instantiate the Account Manager in the login Action
component. But when I instantiate in the login Action, does that not
instantiate the array of account that I have created the new account in? I
don't know how to set up the data and its associated methods so that all Action
components can access it.

I am not sure if I have explained my problem clearly to you. How can all of my
Action components access the array of Account that I am updating with new
accounts? Hope you guys can help. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java:Tutorial - Data Types John Java Tutorials 6 07-02-2007 10:16 PM
Calculator program in C roger C and C++ 4 07-04-2006 03:24 PM


All times are GMT -5. The time now is 12:02 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads