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 in executing <html:text property="/> " title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Error in executing <html:text property="firstName" value="<bean:message key="user.firstName" />"/> " Watch "Error in executing <html:text property="firstName" value="<bean:message key="user.firstName" />"/> " New topic
Author

Error in executing <html:text property="firstName" value="<bean:message key="user.firstName" />"/>

Abhineet Joon
Greenhorn

Joined: Jul 29, 2011
Posts: 17
equal symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)

This is the error I enounter while using <html:text property="firstName" value="<bean:message key="user.firstName" />"/> in index.jsp and applicationresources.properties is properly defined and when I use <html:text property="firstName" value="default"> the code properly executes.

Can't we use messagebundle in <html:> tags
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 356
Hi,

try this,
<html:text property="firstName" value="<bean:message key='user.firstName' />"/>


Thanks,
Shailesh
Abhineet Joon
Greenhorn

Joined: Jul 29, 2011
Posts: 17
Hi Shailesh ,

The synatx didn't work out, the value displayed in the browser was Enter Name: <bean:message key='user.firstName' /> only when I used the following syntax <html:text property="firstName" value="<bean:message key='user.firstName' />"/>

any other synatx recommendations ...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

You can't use a custom tag as the value of another custom tag's attribute.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Abhineet Joon
Greenhorn

Joined: Jul 29, 2011
Posts: 17
Hi Bear Bibeault ,

Thanks for the response I was in dilemma regarding this query. Finally I could have a sound sleep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in executing <html:text property="firstName" value="<bean:message key="user.firstName" />"/>
 
Similar Threads
No tag "form" defined in tag library imported with prefix "html"
Cannot retrieve definition for form bean null
Problem in SessionManagement in Struts
Problem in Creating Dynamic Link from Display Table
How to set maxlength property dynamically in Struts html:text tag?