struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JP Cafaro <jcafar...@gmail.com>
Subject Problem with figuring out Convention Plugin
Date Fri, 02 Jul 2010 17:57:47 GMT
I've been having trouble figuring out exactly how the convention plugin 
works.  I've been reading the 
site(http://struts.apache.org/2.1.8.1/docs/convention-plugin.html#ConventionPlugin-Helloworld)

but am still having trouble getting simple examples to work.

I have a class WelcomeUser.java located at action.next.  The plugin is 
supposed to be able to find this action because it's in a package that's 
a subpackage of action.  It finds it and then correctly finds the result 
at content/welcome-user.jsp, however it doesn't display the name. 

welcome-user.jsp looks like this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Welcome User</title>
</head>

<body>
    <h1><s:property value="message"/></h1>
</body>
</html>

Any thoughts?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message