You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jitesh Sinha <js...@cisco.com> on 2003/12/09 12:26:17 UTC

RE: Error message!

Do you have getAction() method in your actionForm?

-----Original Message-----
From: Zakaria khabot [mailto:z.khabot@ced.mfie.gov.ma]
Sent: Sunday, December 08, 2002 9:25 PM
To: struts-user-help; struts-user
Subject: Error message!


Hi,
I received this error message and don't understand the soiurce of error :

javax.servlet.jsp.JspException: No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

	java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)

		RequestUtils.java:968

	int org.apache.struts.taglib.html.BaseFieldTag.doStartTag()

		BaseFieldTag.java:176

	int org.apache.struts.taglib.html.HiddenTag.doStartTag()

		HiddenTag.java:123

	void _detail._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

	[/detail.jsp]

		detail.jsp:29

My detail.jsp file is the following :
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/app.tld"    prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
Consultation et modification des données.
</title>
</head>

<body bgcolor="white">
<B>Les données sur le DVD.</B>
<html:errors/>

<html:form name="myform" type="mypackage19.DetailForm"  action="/process">

<script type="text/javascript">
function go(action) {
document.forms["myform"].action.value=action;
 }

</script>


<html:hidden property="action" />


<!--html:hidden property="action"/-->
<table border="1" width="100%">

  <tr>
    <td align="right">
      <bean:message key="prompt.id"/>:
    </td>
    <td align="left">
    <html:text property="id" size="16" />
    <!--html:hidden property="username" write="true"/-->

    </td>

  </tr>

  <tr>
    <td align="right">
      <bean:message key="prompt.title"/>:
    </td>
    <td align="left">
      <html:password property="title" size="16" maxlength="16"/>
    </td>
  </tr>

  <tr>
    <td align="right">
      <bean:message key="prompt.length"/>:
    </td>
    <td align="left">
      <html:text property="length" size="50"/>
    </td>
  </tr>

  <tr>
    <td align="right">
      <bean:message key="prompt.actors"/>:
    </td>
    <td align="left">
      <html:text property="actors" size="50"/>
    </td>
  </tr>

  <tr>
    <td align="right">
        <html:submit value="Create" onclick="go('create')">
        <bean:message key="button.create"/>

      </html:submit>
    </td>

    <td align="left">
        <html:submit value="Update" onclick="go('update')">
         <bean:message key="button.update"/>
        </html:submit>
        &nbsp;
        <html:submit value="Delete" onclick="go('delete')">
         <bean:message key="button.delete"/>
        </html:submit>
        &nbsp;
        <html:reset>
         <bean:message key="button.reset"/>
        </html:reset>
        &nbsp;
        <html:cancel>
         <bean:message key="button.cancel"/>
        </html:cancel>
    </td>
  </tr>

</table>
</html:form>

</body>
</html>

Thanks.....
Zakaria
____________________________________



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