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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to find setter method for attribute: name