Home Answers Viewqa Struts Struts 2 Tutorial

 
 


Lou Pelagalli
Struts 2 Tutorial
4 Answer(s)      2 years and 4 months ago
Posted in : Struts

Hi,

I�m taking your Struts 2 Tutorial at http://www.roseindia.net/struts/struts2/struts-2-hello-world-files.shtml.

When I open http://localhost:8080/struts2tutorial/ under ââ?¬Å?Testing Struts 2 Hello World Applicationââ?¬Â? I get the screen displayed in image http://www.roseindia.net/struts/struts2/struts2helloworld.gif, not the home page as displayed in image http://www.roseindia.net/struts/struts2/struts2tutorialhome.gif.

When I try http://localhost:8080/tutorial/HelloWorld.action, I get HTTP Status 404 - /tutorial/HelloWorld.action.

type Status report

message /tutorial/HelloWorld.action.

description The requested resource (/tutorial/HelloWorld.action.) is not available.

Apache Tomcat/6.0.29

I've gone through this page twice with the same results, the second time very carefully of course.

Any suggestions?

View Answers

January 12, 2011 at 5:51 PM


Hello Friend,

Check the configuration, you have done in struts.xml. It seems that server is unable to find the Action class.

Run your code with the following url:

http://localhost:8080/struts2tutorial/roseindia/HelloWorld.action

Thanks


January 13, 2011 at 6:19 AM


Hi Friend,

Thank you for your prompt reply!

I'm sorry but I don't follow your suggestion. Is it possible to send my struts2tutorial.jar?

When I use as you suggested in your response http://localhost:8080/struts2tutorial/roseindia/HelloWorld.action

I get Struts 2 Hello World Tutorial! Current date and time is: Wed Jan 12 16:40:50 PST 2011

which is fine.

But when I use http://localhost:8080/tutorial/HelloWorld.action as suggested in http://www.roseindia.net/struts/struts2/struts-2-hello-world-files.shtml I get HTTP Status 404 - /tutorial/HelloWorld.action.

type Status report

message /tutorial/HelloWorld.action.

description The requested resource (/tutorial/HelloWorld.action.) is not available.

Apache Tomcat/6.0.29

My struts.xml contents are

/pages/HelloWorld.jsp


January 13, 2011 at 6:20 AM


/pages/HelloWorld.jsp


January 13, 2011 at 6:24 AM


print("<?xml version="1.0" encoding="UTF-8" ?>

/pages/HelloWorld.jsp

");









Related Pages:
Struts 2 online tutorial
Struts 2 online tutorial  Where to learn struts 2 online tutorial? Is there any good tutorials on roseindia.net for learning struts 2 online tutorial?   Yes, We have many tutorials for learning Struts 2 online through
Struts 2 Video Tutorial
Video Tutorial. What is the url of Struts 2 Video Tutorial on roseindia.net website... Tutorial. On our website we have many video tutorials on Struts 2. There all tutorials... tutorial page. View the Struts 2 Video Tutorial. Thanks
Struts 2 Tutorial
Struts 2 Tutorial  Hi, Iââ?¬â?¢m taking your Struts 2 Tutorial... open http://localhost:8080/struts2tutorial/ under ââ?¬Å?Testing Struts 2 Hello... - /tutorial/HelloWorld.action. type Status report message /tutorial
Struts 2 tutorial for beginners with examples
Struts 2 tutorial for beginners with examples  Where is the Struts 2 tutorial for beginners with examples on your website. Thanks   Hi... and understand the core concepts of Struts. View Struts 2 tutorial
Struts 2 Tutorial
Struts 2 Tutorial       RoseIndia Struts 2 Tutorial and Online free training helps you learn new elegant... Dojo toolkit.    Download Source Code of Struts 2 Tutorial
Struts 2 + Hibernate
Struts 2 + Hibernate  From where can i get good tutorial from integrating struts 2 with hibernate , which explains step by step procedure in integration and to build web applications
Introduction to Struts 2 Framework
Introduction to Struts 2 Framework - Video tutorial of Struts 2 In this video.... In this video tutorial I will teach you the Struts 2 framework. You will learn... for this tutorial. Here is the video tutorial of Struts 2 Framework
Struts 2 Training
Struts 2 Training       The Struts 2 Training for developing enterprise applications with Struts 2 framework. Course Code: STRUS-2 Duration: 5.0 day(s) Apply for Struts 2 Training Lectures
Struts Tutorial
known as Struts 1, and Struts 2 (till the time of writing this tutorial...In this section we will discuss about Struts. This tutorial will contain... of this tutorial) struts 2.3.1 struts 2.2.1 struts 2.0.6 struts 1.1
Struts 2 Login Form Example
Struts 2 Login Form Example tutorial - Learn how to develop Login form in Struts 2 though this video tutorial In this video tutorial I will explain you how you can create Login form in Struts 2 and validate the login action
Struts 2 Guide
Struts 2 Guide       This is first example of Struts 2 in this Complete application development tutorial series... and deployment of "Hello World" quick Struts 2 guided tutorial. Example
Struts 2
Struts 2  we can extend DispatchAction class to implement a common session validation in struts 1.x. how to do the same in the struts2
Sitemap Struts Tutorial
and notPresent Tags Struts 2 Tutorial Section Introduction to Struts 2...; 2 Tutorial Section - II Property Tag (Data Tag) | Struts 2 Tags (UI... | Site Map | Business Software Services India Struts 2.18 Tutorial Section
Struts 2
Struts 2  I am getting the following error.pls help me out. The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has
Introduction to Struts 2
, JSP API 2.0 and Java 5.  Video Tutorial - Introduction to Struts 2...Introduction to Struts 2       This section provides you a quick introduction to Struts 2 framework
Struts 2, JPA and Hibernate Training
Struts 2, JPA and Hibernate Training       The Struts 2, JPA and Hibernate Training for developing enterprise applications with Struts 2 framework. Course Code: STRUS-2/JPA/Hibernate Duration
Struts 2 - Validation - Struts
Struts 2 - Validation annotations  digging for a simple struts 2 validation annotations example
Struts 2 Hello World Example
Struts 2 Hello World Example - Video Tutorial that shows how to create Hello... how to develop 'Hello World' application in Struts 2 framework. We are developing this tutorial using the Eclipse IDE. This Struts 2 video tutorial
struts 2 tabbedpanel - Struts
struts 2 tabbedpanel  Hi Friend do I change the background color of a tab? bye bye
Struts 2 problem - Struts
Struts 2 problem  Hello I have a very strange problem. I have an application that we developed in JAVA and the application works ok in Windows... seemed to worked fine, until the user reported to us a problem. After doing
Struts 2 RequiredFieldValidator - Struts
What is Struts 2 RequiredFieldValidator? Need an Example or Code  What is Struts 2 RequiredFieldValidator? Need an Example or Code on Field Validation in Struts 2.  Please follow the following instruction:1. index.jsp
Struts 2.1.8 - Struts 2.1.8 Tutorial
Struts 2.1.8 - Struts 2.1.8 Tutorial       The Struts 2.1.8 is latest release of Struts 2 as on 28-April-2010.  In this tutorial we will understand the features of Struts 2.1.8
Struts 2, JPA and Hibernate Training
Struts 2, JPA and Hibernate Training This quick tutorial targets to the developers... Struts 2, JPA and Hibernate Training       Learn Struts 2, JPA and Hibernate in a combined 5 day online course that makes
Struts 2 Autocompleter,Struts 2 Autocomplete
" uri="/struts-tags" %> <html>   <head>   <title>Struts 2 Autocompleter ...;Struts 2 Autocompleter Example!</h1>   <s
Struts - Struts
Struts  What is Struts Framework?  Hi,Struts 1 tutorial with examples are available athttp://www.rosindia.net/strutsand Struts 2 Tutorials... are looking for Struts projects to learn struts in details then visit at http
struts 2 testing
struts 2 testing  can i get an example for struts 2 action class unit test
regarding struts 2
regarding struts 2   is it not possible to get values from applicationresources.properties into our application in struts 2
Cohabitation struts 1 and 2 - Struts
Cohabitation struts 1 and 2  Hi, I have a problem with the cohabitation of struts 1 and 2. I work on a web application which used struts 1. But i must add some functionality in struts 2. When i modify my web.xml file
Integrating Struts 2 with hybernate - Struts
Integrating Struts 2 with hybernate  Can anyone please help me how to integrate Struts 2 with hybernate. Is there any small project online fo the same? what is the advantage of integrating struts 2 with hybernate over normal
Struts 2 + hibernate
Struts 2 + hibernate  How to integrate Struts 2 and Hibernate? Its urgent please help!!   See the example give below.. for integrating struts 2 and hibernate. Struts2.2.1 and hibernate integration application Integrate
struts 2 project samples
struts 2 project samples  please forward struts 2 sample projects like hotel management system. i've done with general login application and all. Ur answers are appreciated. Thanks in advance Raneesh
Struts Tutorials - Jakarta Struts Tutorial
to Struts 2 framework. Struts Hibernate Integration Tutorial NEW... Struts Tutorials - Jakarta Struts Tutorial Learn Struts Framework with the help of examples and projects. Struts 2 Training! Get
Struts tutorial
Struts tutorial  Please send the Struts meterial and required jar files   Please visit the following links: Struts Tutorials Struts2 Tutorials
Struts 2 Interceptor Example
Struts 2 Interceptor Example Interceptor is an object which intercepts...; </action> Consider an example of Struts interceptor given bellow Login.jsp <%@ taglib prefix="s" uri="/struts-tags"%> <
Struts 2 Date Format Examples
Struts 2 Date Format Examples       In this tutorial you will learn about Date Format function in Struts 2. We...; <html> <head> <title>Struts 2 Format
Struts 2 Hello World Application Example, Learn how to develop Hello World application in struts 2.
Struts 2 Hello World - Developing Hello World Application...; In this section we will develop Hello World application based on Struts 2 Framework. Our Struts 2 Hello World application is your first step towards
Struts 2 Application
Struts 2 Application Developing user registration application based on Struts 2 Framework This Struts 2 Application is a simple user registration application... of Struts 2. Struts 2 Framework makes it easy to develop enterprise web applications
struts 2 mysql
struts 2 mysql  In the example : http://www.roseindia.net/struts/struts2/struts-2-mysql.shtml how is the username and password(in insertdata.jsp) which is entered by the user is transferred to the { ("INSERT employee VALUES
Struts 2 - Beganner
Struts 2 - Beganner  Hi ! I am new to Struts2 and I need clarification over Difference between Action Proxy and Action Mapper in struts2 and When both perform their activity?????? Many Thanks Venkateshlu
session maintain in struts 2
session maintain in struts 2  hi i am new to Struts 2..... in Action class i wrote **HttpSession session = request.getSession(); session.setAttribute("name", name1);** but in jsp class String session_name=(String
Struts 2.2.1 - Struts 2.2.1 Tutorial
Struts 2.2.1 - Struts 2.2.1 Tutorial The Struts 2.2.1 framework is released... for advance programming. In this section we are providing complete tutorial on Struts 2.2.1 framework. Prerequisites for Struts 2.2.1 tutorial You should have
Time Picker in struts 2 - Struts
Time Picker in struts 2  How to create Time Picker in Struts 2 ? ...;head> <title>Struts 2 Time Picker Example!</title>...;</ul>2. struts.xml (Add the following code)<action name="
Download and Installing Struts 2
for this tutorial.  We have downloaded the Struts 2.0.6 (struts-2.0.6-all.zip...Download Struts 2.0       In this section we will download and install the Struts 2.0 on the latest version
Value Retain in struts 2 - Struts
Value Retain in struts 2   I tried with the example, but i can get the solution for retaining the value in drop down.  hi You go the following url. Get your solution for getting all records in drop down: URL: http
Value Retain in struts 2 - Struts
Value Retain in struts 2   Hi, I am trying to retain values in .jsp pages using struts2 tag.Can anyone help with the solution. Thanks in advance!  hi You go the following url. Get your solution
struts 2 problem with netbeans - Struts
struts 2 problem with netbeans  i made 1 application in struts2 with netbeans but got one errror like There is no Action mapped for namespace... is wrong between this don't knows 1) 2) /index.jsp
Struts 2 Radio Button
Struts 2 Radio Button  I have a search functionlaity where i have two radio buttons and I am using Struts2 tag.I want first rado button to be selected by default.But when i select the second radio button and hit on search
Struts 2 Validation
Struts 2 Validation  Hello,I have been learning struts. I have a problem in the validator tag. I have tried tutorials and got those. I have to add the Users to the database. So, have implemented the code. See attachement
Implementing Actions in Struts 2
Implementing Actions in Struts 2 Package com.opensymphony.xwork2 contains.... login.jsp <%@ taglib prefix="s" uri="/struts-tags" %>...="/struts-tags" %> <html> <head> </head> <

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.