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 REST with Spring (video course) this week in the Spring 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

Error when using struts 2.0.11 jar

prasanthh reddy

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

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
It's not a secret anymore!