File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application flow

 
anita dhar
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ranchers

i am new to struts , can any one tell me flow of struts application
example
login page
when user submits values , the jsp/servlet container receives the request and look into the web.xml for the servlet and url pattern once it will get after that how the flow goes on

thanks in advance
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Incase of struts, it's not exactly similar to the servlet way of things.

Usually a servlet would be mapped to a url-pattern similar to "abc".
Incase of struts, the url-pattern is usually like "abc.do"
Here the ".do" tells the web.xml to pick up the ActionServlet. (You can take a look at the servlet mapping for *.do in your web.xml)
From there on, the text preceding the ".do" is looked up in the action mappings, which have been read from the struts-config.xml file during startup.
This would in turn point to the correct action class (which are actually derivatives of the servlet family in a way).

Btw, you can actually have your struts URL's identified by something other than ".do". You can use ".abc" too, just that it should be mapped to the action servlet within your web.xml

Hope this helps somewhat. (I think some comprehensive document would be much better though.).
 
anita dhar
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS ,YOUR INFORMATION IS USEFUL AND YOU SUGGEST ME TO GO FOR SOME DOCUMENTAION CAN YOU SUGGEST ME ANY LINK WHICH WILL EXPLAIN ME PROPER FLOW WHERE TO GO
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anita dhar, please refrain from posting in all uppercase. it makes your posts very hard to read.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this document

This should help you get started on just the right track.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic