Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Hello world not work
Hello world not work [message #643825] Wed, 08 December 2010 12:26
No real name is currently offline No real nameFriend
Messages: 1
Registered: December 2010
Junior Member

i m trying to send a hello world with strus2. but it return empty page.

http:// /lightbox/

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="" xmlns:xsi="" xsi:schemaLocation="">


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

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
 <h2>qsdf<s:property value="message" /></h2>


package testStruts2;
import com.opensymphony.xwork2.ActionSupport;

public class StevStruts extends ActionSupport{
	private static final long serialVersionUID = 1L;
	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;


http:// /lightbox/

question: the name of package in struts.xml must be the same name package (green color in image above) ? the name of action in struts.xml must be the same name in class dans .java (cblue color in image above) ?

thanx in advance,

[Updated on: Thu, 09 December 2010 19:23]

Report message to a moderator

Previous Topic:How to enlarge a line in a Table (SWT)
Next Topic:How to print "Project Explorer" pane (only) ?
Goto Forum:

Current Time: Tue May 22 04:31:05 GMT 2018

Powered by FUDForum. Page generated in 0.02072 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top