httpunit

search for more blogs here

 

"25. Web App Q&A" posted by ~Ray
Posted on 2008-11-13 12:21:26

1. Explain in your own words the meaning of the web "request-response cycle". Web pages are requested via a URL using one of the http verbs (GET. POST. PUT. DELETE) action. A web server responds to the request by returning the content of the requested item. This content includes a header which tells the browser about the content type and length and a body which contains the content. Most web content is sent as text/html. However modern web servers support a multitude of content including image audio and vidieo files.2. Explain how servlets facilitate processing of the request-response cycle. Servlets run with a Java “container” (a fancy name for shared memory web server) and provide a web programming API to Java Developers. They hide the details of the http request and response by wrapping them in a classes HttpServlet which may be extending by the programmer. The GET request are handled by implementing the doGet() method and POST request are handled.3. How do you login to the Tomcat Manager?Before accessing the Tomcat Manager an admin account must be created in the file $CATALINE_HOME/conf/tomcat-users xml. Once the account is created the user can point their browser to http://localhost:8080 and click on the link “Tomcat Manager” which is found on the left menu.4. What is the Tomcat Manager used for in the StackStripes application?The Tomcat Manager admin account is used by the tomcat build xml in the StackStripes project to deploy stop and start the tomcat server. This needs to be done because Emma does not like war files. The war file must be unzipped first whereas emma perfers the unzipped version.5. What is the directory and file layout of an installed web application like StackStripes? (This is NOT the same as the directory and file layout of the StackStripes distribution!)apache-tomcat-6.0.14$ find./ | grep stackstripes./webapps/stackstripes./webapps/stackstripes/index old jsp./webapps/stackstripes/WEB-INF./webapps/stackstripes/WEB-INF/classes./webapps/stackstripes/WEB-INF/classes/edu./webapps/stackstripes/WEB-INF/classes/edu/hawaii./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/model./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/model/StackModel class./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/model/TestStackModel class./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/action./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/action/StackActionBean class./webapps/stackstripes/WEB-INF/classes/edu/hawaii/stackstripes/action/TestStackActionBean class./webapps/stackstripes/WEB-INF/classes/log4j properties./webapps/stackstripes/WEB-INF/classes/commons-logging properties./webapps/stackstripes/WEB-INF/classes/StripesResources properties./webapps/stackstripes/WEB-INF/lib./webapps/stackstripes/WEB-INF/lib/stripes jar./webapps/stackstripes/WEB-INF/lib/jstl jar./webapps/stackstripes/WEB-INF/lib/commons-logging jar./webapps/stackstripes/WEB-INF/lib/commons-logging license./webapps/stackstripes/WEB-INF/lib/stack jar./webapps/stackstripes/WEB-INF/lib/cos license./webapps/stackstripes/WEB-INF/lib/log4j-1.2.15 jar./webapps/stackstripes/WEB-INF/lib/standard jar./webapps/stackstripes/WEB-INF/lib/cos jar./webapps/stackstripes/WEB-INF/lib/emma jar./webapps/stackstripes/WEB-INF/web xml./webapps/stackstripes/index jsp./webapps/stackstripes/META-INF./webapps/stackstripes/META-INF/MANIFEST. MF./work/Catalina/localhost/stackstripes./work/Catalina/localhost/stackstripes/org./work/Catalina/localhost/stackstripes/org/apache./work/Catalina/localhost/stackstripes/org/apache/jsp./work/Catalina/localhost/stackstripes/org/apache/jsp/index_jsp java./work/Catalina/localhost/stackstripes/org/apache/jsp/index_jsp class6. How do you build a war directory structure in Ant? Where is this accomplished in the StackStripes application?A war file is built by copying the class files into temporary directory. Ant provides a war tag to facilitate this. The war tag is given the location of the web xml as well as the location of a temporary directory that holds the class files. This is done in the build xml target name=”war” line 84.7. How do you install a war directory in a running Tomcat server? What information does the Ant task need to accomplish this?To install a war directory into a running Tomcat server you can drop it into the webapps folder login to the Tomcat manager and deploy the application. Ant can the Tomcat manager url using the admin username and password.8. What is the "Model2" architecture? What are its advantages?A Model 2 architecture is an implementation of the Model-View-Controller pattern. It attempts to separate model and navigation logic from HTML content. The main advantage is that it removes most the logic for which page is displayed will be in the controller code. This removes the burden of having to go through HTML files to make changes or decipher what a web application is doing.9. What are JSP pages? How are they related to servlets?JSP mixes HTML and Java code in the same way PHP or ASP do. Programmers can add Java code to their HTML files which will be executed before the page is rendered the user. The result of the execution will be displayed to the user. JSP files are compiled into servlets.10. Why is there a delay when retrieving a JSP page for the first time? Where is the Java code for that page stored?The first time a JSP page is run it is compiled into a Servlet and put in the Tomcat Servlet container memory. The source code for the Servlet can be found at TOMCAT_HOME/work/Catalina/localhost/APPLICATION_NAME/org/apache/jsp/index_jsp java. For example the index jsp for the stackstripes application is found in./work/Catalina/localhost/stackstripes/org/apache/jsp/index_jsp java.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?The Java Standard Tag Library provides a way to create custom tags for JSP. These tags can define reusable code that may be invoked from with a JSP page. The stripes JSTL tag stripes:form (line 13 of index jsp) and stripes:select (line 15.) are examples in StackStripe.12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?Stripes provides a set of JSTL tags which that bind JSP elements to HTML to elements in the controller. In the Quick Start application (http://mc4j org/confluence/display/stripes/Quick+Start+Guide) a tag stripes:text name="numberOne" is used. When the form is submitted the data entered by the user will be accessible in the controller by using getNumberOne(). These tags are useful because they remove the need to place data directly in the controller instead of requirer in the program to examine the request object. Also they allow for validation. In the StackStripes example a tag stripes:select size="1" name="numToPush" is used to defined an HTML select or drop down or numbers which can be added to the stack. This data is accessed in the controller in the push() action using the method stack push(this numToPush).13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit is a java library that allows programmers to write test code that will interact with an HTTP server. While Junit is used for unit testing. HttpUnit is used to test the output of a web application by performing http requests and examining the resulting HTML. HttpUnit is used in TestStackActionBean java of the stack stripes program to test the output of the index jsp.14. What needed to be changed in order to implement the Double It button? What didn't need to be changed? What did you learn about the MVC design pattern from this exercise?To implement the Double It button. I simply added a DoubleIt form to the index jsp corresponding method in the controller and an implementation of doubleIt in the model. I didn’t need to change any of the other methods. I didn’t learn anything about MVC that I wasn’t already familiar with.15. What are the equivalence classes that need to be tested for the Double It button?I implemented tests in TestStackModel and TestStackActionBean.16. Provide two screen images of your new StackStripes application with the Double It button one showing the page before and one showing the page after hitting the "Double It" button. Before:After:17. What is the singleton design pattern? What is an example of its use in StackStripes? Why is it needed?The Singleton pattern ensures that there is only one copy of an object in the memory. It is used in the StackModel class. It is used along with implementing synchronized methods to ensure objects maintain persistence in the multi-threaded Servlet environment.18. Some of the StackStripes tests exercise code on the "server side" while others exercise code on the "client" side. Which test classes exercise code on the "server" and which exercise code on the "client"? How does Emma deal with this to create appropriate coverage data?Technically all of the code is server-side. Client side code would be AJAX or Javascript which there is none in this project. The TestStackModel tests the server code. TestStackActionBean uses HttpUnit to test the output. Emma runs the code within the servlet container to gather coverage data.19. Running 'ant -f junit build xml' results in the following target invocations: tomcat check tomcat undeploy compile war tomcat deploy junit tool junit report junit. Explain what each of these targets do tomcat check: Ensures that Tomcat is runningtomcat undeploy: Uses the Tomcat manager to remove the application from Tomcat ‘s webapps folder,compile: Performs compilation of application source,war: Generates the web archive file for deployment,tomcat deploy: Logs into the tomcat manager and deploys the application.20.(Optional) If you have experience using one or more other web application frameworks discuss your initial reactions to Stripes. How is it similar or different or better or worse than your previous experience?I have used Ruby on Rails for about 6 months and I have done a lot of web development is using PHP and Perl. In PHP. I used a framework that I adapted from the Postnuke CMS using the Smarty templating engine. Back in 2000-2001. I worked for a company that used Java Servlets and EJB to build an e-commerce platform. The project was terrible failure. Since then. I’ve always felt like using Java to develop web applications is like using a sledge hammer to nail in a wall tack. Web development by it’s very nature is scripty. Just because somebody isn’t using some fancy framework doesn’t mean they aren’t writing modular and robust code. I have seen some very strong examples of this in reviewing open source PHP and Perl projects. LAMP installation requires no more than 4-5 commands. There is no XML to configure no Tomcat manager to mess with and no Ant to frustrate. You can literally have a small application written and deployed working by lunch time. The thing I like the most about Rails is that it exposed me to Ruby which itself is a very cool language. The “share nothing” approach to the server removes having to worry about threading. Testing is built into the framework and the intergration testing blows HttpUnit away. I use an Rcov is plugin for coverage reports. The real strength of Rails is the community. From the plugins to the blogs to the “railscasts” (screen cast videos that show you how to do stuff) they have taken open source web development to a new level.

Forex Groups - Tips on Trading

Related article:
http://kenglishhi.blogspot.com/2007/11/1.html

comments | Add comment | Report as Spam


"25.WebAppQuestions" posted by ~Ray
Posted on 2008-03-12 23:13:17

1. inform in your own words the meaning of the web "request-response cycle". A client makes a request for information from a web-server. The web-server will then try to match this communicate with the appropriate response. An example of a typical response would be a HTML page. When the client receives the response the client can then alter another request which will trigger another response thus forming a request-response cycle.2. Explain how servlets facilitate processing of the request-response make pass. Servlets expand the ability of the request-response cycle by allowing for dynamic content to be included in responses. Since they are Java classes they can be easily tailored to fit the domain in which they will be used.3. How do you login to the Tomcat Manager?If Tomcat is running simply direct your web browser to the url http://localhost:8080/. Then move on the cerebrate: "Tomcat Manager" and type in the user id and corresponding password. If Tomcat is not running write in "startup" on the command lie (assuming you have added the Tomcat bin folder to your path environment variable) and go the above steps.4. What is the Tomcat Manager used for in the StackStripes application?The Tomcat Manager is used to deploy the StackStripes application.5. What is the directory and file layout of an installed web application desire StackStripes? (This is NOT the same as the directory and register layout of the StackStripes distribution!)The directory will be the system name ("stackstripes" or "stackstripes- " for instance). Inside that directory there are jsp files which are the homepage and other pages for the web application. Then there is a "META-INF" subdirectory and a "WEB-INF" subdirectory. The "META-INF" directory contains meta information about the web application. The "WEB-INF" directory contains the configuration file "web xml" along with a "classes" directory a "lib" directory and possibly a tags directory. The "classes" directory contains properties files and the java classes. The "lib" directory contains the jar files used by the web application. The "tags" directory contains implementations of tag libraries.6. How do you build a war directory structure in Ant? Where is this accomplished in the StackStripes application?Using a build xml file you need to create an Ant task which extends a the Ant assign used to act a jar file. The extension comes from the fact that you need to "WEB-INF" directory and all the subdirectories and files stored there. An example taken from the Ant Manual is shown below:In the StackStripes application this is accomplished in the "build xml" file in the following manner:7. How do you lay a war directory in a running Tomcat server? What information does the Ant task need to accomplish this?You simply copy the war file and paste it into the $CATALINA. domiciliate/webapps directory. If you are using an Ant assign to do this then you simply set the location to write the war file to $CATLINA. domiciliate/webapps directory.8. What is the "copy2" architecture? What are its advantages?The Model2 or MVC (Model-View-Controller) architecture is a software engineering design where the model or the data is separated from the user interface or believe in request for each to be unaffected by changes to the other. This is accomplished by adding a controller that handles the interaction between the model and the view.9. What are JSP pages? How are they related to servlets?A JSP page is a page that allows for both static and dynamic content to be generated on the same text-based page. The static content can be rendered in a number of formats including: HTML. WML and XML. The dynamic content is generated using JSP elements.10. Why is there a delay when retrieving a JSP page for the first measure? Where is the Java code for that page stored?When a JSP handles a request for the first time the JSP page must be translated and compiled into a servlet class. The servlet class is stored in the J2EE_HOME directory so that if JSP summon is called on to handle another communicate it does not undergo to be translated and compiled again.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL are tag libraries that accept JSP pages to have functionality in areas such as basic scripting functions. XML processing formatting and database find. JSTL tags are useful because they are in XML format which allows for people who are not experienced with programming to use them more easily. An example of a JSTL tag from StackStripes is shown below:12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?Stripe tags link buttons and fields on a webpage to methods in the web applications java classes. The tags are useful because they easily cerebrate the webpage to the ActionBean class through the get/set methods and any handler methods. Anexammple of a Stripes tag from the StackStripes system is shown below:This tag links the button called "manifold It" to the method doubleIt in the StackActionBean class.13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit allows for a webpage to be accessed via programmable code rather than through a browser. HttpUnit is different from JUnit because it allows for webpages and web applications to be tested whereas JUnit only tests code. This is also why HttpUnit is useful. An example of HttpUnit from the StackStripes system is shown below: This code pushes the number "1" onto the stack in the StackStripes web application.14. What needed to be changed in order to implement the Double It button? What didn't be to be changed? What did you learn about the MVC design copy from this apply?The "list jsp" page had to be modified to add a add for the manifold it feature using the stripes tag for buttons. The StackActionBean and StackModel classes had to be modified to add the appropriate doubleIt methods. Nothing else had to be modified (the controller remained the same). Because of that. I learned that the MVC design copy is flexible and allows for easy additions.15. What are the equivalence classes that need to be tested for the Double It add?evaluate the manifold it add on an alter stack a small stack and a large stack.16. Provide two screen images of your new StackStripes application with the manifold It button one showing the page before and one showing the summon after hitting the "Double It" button. Before:After:17. What is the singleton design pattern? What is an example of its use in StackStripes? Why is it needed?The singleton design pattern states that there is only one instance of a categorise that is instantiated. An example of it in StackStripes is: It is needed so that everyone who is using the class is using the same instance of it.18. Some of the StackStripes tests exercise label on the "server side" while others exercise code on the "client" side. Which evaluate classes exercise code on the "server" and which apply label on the "client"? How does Emma deal with this to act appropriate coverage data?TestStackModel java exercises code on the client side. TestStackActionBean exercises code on the server side. In request for Emma to report on the server side coverage. Tomcat must be shutdown first.19. Running 'ant -f junit create xml' results in the following aim invocations: tomcat check tomcat undeploy hive away war tomcat deploy junit drive junit report junit. Explain what each of these targets do tomcat check:Checks to make sure that tomcat is running tomcat undeploy:Undeploys/removes the web application from Tomcat compile:Compiles all the code war:Builds the war directory structure tomcat position:Deploys/adds the web application to Tomcat junit tool:Runs all JUnit tests junit inform:Creates the HTML JUnit inform junit: Checks for JUnit errors and runs junit drive and junit report.

Forex Groups - Tips on Trading

Related article:
http://j-engineering-log.blogspot.com/2007/11/25webappquestions.html

comments | Add comment | Report as Spam


"25.WebAppQuestions" posted by ~Ray
Posted on 2008-03-12 23:13:16

1. Explain in your own words the meaning of the web "request-response cycle". A client makes a communicate for information from a web-server. The web-server will then try to match this request with the appropriate response. An example of a typical response would be a HTML page. When the client receives the response the client can then make another communicate which will trigger another response thus forming a request-response cycle.2. Explain how servlets facilitate processing of the request-response cycle. Servlets grow the ability of the request-response cycle by allowing for dynamic content to be included in responses. Since they are Java classes they can be easily tailored to fit the domain in which they ordain be used.3. How do you login to the Tomcat Manager?If Tomcat is running simply direct your web browser to the url http://localhost:8080/. Then click on the link: "Tomcat Manager" and write in the user id and corresponding password. If Tomcat is not running type in "startup" on the command lie (assuming you have added the Tomcat bin folder to your path environment variable) and follow the above steps.4. What is the Tomcat Manager used for in the StackStripes application?The Tomcat Manager is used to deploy the StackStripes application.5. What is the directory and register layout of an installed web application like StackStripes? (This is NOT the same as the directory and register layout of the StackStripes distribution!)The directory will be the system label ("stackstripes" or "stackstripes- " for dilate). Inside that directory there are jsp files which are the homepage and other pages for the web application. Then there is a "META-INF" subdirectory and a "WEB-INF" subdirectory. The "META-INF" directory contains meta information about the web application. The "WEB-INF" directory contains the configuration file "web xml" along with a "classes" directory a "lib" directory and possibly a tags directory. The "classes" directory contains properties files and the java classes. The "lib" directory contains the jar files used by the web application. The "tags" directory contains implementations of tag libraries.6. How do you build a war directory coordinate in Ant? Where is this accomplished in the StackStripes application?Using a create xml register you need to act an Ant task which extends a the Ant task used to create a jar register. The extension comes from the fact that you be to "WEB-INF" directory and all the subdirectories and files stored there. An example taken from the Ant Manual is shown below:In the StackStripes application this is accomplished in the "build xml" register in the following manner:7. How do you install a war directory in a running Tomcat server? What information does the Ant task need to accomplish this?You simply copy the war file and paste it into the $CATALINA. domiciliate/webapps directory. If you are using an Ant task to do this then you simply set the location to copy the war file to $CATLINA. HOME/webapps directory.8. What is the "Model2" architecture? What are its advantages?The copy2 or MVC (Model-View-Controller) architecture is a software engineering design where the model or the data is separated from the user interface or believe in order for each to be unaffected by changes to the other. This is accomplished by adding a controller that handles the interaction between the copy and the believe.9. What are JSP pages? How are they related to servlets?A JSP summon is a summon that allows for both static and dynamic circumscribe to be generated on the same text-based summon. The static circumscribe can be rendered in a be of formats including: HTML. WML and XML. The dynamic content is generated using JSP elements.10. Why is there a delay when retrieving a JSP page for the first time? Where is the Java code for that page stored?When a JSP handles a request for the first time the JSP page must be translated and compiled into a servlet class. The servlet class is stored in the J2EE_domiciliate directory so that if JSP summon is called on to command another communicate it does not have to be translated and compiled again.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL are tag libraries that allow JSP pages to have functionality in areas such as basic scripting functions. XML processing formatting and database access. JSTL tags are useful because they are in XML change which allows for people who are not experienced with programming to use them more easily. An example of a JSTL tag from StackStripes is shown below:12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?mark tags link buttons and fields on a webpage to methods in the web applications java classes. The tags are useful because they easily cerebrate the webpage to the ActionBean class through the get/set methods and any handler methods. Anexammple of a Stripes tag from the StackStripes system is shown below:This tag links the button called "Double It" to the method doubleIt in the StackActionBean class.13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit allows for a webpage to be accessed via programmable code rather than through a browser. HttpUnit is different from JUnit because it allows for webpages and web applications to be tested whereas JUnit only tests label. This is also why HttpUnit is useful. An example of HttpUnit from the StackStripes system is shown below: This code pushes the number "1" onto the lade in the StackStripes web application.14. What needed to be changed in order to apply the Double It button? What didn't need to be changed? What did you learn about the MVC design pattern from this apply?The "list jsp" page had to be modified to add a button for the double it feature using the stripes tag for buttons. The StackActionBean and StackModel classes had to be modified to add the appropriate doubleIt methods. Nothing else had to be modified (the controller remained the same). Because of that. I learned that the MVC create by mental act pattern is flexible and allows for easy additions.15. What are the equivalence classes that be to be tested for the Double It button?evaluate the double it add on an empty lade a small stack and a large stack.16. give two screen images of your new StackStripes application with the manifold It button one showing the page before and one showing the page after hitting the "Double It" button. Before:After:17. What is the singleton design pattern? What is an example of its use in StackStripes? Why is it needed?The singleton design copy states that there is only one dilate of a class that is instantiated. An example of it in StackStripes is: It is needed so that everyone who is using the class is using the same dilate of it.18. Some of the StackStripes tests exercise label on the "server align" while others exercise code on the "client" side. Which test classes exercise code on the "server" and which exercise code on the "client"? How does Emma deal with this to create appropriate coverage data?TestStackModel java exercises code on the client side. TestStackActionBean exercises label on the server align. In order for Emma to inform on the server side coverage. Tomcat must be shutdown first.19. Running 'ant -f junit create xml' results in the following target invocations: tomcat check tomcat undeploy compile war tomcat deploy junit drive junit report junit. Explain what each of these targets do tomcat analyse:Checks to alter sure that tomcat is running tomcat undeploy:Undeploys/removes the web application from Tomcat hive away:Compiles all the label war:Builds the war directory structure tomcat position:Deploys/adds the web application to Tomcat junit tool:Runs all JUnit tests junit report:Creates the HTML JUnit report junit: Checks for JUnit errors and runs junit tool and junit report.

Forex Groups - Tips on Trading

Related article:
http://j-engineering-log.blogspot.com/2007/11/25webappquestions.html

comments | Add comment | Report as Spam


"Web App Questions" posted by ~Ray
Posted on 2008-01-01 21:17:23

inform in your own words the meaning of the web "request-response cycle". The client sends a request to the server the server processes the request the server sends a response the client figures out what it wants next and sends another request and the cycle repeats. Explain how servlets aid processing of the request-response cycle. Servlets to the server-side processing of the cycle. There's a framework that handles receiving the communicate and sending the response so you can complete the server side by creating servlets. What is the Tomcat Manager used for in the StackStripes application? It's not really used inside the application but the build system uses it to deploy and undeploy the application (and check that it has access to deploy and undeploy). What is the directory and file layout of an installed web application like StackStripes? (This is NOT the same as the directory and file layout of the StackStripes distribution!) How do you build a war directory coordinate in Ant? Where is this accomplished in the StackStripes application? The directory structure is built by creating a WEB-INF sub-directory and putting What is the "Model2" architecture? What are its advantages? The create by mental act is split into a model view and controller. The view is what the user directly interacts with the model stores the data and the controller responds to what what the user does to the view by doing things to the model and view. The advantages are that it's fairly easy to understand and it separates three types of things that are different allowing you to do things with just one of them at a time. For example you can create the view using JSTL and the controller by writing Java. JSP pages are web page servlets (or parts of servlets) written in a way that directly includes the static parts of the page. Why is there a delay when retrieving a JSP summon for the first time? Where is the Java code for that summon stored? It has to be converted to Java and compiled. The Java label is stored under a desire complicated path inside the directory where Tomcat is installed. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system? JSTL is an extension to JSP that adds a lot of tags to take the displace of inline Java making it more of a templating system. For example the forEach tag is used to iterate through the stack. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes.

Forex Groups - Tips on Trading

Related article:
http://bpj-613.blogspot.com/2007/11/web-app-questions.html

comments | Add comment | Report as Spam


"svn commit: r586894 - in /maven/plugins/trunk/maven-project-info ..." posted by ~Ray
Posted on 2007-12-15 15:06:50

compose: dennislDate: Sun Oct 21 06:37:43 2007New Revision: 586894URL: Log:o Set EOL style to native. Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/AbstractProjectInfoTestCase java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/CimReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/DependenciesReportTest java (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/DependencyConvergenceReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/IssueTrackingReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/inform/projectinfo/LicenseReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/MailingListsReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/inform/projectinfo/ProjectIndexPageReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/ProjectSummaryReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/ScmReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/report/projectinfo/TeamListReportTest java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/inform/projectinfo/stubs/ProjectInfoProjectStub java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/report/projectinfo/stubs/SettingsStub java (props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/resources/plugin-configs/cim-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/dependencies-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/resources/plugin-configs/dependency-convergence-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/resources/plugin-configs/index-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/issue-tracking-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/license-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/resources/plugin-configs/mailing-list-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/project-team-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/scm-plugin-config xml (contents props changed) maven/plugins/trunk/maven-project-info-reports-plugin/src/test/resources/plugin-configs/summary-plugin-config xml (contents props changed)Propchange: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectSummaryReport java------------------------------------------------------------------------------ svn:eol-style = nativePropchange: maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/report/projectinfo/AbstractProjectInfoTestCase java------------------------------------------------------------------------------ svn:eol-style = nativePropchange: maven/plugins/trunk/maven-project-info-reports-plugin/src/evaluate/java/org/apache/maven/inform/projectinfo/CimReportTest java------------------------------------------------------------------------------ svn:eol-style = nativeModified: maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/report/projectinfo/DependenciesReportTest javaURL: ==============================================================================--- maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/DependenciesReportTest java (original)+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/test/java/org/apache/maven/inform/projectinfo/DependenciesReportTest java Sun Oct 21 06:37:43 2007@@ -1,92 +1,92 @@-package org apache maven report projectinfo;--/*- * Licensed to the Apache Software Foundation (ASF) under one- * or more contributor license agreements. See the NOTICE file- * distributed with this bring home the bacon for additional information- * regarding procure ownership. The ASF licenses this file- * to you under the Apache License. Version 2.0 (the- * "License"); you may not use this register except in compliance- * with the License. You may obtain a copy of the License at- *- * - *- * Unless required by applicable law or agreed to in writing,- * software distributed under the authorise is distributed on an- * "AS IS" BASIS. WITHOUT WARRANTIES OR CONDITIONS OF ANY- * KIND either express or implied. See the authorise for the- * specific language governing permissions and limitations- * under the License.- */--import java net. URL;--import com meterware httpunit. GetMethodWebRequest;-import com meterware httpunit. TextBlock;-import com meterware httpunit. WebConversation;-import com meterware httpunit. WebRequest;-import com meterware httpunit. WebResponse;-import com meterware httpunit. WebTable;--/**- * @author Edwin Punzalan- * @author <a href="mailto:">Vincent Siveton</a>- * @version $Id $- */-public class DependenciesReportTest- extends AbstractProjectInfoTestCase-{- /**- * WebConversation object- */- private static final WebConversation webConversation = new WebConversation();-- /**- * Test report- *- * @throws Exception if any- */- public cancel testReport()- throws Exception- {- generateReport( "dependencies". "dependencies-plugin-config xml" );- assertTrue( "evaluate html generated" getGeneratedReport( "dependencies html" ) exists() );-- URL reportURL = getGeneratedReport( "dependencies html" ) toURL();- assertNotNull( reportURL );-- // HTTPUnit- WebRequest request = new GetMethodWebRequest( reportURL toString() );- WebResponse response = webConversation getResponse( communicate );-- // Basic HTML tests- assertTrue( response isHTML() );- assertTrue( response getContentLength() > 0 );-- // Test the Page title- assertEquals( getString( "inform dependencies name" ) + " - " + getString( "report dependencies title" ),- response getTitle() );-- // Test the tables- WebTable[] webTables = response getTables();- assertEquals( webTables length. 2 );-- assertEquals( webTables[0] getColumnCount(). 6 );- assertEquals( webTables[0] getRowCount(). 1 + getTestMavenProject() getDependencies() coat() );-- assertEquals( webTables[1] getColumnCount(). 6 );-- // evaluate the texts- TextBlock[] textBlocks.

Forex Groups - Tips on Trading

Related article:
http://www.nabble.com/forum/ViewPost.jtp?post=13329165&framed=y&skin=177

comments | Add comment | Report as Spam


"Web App Questions" posted by ~Ray
Posted on 2007-12-09 13:39:46

Overview:This report will contain answers to the following questions. Questions:1. inform in your own words the meaning of the web "request-response cycle". The meaning of "request-response make pass" refers to a client and a server. Usually it is the client which does the "request" and the server which does the "response". The client will send various request to a server which the server ordain act with various actions such as sending a html page. This is repeated over and over thus calling it a "make pass".2. inform how servlets facilitate processing of the request-response cycle. Servlets are java code usually in a server application that can affect communicate and respond to that request which will depend on the request itself.3. How do you login to the Tomcat Manager?First run the server from the dominate lie. Then open the web from a browser. Click on the Tomcat Manager link and then enter the username: "admin" and password "changethis".4. What is the Tomcat Manager used for in the StackStripes application?The tomcat manager is used so that our StackStripes application can be executed in a web browser by allowing the program to run through an application server such as tomcat.5. What is the directory and register layout of an installed web application desire StackStripes? (This is NOT the same as the directory and file layout of the StackStripes distribution!)The directory in which the StackStripes dwell in is first located where the apache-tomcat folder is located. Within this folder will contain another folder called "Webapps" which will contain the stackstrips application. Within the stackstripes folder contains more files such as a "META-INF" AND "WEB-INF" folders and jsp files.6. How do you build a war directory coordinate in Ant? Where is this accomplished in the StackStripes application?To build a war directory structure in ant a aim must be created within the create xml file. Within this target certain tags are necessary in request to process where the war register will be placed and which files are to be copied into the archieve.7. How do you install a war directory in a running Tomcat server? What information does the Ant task be to accomplish this?This can be done exactly the same way as we installed the example war file into stripes. A war file must be copied into the "webapps" folder where tomcat will automatically lay the war directory.8. What is the "Model2" architecture? What are its advantages?The Model2 architecture consist of a "model" which is the actual content that is stored in databases or xml files. It also consist of a "believe" which is the html page and finally consist of a "controller" which is program code that dynamically gathers data and generates the content within the html.9. What are JSP pages? How are they related to servlets?A JSP page is a text-based enter that has 2 types of text. One write is static template data such as HTML and XML data. The other type is JSP elements which constructs dynamic circumscribe. JSP pages are related to servlets by means that a JSP summon services requests as a servlet.10. Why is there a decelerate when retrieving a JSP page for the first time? Where is the Java code for that page stored?When ever a JSP page service a request it must turn into a servlet. The servlet is stored in a J2EE_HOME directory. If the JSP page runs again it does not have to be turned into a servlet since the servlet is already stored thus saving us time. The java code is stored within the summon itself.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL tags is part of a tag library that encapsulates core functionality commonly needed when writing dynamic JSP pages. JSTL tags are useful that they accept embedded java code to look nicer within scriplet tags. Without JSTL tags java code cannot cannot be reused by other JSP pages and retrieving objects our of the http request and session is cumbersome. A example of a JSTL tag from the lade stripes is the "for each" tag which allows looping.12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?Stripes tags are tags that link web summon buttons to java bean like "get" and "set" methods. They are useful because they use the same name as the method's name. An example of a stripes tag is which is from the list jsp file.13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit is a drive that can be used to be a web page using schedule like code. HttpUnit is different from using Junit because HttpUnit ordain actually use the actual web page that is from a server. HttpUnit is useful because we can write code to do actual user interactions with a web summon in a simple manner. A example of a HttpUnit is:pushForm = response getFormWithID("PushForm");pushRequest = pushForm getRequest();pushRequest setParameter("numToPush". "2");response = conversation getResponse(pushRequest);which will actually act a click on the "PushForm" add on the webpage.14. What needed to be changed in order to implement the Double It button? What didn't need to be changed? What did you learn about the MVC create by mental act copy from this exercise?In request to implement a "double it" button the JSP page had to be modified to include another button and a additional method had to be created to apply the manifold it answer. The way that the two parts communicated did not need to change. I learned that the MVC design pattern can accept changes to the JSP pages relatively easy.15. What are the equivalence classes that need to be tested for the Double It add?To completely evaluate the "manifold it' button it needs to be tested with a empty stack. 1 element or a large be of elements.16. Provide two check images of your new StackStripes application with the manifold It button one showing the summon before and one showing the summon after hitting the "manifold It" add. Before:After:17. What is the singleton design pattern? What is an example of its use in StackStripes? Why is it needed?A singleton design copy refers that only 1 dilate of the categorise can be created. An example of a singleton design copy that is located in the stackstripes application consist of the following lines of label:private static StackModel theInstance = new StackModel();private ClearStack lade;private StackModel() { this stack = new ClearStack();}This ordain accept each client that access and minipulate the same lade.18. Some of the StackStripes tests exercise label on the "server side" while others exercise code on the "client" side. Which evaluate classes apply code on the "server" and which exercise code on the "client"? How does Emma deal with this to create allot coverage data?The "TestStackActionBean java" register test the code on the server side since it uses HttpUnit. The "TestStackModel java" file test the code for the client align. In order for emma to correctly report the coverage on the server side the tomcat applicatio must be shutdown first.19. Running 'ant -f junit build xml' results in the following target invocations: tomcat analyse tomcat undeploy compile war tomcat position junit tool junit report junit. Explain what each of these targets do tomcat check -makes sure that the tomcat application is running tomcat undeploy - removes the stackstripes from the server compile - compiles the codewar - packages the web files into a WAR file tomcat position - add.

Forex Groups - Tips on Trading

Related article:
http://hongnguy.blogspot.com/2007/11/web-app-questions.html

comments | Add comment | Report as Spam


"Web App Questions" posted by ~Ray
Posted on 2007-12-09 13:39:45

Overview:This report ordain contain answers to the following questions. Questions:1. inform in your own words the meaning of the web "request-response cycle". The meaning of "request-response make pass" refers to a client and a server. Usually it is the client which does the "request" and the server which does the "response". The client will send various request to a server which the server ordain respond with various actions such as sending a html summon. This is repeated over and over thus calling it a "cycle".2. inform how servlets aid processing of the request-response cycle. Servlets are java code usually in a server application that can affect request and respond to that communicate which ordain depend on the request itself.3. How do you login to the Tomcat Manager?First run the server from the dominate line. Then open the web from a browser. Click on the Tomcat Manager link and then enter the username: "admin" and password "changethis".4. What is the Tomcat Manager used for in the StackStripes application?The tomcat manager is used so that our StackStripes application can be executed in a web browser by allowing the program to run through an application server such as tomcat.5. What is the directory and file layout of an installed web application like StackStripes? (This is NOT the same as the directory and file layout of the StackStripes distribution!)The directory in which the StackStripes reside in is first located where the apache-tomcat folder is located. Within this folder ordain include another folder called "Webapps" which ordain include the stackstrips application. Within the stackstripes folder contains more files such as a "META-INF" AND "WEB-INF" folders and jsp files.6. How do you create a war directory structure in Ant? Where is this accomplished in the StackStripes application?To build a war directory structure in ant a aim must be created within the create xml file. Within this target certain tags are necessary in order to affect where the war file ordain be placed and which files are to be copied into the archieve.7. How do you lay a war directory in a running Tomcat server? What information does the Ant task need to accomplish this?This can be done exactly the same way as we installed the example war file into stripes. A war register must be copied into the "webapps" folder where tomcat will automatically install the war directory.8. What is the "copy2" architecture? What are its advantages?The Model2 architecture consist of a "model" which is the actual circumscribe that is stored in databases or xml files. It also consist of a "view" which is the html summon and finally be of a "controller" which is program code that dynamically gathers data and generates the content within the html.9. What are JSP pages? How are they related to servlets?A JSP page is a text-based document that has 2 types of text. One write is static template data such as HTML and XML data. The other type is JSP elements which constructs dynamic circumscribe. JSP pages are related to servlets by means that a JSP page services requests as a servlet.10. Why is there a delay when retrieving a JSP page for the first time? Where is the Java label for that page stored?When ever a JSP page function a request it must move into a servlet. The servlet is stored in a J2EE_HOME directory. If the JSP page runs again it does not undergo to be turned into a servlet since the servlet is already stored thus saving us time. The java code is stored within the summon itself.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL tags is part of a tag library that encapsulates core out functionality commonly needed when writing dynamic JSP pages. JSTL tags are useful that they allow embedded java code to look nicer within scriplet tags. Without JSTL tags java label cannot cannot be reused by other JSP pages and retrieving objects our of the http request and session is cumbersome. A example of a JSTL tag from the stack stripes is the "for each" tag which allows looping.12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?Stripes tags are tags that link web page buttons to java hit desire "get" and "set" methods. They are useful because they use the same name as the method's name. An example of a stripes tag is which is from the list jsp file.13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit is a tool that can be used to represent a web page using program like code. HttpUnit is different from using Junit because HttpUnit ordain actually use the actual web summon that is from a server. HttpUnit is useful because we can create verbally code to do actual user interactions with a web summon in a simple manner. A example of a HttpUnit is:pushForm = response getFormWithID("PushForm");pushRequest = pushForm getRequest();pushRequest setParameter("numToPush". "2");response = conversation getResponse(pushRequest);which will actually perform a move on the "PushForm" button on the webpage.14. What needed to be changed in order to implement the Double It button? What didn't need to be changed? What did you hit the books about the MVC create by mental act pattern from this apply?In order to implement a "double it" button the JSP summon had to be modified to consider another button and a additional method had to be created to implement the manifold it answer. The way that the two parts communicated did not need to change. I learned that the MVC design copy can accept changes to the JSP pages relatively easy.15. What are the equivalence classes that be to be tested for the manifold It add?To completely test the "double it' button it needs to be tested with a empty stack. 1 element or a large number of elements.16. give two check images of your new StackStripes application with the Double It button one showing the summon before and one showing the page after hitting the "manifold It" add. Before:After:17. What is the singleton create by mental act copy? What is an example of its use in StackStripes? Why is it needed?A singleton create by mental act copy refers that only 1 dilate of the class can be created. An example of a singleton create by mental act pattern that is located in the stackstripes application consist of the following lines of label:private static StackModel theInstance = new StackModel();private ClearStack stack;private StackModel() { this stack = new ClearStack();}This will allow each client that access and minipulate the same stack.18. Some of the StackStripes tests exercise label on the "server side" while others apply code on the "client" side. Which test classes exercise label on the "server" and which apply label on the "client"? How does Emma deal with this to act appropriate coverage data?The "TestStackActionBean java" register test the label on the server align since it uses HttpUnit. The "TestStackModel java" register test the code for the client side. In request for emma to correctly report the coverage on the server align the tomcat applicatio must be shutdown first.19. Running 'ant -f junit build xml' results in the following target invocations: tomcat check tomcat undeploy hive away war tomcat deploy junit drive junit inform junit. Explain what each of these targets do tomcat analyse -makes sure that the tomcat application is running tomcat undeploy - removes the stackstripes from the server hive away - compiles the codewar - packages the web files into a WAR file tomcat deploy - add.

Forex Groups - Tips on Trading

Related article:
http://hongnguy.blogspot.com/2007/11/web-app-questions.html

comments | Add comment | Report as Spam


"Web App Questions" posted by ~Ray
Posted on 2007-12-09 13:39:33

Overview:This report will include answers to the following questions. Questions:1. Explain in your own words the meaning of the web "request-response make pass". The meaning of "request-response cycle" refers to a client and a server. Usually it is the client which does the "communicate" and the server which does the "response". The client ordain displace various communicate to a server which the server will respond with various actions such as sending a html summon. This is repeated over and over thus calling it a "make pass".2. Explain how servlets facilitate processing of the request-response make pass. Servlets are java code usually in a server application that can process communicate and respond to that request which will depend on the request itself.3. How do you login to the Tomcat Manager?First run the server from the dominate line. Then change state the web from a browser. move on the Tomcat Manager link and then enter the username: "admin" and password "changethis".4. What is the Tomcat Manager used for in the StackStripes application?The tomcat manager is used so that our StackStripes application can be executed in a web browser by allowing the program to run through an application server such as tomcat.5. What is the directory and file layout of an installed web application desire StackStripes? (This is NOT the same as the directory and file layout of the StackStripes distribution!)The directory in which the StackStripes reside in is first located where the apache-tomcat folder is located. Within this folder ordain contain another folder called "Webapps" which will contain the stackstrips application. Within the stackstripes folder contains more files such as a "META-INF" AND "WEB-INF" folders and jsp files.6. How do you build a war directory coordinate in Ant? Where is this accomplished in the StackStripes application?To build a war directory structure in ant a aim must be created within the build xml file. Within this target certain tags are necessary in order to process where the war file will be placed and which files are to be copied into the archieve.7. How do you lay a war directory in a running Tomcat server? What information does the Ant task need to complete this?This can be done exactly the same way as we installed the example war file into stripes. A war register must be copied into the "webapps" folder where tomcat will automatically install the war directory.8. What is the "Model2" architecture? What are its advantages?The copy2 architecture consist of a "copy" which is the actual content that is stored in databases or xml files. It also consist of a "view" which is the html page and finally be of a "controller" which is program label that dynamically gathers data and generates the circumscribe within the html.9. What are JSP pages? How are they related to servlets?A JSP page is a text-based document that has 2 types of text. One write is static template data such as HTML and XML data. The other type is JSP elements which constructs dynamic content. JSP pages are related to servlets by means that a JSP summon services requests as a servlet.10. Why is there a delay when retrieving a JSP summon for the first time? Where is the Java code for that page stored?When ever a JSP page function a request it must move into a servlet. The servlet is stored in a J2EE_HOME directory. If the JSP summon runs again it does not undergo to be turned into a servlet since the servlet is already stored thus saving us time. The java label is stored within the page itself.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL tags is part of a tag library that encapsulates core out functionality commonly needed when writing dynamic JSP pages. JSTL tags are useful that they accept embedded java label to look nicer within scriplet tags. Without JSTL tags java label cannot cannot be reused by other JSP pages and retrieving objects our of the http request and session is cumbersome. A example of a JSTL tag from the stack stripes is the "for each" tag which allows looping.12. What are Stripes tags? Why are they useful? What is an example Stripes tag from the StackStripes system?Stripes tags are tags that cerebrate web page buttons to java bean like "get" and "set" methods. They are useful because they use the same label as the method's name. An example of a stripes tag is which is from the index jsp file.13. What is HttpUnit? How is it different from JUnit? Why is it useful? What is an example use of HttpUnit from the StackStripes system?HttpUnit is a tool that can be used to represent a web summon using schedule desire label. HttpUnit is different from using Junit because HttpUnit will actually use the actual web summon that is from a server. HttpUnit is useful because we can write label to do actual user interactions with a web page in a simple manner. A example of a HttpUnit is:pushForm = response getFormWithID("PushForm");pushRequest = pushForm getRequest();pushRequest setParameter("numToPush". "2");response = conversation getResponse(pushRequest);which ordain actually perform a click on the "PushForm" button on the webpage.14. What needed to be changed in request to apply the Double It button? What didn't need to be changed? What did you learn about the MVC design pattern from this exercise?In order to implement a "double it" add the JSP page had to be modified to include another button and a additional method had to be created to implement the manifold it function. The way that the two parts communicated did not need to change. I learned that the MVC create by mental act pattern can allow changes to the JSP pages relatively easy.15. What are the equivalence classes that need to be tested for the manifold It button?To completely test the "double it' button it needs to be tested with a empty stack. 1 element or a large number of elements.16. give two screen images of your new StackStripes application with the Double It add one showing the page before and one showing the summon after hitting the "manifold It" button. Before:After:17. What is the singleton create by mental act copy? What is an example of its use in StackStripes? Why is it needed?A singleton design pattern refers that only 1 dilate of the class can be created. An example of a singleton create by mental act pattern that is located in the stackstripes application be of the following lines of code:private static StackModel theInstance = new StackModel();private ClearStack stack;private StackModel() { this stack = new ClearStack();}This will allow each client that find and minipulate the same lade.18. Some of the StackStripes tests exercise code on the "server side" while others exercise label on the "client" align. Which evaluate classes exercise label on the "server" and which apply label on the "client"? How does Emma deal with this to create allot coverage data?The "TestStackActionBean java" file test the label on the server align since it uses HttpUnit. The "TestStackModel java" file evaluate the code for the client side. In request for emma to correctly inform the coverage on the server side the tomcat applicatio must be shutdown first.19. Running 'ant -f junit create xml' results in the following target invocations: tomcat check tomcat undeploy compile war tomcat deploy junit tool junit report junit. Explain what each of these targets do tomcat check -makes sure that the tomcat application is running tomcat undeploy - removes the stackstripes from the server hive away - compiles the codewar - packages the web files into a WAR file tomcat deploy - add.

Forex Groups - Tips on Trading

Related article:
http://hongnguy.blogspot.com/2007/11/web-app-questions.html

comments | Add comment | Report as Spam


"25.WebAppQuestions" posted by ~Ray
Posted on 2007-11-27 20:04:05

1. Explain in your own words the meaning of the web "request-response make pass". As I known request is like a message that sent from client web browser and response is the server who received the message and feedback to client. So “request-response cycle” is a call of client-server.2. Explain how servlets facilitate processing of the request-response cycle. Servlets is API software that comprehend a communicate and base on communicate to create a response.3. How do you login to the Tomcat Manager?First alter sure tomcat is running then act an account label and password by modify “tomcat-user xml” register. Then go to browse and type “localhost:8080” go to Tomcat Manager by using the username and password that created before.4. What is the Tomcat Manager used for in the StackStripes application?Since we need to run an application on tomcat web server so we need to get authorize on web server to make the application run so we need tomcat manager to communicate between application and web server.5. What is the directory and file layout of an installed web application desire StackStripes? (This is NOT the same as the directory and register layout of the StackStripes distribution!)In StackStripes directory it consider a folder call “web” under that folder is web summon for JSP also it had a folder label WEB-INF it include a mark library that the system be these when compile with stripes.6. How do you build a war directory structure in Ant? Where is this accomplished in the StackStripes application?To build a war directory coordinate in Ant we be tomcat manager to compile the whole java register and they make a war file (this file same with jar register). Tomcat ordain use this file to kill the application. In StackStripes application we run tomcat create xml that will do the above process to make a war file and deploy on tomcat web server then show the application on web browser.7. How do you lay a war directory in a running Tomcat server? What information does the Ant task be to accomplish this?When Tomcat server running we can use Tomcat Manager to install a war directory. In Ant we need to run tomcat create xml to build war directory.8. What is the "copy2" architecture? What are its advantages?Model 2 is feature servlets and JSP together it’s make the application server more dynamic. The advantages of model 2 is separate process request and respond challenge servlets ordain hold back all affect and displace to JSP to respond client align.9. What are JSP pages? How are they related to servlets?JSP is Java Server Page is able to receive client request and respond to client which is able to act between server and client. JSP is compiled into java servlets by JSP compiler.10. Why is there a decelerate when retrieving a JSP page for the first measure? Where is the Java code for that page stored?When JSP received a request then servlets will compile the application we know hive away java application that the system ordain send a lot of compiled data back to client side so it may take a desire time for first measure. The java label will hold on it at the browser cache.11. What are JSTL tags? Why are they useful? What is an example JSTL tag from the StackStripes system?JSTL tags is able to call the library from JSP. JSTL can do some code programming code on HTML code i e call FOR circle in HTML. The example on StackStripes is 14. What needed to be changed in order to implement the Double It button? What didn't need to be changed? What did you learn about the MVC design pattern from this exercise?To implement Double it button that need to dress the form ID label and value that display arrange on Double it add. It didn’t be to change is the HTML tag for create button. Http create is user interface for populate easy to interact with the application. If no MVC that user may not be interact with application.15. What are the equivalence classes that be to be tested for the manifold It button?The goal for Double it add is duplicate fail determine into lade so to test Double it add that must be push one value into lade if the manifold it button is bring home the bacon it may undergo two compete value in the stack.16. Provide two screen images of your new StackStripes application with the Double It button one showing the page before and one showing the page after hitting the "Double It" add. Before hitting the “manifold it” add that it ordain show manifold it add on the summon then after hitting manifold it button it will enjoin to java lade application and duplicate value into stack and displace it back to original summon and then iterator to show what value into lade. 17. What is the singleton create by mental act copy? What is an example of its use in StackStripes? Why is it needed?Singleton design copy is makes many affect into one instance or object. An example of its use in StackStripes ispublic static synchronized StackModel getInstance() {go StackModel theInstance;}It operates more efficiently when only one or a few objects exist.18. Some of the StackStripes tests exercise code on the "server side" while others apply code on the "client" side. Which test classes apply code on the "server" and which apply label on the "client"? How does Emma broach with this to act appropriate coverage data?The TestStackActionBean label is on the server align and the StackActionBean label is on client align because the TestStackActionBean label is use HttpUnit to go through internet protocol to test the label and use JUnit to evaluate StackActionBean in local system. Emma only deal with which method in these code are execute or not to create appropriate coverage data so if one of exercise code doesn’t execute the emma coverage will not be 100%.19. Running 'ant -f junit build xml' results in the following aim invocations: tomcat check tomcat undeploy compile war tomcat deploy junit drive junit inform junit. Explain what each of these targets do.

Forex Groups - Tips on Trading

Related article:
http://jeffreylam2008.blogspot.com/2007/11/25webappquestions.html

comments | Add comment | Report as Spam


"HttpUnit" posted by ~Ray
Posted on 2007-11-17 15:44:17

You too can undergo a page/site about HttpUnit created automatically for you just like this one - except it has YOUR adsense clickbank and amazon affiliate id on it. Go to to see how! HttpUnit is an framework used to perform testing of web sites without the need for a. HttpUnit supports create submission automatic summon redirection and. Written in. HttpUnit allows Java test code to affect returned pages as text. XML or containers of forms tables and links. HttpUnit is come up suited to be used in combination with in request to easily write tests that affirm the proper behaviour of a web place. The use of HttpUnit allows for automated testing of web applications and as a result assists in.

Forex Groups - Tips on Trading

Related article:
http://www.nichecreator.com/sample/HttpUnit.htm

comments | Add comment | Report as Spam


"Testing the Apache Axis2 Web Module with HttpUnit" posted by ~Ray
Posted on 2007-11-09 17:19:35

This tutorial by Charitha Kankanamge demonstrates howHttpUnit is used to evaluate the Axis2 administration console -Web module. At theend of the tutorial you will know how to automate a sanity analyse of theaxis2 Webapp module. Get a real-time be beneath the surface in the with our tools and. Also see our original real-time tracking system. --> DIGG. DIGG IT. DUGG. DIGG THIS. Digg graphics logos designs summon headers add icons scripts and other service names are the trademarks of Digg Inc.

Forex Groups - Tips on Trading

Related article:
http://digg.com/programming/Testing_the_Apache_Axis2_Web_Module_with_HttpUnit

comments | Add comment | Report as Spam


"HTTPUNIT - How to click OK on a javascript confirm popup" posted by ~Ray
Posted on 2007-11-03 13:51:10

Hi all. I'm new using httpunit. I've to evaluate a webpage that deletes an item. When you move on the delete button a confirmation's popup is shown with two buttons (Accept and evaluate). To go on testing the whole website. I need to click on the accept button and I don't experience how to do this. Could anyone help me please? Let me write some code to ilustrate the inspect. //This is the delete button as is written in the html's form tag buch of code <input type="button" class="add" value="delete" onclick="verify onBorrar(this create)"/> bunch of code //This is the javascript that handles the onclick event function affirm_onBorrar(create){ for(var i = 0;i<form selection length;i++){ if(form selection checked){ if(affirm('blablabla'){ form challenge = 'ConsAlmBorrar jsp?'; create refer(); } } } } affirm onBorrar = verify_onBorrar; say that selection is the label of a group of radio buttons With the httpunit java class that I've made. I'm able to select the item I be to remove click on the delete add and here is where the popup window appear and I can't go advance. convey you Indeed.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5210108

comments | Add comment | Report as Spam


"HTTPUNIT - How to click OK on a javascript confirm popup" posted by ~Ray
Posted on 2007-11-03 13:51:10

Hi all. I'm new using httpunit. I've to test a webpage that deletes an item. When you move on the delete button a confirmation's popup is shown with two buttons (evaluate and reject). To go on testing the whole website. I need to move on the accept add and I don't know how to do this. Could anyone help me please? Let me type some label to ilustrate the inspect. //This is the remove add as is written in the html's form tag buch of code <input write="button" class="add" determine="remove" onclick="affirm onBorrar(this form)"/> clump of code //This is the javascript that handles the onclick event answer affirm_onBorrar(form){ for(var i = 0;i<create selection length;i++){ if(create selection checked){ if(confirm('blablabla'){ form action = 'ConsAlmBorrar jsp?'; form submit(); } } } } affirm onBorrar = verify_onBorrar; note that selection is the name of a group of communicate buttons With the httpunit java categorise that I've made. I'm able to decide the item I want to delete click on the delete button and here is where the popup window appear and I can't go advance. convey you Indeed.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5210108

comments | Add comment | Report as Spam


"Java HttpUnit" posted by ~Ray
Posted on 2007-10-28 11:48:58

emulates elements of web browser behaviour and allows you find to web sites through your own Java programs. Cookies are automatically handled and you can easily perform common browser tasks such as clicking links or filling in and submitting forms. Used in combination with you can create verbally programs to evaluate your web sites with ease. How about a simple schedule to evaluate for broken links or even your own web spider to follow links across the Web? Here's a few lines of label taken from the HttpUnit place to show how easy it is: WebConversation wc = new WebConversation();WebResponse resp = wc getResponse( "http://www notestomyself net" );WebLink link = resp getLinkWith( "about" );cerebrate click(); This is just what I've been looking for! In my inspect. I'm tinkering with a schedule I wrote a while approve to alter it to directly transfer graphics to this site. I experience I could use macro programs or even Visual Basic but I like this elegant solution particularly because I can easily integrate it with my old Java code. The only down side you might lay out is that you can't go the browser visually without advance output from your schedule.

Forex Groups - Tips on Trading

Related article:
http://www.notestomyself.net/notes/2007/08/java-httpunit.html

comments | Add comment | Report as Spam


"Java HttpUnit" posted by ~Ray
Posted on 2007-10-28 11:48:58

emulates elements of web browser behaviour and allows you access to web sites through your own Java programs. Cookies are automatically handled and you can easily perform common browser tasks such as clicking links or filling in and submitting forms. Used in combination with you can write programs to test your web sites with ease. How about a simple program to evaluate for broken links or change surface your own web spider to go links across the Web? Here's a few lines of label taken from the HttpUnit site to show how easy it is: WebConversation wc = new WebConversation();WebResponse resp = wc getResponse( "http://www notestomyself net" );WebLink link = resp getLinkWith( "about" );link move(); This is just what I've been looking for! In my case. I'm tinkering with a program I wrote a while approve to enable it to directly transfer graphics to this site. I know I could use macro programs or even Visual Basic but I like this elegant solution particularly because I can easily integrate it with my old Java label. The only drink side you might lay out is that you can't follow the browser visually without further output from your schedule.

Forex Groups - Tips on Trading

Related article:
http://www.notestomyself.net/notes/2007/08/java-httpunit.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the httpunit archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


httpunit