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 Error when using struts 2.0.11 jar 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 "Error when using struts 2.0.11 jar" Watch "Error when using struts 2.0.11 jar" New topic
Author

Error when using struts 2.0.11 jar

prasanthh reddy
Greenhorn

Joined: Sep 01, 2008
Posts: 8
Hi All,

I am using struts 2.0.11 jar and in my jsp I am using expression language for printing a variable as given below

<s:text name="<%=person.getPersonName()%>"/>

While using the above thin am getting an error as below

According to TLD or attribute directive in tag file, attribute name does not accept any expressions

Is there any solution to solve this

Thank you
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes; don't use a scriptlet expression.

If person is exposed by the action just use:There are very few valid usecases for scriptlets anymore.
 
Don't get me started about those stupid light bulbs.
 
subject: Error when using struts 2.0.11 jar