File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts flow" Watch "struts flow" New topic
Author

struts flow

struts learner
Greenhorn

Joined: Nov 17, 2009
Posts: 1
Hi

I was asked this question in one of the interviews.
How does the form data in struts gets stored in database or in other words, the complete flow diagram from user request till the data gets stored in database.
Please explain

Thanks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

1. Which version of Struts are you talking about??
2. The form data is not stored automatically into the database. It has to be entered into the database. It can be done anywhere anytime by the developer. If for example I didn't sleep for 3 days, then I might insert records into the database from JSP pages i.e. view layer...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

struts learner wrote:How does the form data in struts gets stored in database or in other words, the complete flow diagram from user request till the data gets stored in database.

Have look in MVC architecture, if you can't find answer there, then ask here.

And welcome to JR and you have to change your display name, I'm wondering How Ankit miss this.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

Sagar Rohankar wrote:you have to change your display name, I'm wondering How Ankit miss this.

I can miss things can't I, I miss my school days for example . Anyways your display name is not as per the javaranch naming policy so you'll have to change it...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Ankit Garg wrote:
Sagar Rohankar wrote:you have to change your display name, I'm wondering How Ankit miss this.

Anyways your display name is not as per the javaranch naming policy so you'll have to change it...

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

Sagar Rohankar wrote:
Ankit Garg wrote:
Sagar Rohankar wrote:you have to change your display name, I'm wondering How Ankit miss this.

Anyways your display name is not as per the javaranch naming policy so you'll have to change it...


Who is the obvious person who has a naming violation?? The statement about naming policy was for that person not you...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Ankit Garg wrote:
Sagar Rohankar wrote:
Ankit Garg wrote:
Sagar Rohankar wrote:you have to change your display name, I'm wondering How Ankit miss this.

Anyways your display name is not as per the javaranch naming policy so you'll have to change it...


Who is the obvious person who has a naming violation?? The statement about naming policy was for that person not you...

You know, how dumb I'm
 
 
subject: struts flow