• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Abhineet Joon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

try this,
<html:text property="firstName" value="<bean:message key='user.firstName' />"/>
 
Abhineet Joon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65662
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use a custom tag as the value of another custom tag's attribute.
 
Abhineet Joon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault ,

Thanks for the response I was in dilemma regarding this query. Finally I could have a sound sleep
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!