This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about struts html:submit tag

 
Ralph Ma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope the value attribute of the html:submit retrieves value from application resource bundles. So, I input the following code in my jsp, but the jsp cause a compile error.
would you like to tell me how to solve the problem. thanks

<html:submit value='<bean:message key="Global.Submit"/>'/>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a custom action as the attribute of another.

Moved to the Struts forum for alternative suggestions.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<input type="submit" value='<bean:message key="Global.Submit"/>'/>

That should work.
 
Stefan Evans
Bartender
Posts: 1712
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With this tag you can nest the value attribute rather than include it.


Cheers,
evnafets
 
Ralph Ma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot. it does work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic