File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes  Unable to find setter method for attribute: name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Unable to find setter method for attribute: name" Watch " Unable to find setter method for attribute: name" New topic
Author

Unable to find setter method for attribute: name

Hari priya
Ranch Hand

Joined: Mar 11, 2004
Posts: 134
Hi -

I am repeatedly getting this error -

org.apache.jasper.JasperException: /LoginScreen.jsp(101,0) Unable to find setter method for attribute: name

the line 101 of the login is -

<html:form action="/MyLogin" name="loginForm" type="mapackage.forms.LoginForm" focus="userName" scope="session">

The strust-html.yld file did not have name / scope attributes which I have included and then deployed the war file.

Please let mek now if I am missing something here.
Thanks!
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

If you are extending the taglib functionality for html:form, I believe you must also update FormTag.java to handle the new attributes.


A good workman is known by his tools.
 
Consider Paul's rocket mass heater.
 
subject: Unable to find setter method for attribute: name
 
Similar Threads
html:form
Cannot find bean lookupForm in any scope
problem in generating dynamic menu in struts, through actionForms
Exception creating bean of class
Struts 1.24 - Problem with 'module' attribute of html:rewrite