struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo S. Borges (JIRA)" <>
Subject [jira] Created: (WW-2942) Injection parameters
Date Wed, 31 Dec 2008 13:28:37 GMT
Injection parameters

                 Key: WW-2942
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.4
         Environment: Windows XP SP2, Eclipse 3.4.1, jetty, etc..
            Reporter: Pablo S. Borges

the problem of the form below,


public class EUser implements Serializable {

	private String login;
	private String password;
	public EUser() {

	public String getLogin() {
		return login;

	public void setLogin(String login) {
		this.login = login;

	public String getPassword() {
		return password;

	public void setPassword(String password) {
		this.password = password;

import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {
	private EUser eUser;

	 * @return
	 * @throws Exception
	public String authenticate() throws Exception {
		return SUCCESS;

	public EUser getEUser() {
		return eUser;

	public void setEUser(EUser user) {
		eUser = user;

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

		<s:form action="User!authenticate" theme="simple"
			<s:textfield name="eUser.login" id="login" maxLength="12" size="20" />
			<s:password name="eUser.password" id="password" maxLength="12"
				size="20" />
			<s:submit name="btnAuthenticate"></s:submit>

note that the action I created an attribute with the private eUser get and set methods. And
in jsp I am referencing this object eUser, only that it does not automatically injected and
when I give an submit the form.

Now I saw that one possible solution would be to implement the interface ModelDrive<EUser>
and profiting from eUser jsp. Ai works correctly.

Now I ask this is a bug? Thank you.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message