aspose file tools*
The moose likes Struts and the fly likes JasperException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JasperException" Watch "JasperException" New topic
Author

JasperException

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
Dear friends,

I have this problem spoiling my development.
I have written the following JSP in NetBeans 5.5.1


Following is the Form class:


Following is the Action class:





The following are the entries in struts-config.xml:



When i deploy the JSP, i am getting this error:
org.apache.jasper.JasperException: Unable to find setter method for attribute: name


So friends, kindly provide your patience to go through this problem and help me get out of the pit.

Thanks in advance,
Vijay
[ July 17, 2007: Message edited by: vijaychandran rajagopalan ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Other than in your struts form tag, I don't see anyplace in your JSP where you would be trying to set a name property.
I would start by going through stack traces in the logs to see if there is a line number in either the JSP or the generated servlet code where you can go for more hints.

Since this is a Struts project and since you aren't getting any help here, I'm going to move this to our Struts forum.
[ July 17, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I believe NetBeans uses Struts 1.2.9. In this version of struts, the name and type attributes of the <html:form> tag are deprecated. Just remove them, and your page should work fine. They aren't really necessary anyway as you've already defined this information in your struts-config.xml file.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JasperException