File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error when using struts 2.0.11 jar

 
prasanthh reddy
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic