This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes What are the ways to understand complete flow of an application built on Servlets/Jsps. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What are the ways to understand complete flow of an application built on Servlets/Jsps." Watch "What are the ways to understand complete flow of an application built on Servlets/Jsps." New topic
Author

What are the ways to understand complete flow of an application built on Servlets/Jsps.

Kiran Chintha
Greenhorn

Joined: Jul 25, 2009
Posts: 15
Hi Folks,
Recently i have been assigned to an application which is built on Servlets/Jsp's, and i have been given some assignment, to implement that change i need to study the complete existing flow of the application then only i can implement the requested change, can you people suggest what are the ways in which we can understand the application flow built in Java (Servlets/Jsps) in detail and work on the given new change.

Thanks in advance
Kiran
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hi,

If you are new to any application and you want to know the flow of application the best way to understand using Debugging.

You application totally build on Jsp and servlet. So all mapping of your application at your web.xml file if they follow MVC. So, just check your url pattern with your servlet mapping and check which servlet is responsible for request. Just note down and put breck point at that servlet and check all variable value also. Now you get idea about your application.

I was thinking debugging is most and best way way to solve any problem and understand flow of application.

If you want to learn about debugging i think this link will help you more.....

http://nishanpatel.wordpress.com/2009/08/17/javawitheclipse/



Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

IMO there aren't any really *good* ways to break down high-level app flow in apps like this.

What I've done in the past is create tools that pick apart config files for servlets, JSP pages for link tags, etc. and build "flowcharts" (sort of) using GraphViz. Automatic documentation generation becomes more difficult still when JavaScript is used, but it's still doable with coding discipline and clever tooling.

If you want to document app flow within the Java code itself there are many ways to go about getting it, from debugging as suggested (thorough, but neither automatic nor practical for large apps) to detailed logging with post-processing to create sequence diagrams etc.
 
 
subject: What are the ways to understand complete flow of an application built on Servlets/Jsps.
 
Similar Threads
long post IBM.158
submitting the invoice twice when submitt button is clicked
Is Tomcat or other web/application server installed on a system?
improve the performance of a java web application
Chapter 14: Patterns and Stuts - Question 1 (Pg 755)