• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

application flow

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this document

This should help you get started on just the right track.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic