Win a copy of Design for the Mind this week in the Design 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: 64700
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: 1690
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