This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error when using struts 2.0.11 jar
 
Similar Threads
missing struts*.tld files
connection pooling Jboss 3.0
Struts layout tld + Jboss 6.1.0
logic:match , logic:notEqual not working
Cannot resolve package json-default, hibernate-default