By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Struts Architecture

P: n/a
Can any body explain how struts functions
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I have used struts a little, I can try to give you at least a starting
place.

Basically, you have an HTML form (you can use JSP or something else to
generate) that has an action. The action is defined in the struts
config file. This definition has a standard pattern for the webserver
to look for and the class that will execute the action. There is also a
place to define an ActionFormBean. Somewhere (whether it is actual
struts or the webserver I'm not sure), the ActionFormBean is populated
with the data from the HTML form (when you submit). This bean is then
passed on to the the Action class that you defined in the config for
processing. From this action the data can be processed and then an
ActionForward can be created to tell the browser where to go next.

It really isn't a hard technology, it can just get confusing sometimes
as to who does what when. I hope this at least gets you started. If
you have more questions I'd be happy to answer them.

Chris

PS. Struts also offers a way to do validation, but I haven't really
used it.

Neerja Tyagi wrote:
Can any body explain how struts functions


Jul 17 '05 #2

P: n/a
Struts in Action - this book about Struts
"Neerja Tyagi" <ne*********@netscape.net> wrote in message
news:7f**************************@posting.google.c om...
Can any body explain how struts functions

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.