This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes program flow problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "program flow problem" Watch "program flow problem" New topic
Author

program flow problem

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
HI I am new to Struts and I need to creat a small aplication with login page and POJO.

My program flow goes like this:



Requirement: Login, and display contents of Hashmap to the Home.jsp page if login is success.

My problem is:
After logging in, (if it is successful) how to make the program to go to a class where hashmap is hardcoded (a POJO).....
Assuming that there is a seperat action class for checking login values and a seperate class for hashmap. How to communicate between a POJO and action class??

Any one please help


Thanks & Regards,
Author
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ashvini pradeep wrote:
After logging in, (if it is successful) how to make the program to go to a class where hashmap is hardcoded (a POJO).....
Assuming that there is a seperat action class for checking login values and a seperate class for hashmap. How to communicate between a POJO and action class??



Can you make the instance of POJO in Action class ?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
how do i do it? Do i need to import POJO class / implement it in action class and instantiate the POJO class?
How do i do it

Please help.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Import it into your action class and then instantiate it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: program flow problem
 
Similar Threads
Struts: how to return to previous page after login
Determining admin from general
jsp:forward
Spring session timeout using IE6
Triggering execute() without form submit