This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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