struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oron Gill Haus <oronh...@yahoo.com>
Subject Re: Error message!
Date Tue, 09 Dec 2003 12:54:34 GMT
It looks as though one of your tags in the 'app' include doesn't have a
getter/setter for an attribute you have specified in your TLD.

--- Zakaria khabot <z.khabot@ced.mfie.gov.ma> wrote:
> 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
> ____________________________________
>   
> 


=====
Oron Gill Haus
IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
office: (410) 539-3733 x1348
fax:    (410) 837-9535 c/o Oron
e-mail: ohaus@comcast.net
web: http://www.electronicscene.com/oron_haus

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


Mime
View raw message