This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes The requested resource () is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

The requested resource () is not available.

Soumya Babu

Joined: Jun 29, 2012
Posts: 5

<%@ taglib prefix="s" uri="/struts-tags" %>

<title>Hello World!</title>
<h2><s:property value="message" /></h2>

package org.poc;
import com.opensymphony.xwork2.ActionSupport;

public class HelloWorld extends ActionSupport {

private static final long serialVersionUID = 6393504953362012108L;
public static final String MESSAGE = "Struts is up and running ...";

public String execute() throws Exception {
return SUCCESS;

private String message;

public void setMessage(String message){
this.message = message;

public String getMessage() {
return message;

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4"
<display-name>Print Everywhere</display-name>





"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
<package name="org.poc" extends="struts-default">
<action name="HelloWorld" class="org.poc.HelloWorld">
<!-- Add your actions here -->

When i click submit i am getting The requested resource () is not available.whT MIGHT BE the possible reasons?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60071

This is covered by the very first entry in the ServletsFaq. Please checks the FAQs before posting to see of the question has already been answered. Thanks.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: The requested resource () is not available.
Similar Threads
File not found error
Request not able to reach Action class in Struts2
requested resource (/tutorial/HellwWorld.action) is not available error
problem in Struts2 while running an application
Struts + Tomcat 6 + HelloWorld = Pain