Comment on Tutorial - Creating the first application using Struts 2 By Gokul Verma
Comment Added by : Trishul
Comment Added at : 2009-10-26 07:32:57
Comment on Tutorial : Creating the first application using Struts 2 By Gokul Verma
I got the sample and the test working. Thanks a lot. Here's web.xml for the sample:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="<a href="http://java.sun.com/xml/ns/j2ee"">http://java.sun.com/xml/ns/j2ee"</a> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"">http://www.w3.org/2001/XMLSchema-instance"</a> xsi:schemaLocation="<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a> <a href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</a>>
    <display-name>Struts Blank</display-name>
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>
Also,
struts.xml -->
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "<a href="http://struts.apache.org/dtds/struts-2.0.dtd"">http://struts.apache.org/dtds/struts-2.0.dtd"</a>>
<struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="false" />
    <!--
    <include file="example.xml"/>
    <package name="default" namespace="/" extends="struts-default">
        <default-action-ref name="index" />
        <action name="index">
            <result type="redirectAction">
                <param name="actionName">HelloWorld</param>
                <param name="namespace">/example</param>
            </result>
        </action>
    </package>
-->
    <!-- Add packages here -->
    <package name="default" namespace="/" extends="struts-default">
      <action name="HelloWorld" class="com.thinkbeyond.action.HelloWorld">
         <result>/HelloWorld.jsp</result>
      </action>
    </package>
</struts>
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. thanks very much
View Tutorial By: abrham at 2012-12-20 07:36:14
2. where i can find jar files?
please tell me
View Tutorial By: chandu at 2012-06-17 14:14:28
3. very nice explanation of STATIC....HAY man , you j
View Tutorial By: harkeet at 2012-12-18 17:48:43
4. i want to need SCJD Dums. so please help me that w
View Tutorial By: Dayamay singh at 2009-01-03 00:07:06
5. hai,
i want to know how the connect
View Tutorial By: V.Selvi at 2010-02-28 21:01:33
6. I really thanks to you for providing wonderful inf
View Tutorial By: Chandra Sekhar Puli at 2009-11-07 04:03:44
7. Hi Friends.... Can you please send the working ver
View Tutorial By: shafi at 2010-02-18 08:28:49
8. Hi Along with your provided code below, if we are
View Tutorial By: Roshan at 2011-05-02 12:06:27
9. int myColor = 0xFFFF00;
paint(Graphics grap
View Tutorial By: krishna mohan at 2010-02-01 05:22:12
10. It work fine with message below 160 chars. How can
View Tutorial By: Milind at 2011-12-15 06:20:33