470,855 Members | 1,269 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Struts Architecture

Can any body explain how struts functions
Jul 17 '05 #1
2 2739
I have used struts a little, I can try to give you at least a starting

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.


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
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.

Similar topics

3 posts views Thread by Sharon | last post: by
1 post views Thread by nithiya sri | last post: by
1 post views Thread by shrik | last post: by
8 posts views Thread by ajos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.