This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes about struts html:submit tag 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 "about struts html:submit tag" Watch "about struts html:submit tag" New topic
Author

about struts html:submit tag

Ralph Ma
Greenhorn

Joined: Aug 18, 2005
Posts: 10
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"/>'/>


SCJP 1.2<br />SCWCD 1.3<br />SCBCD 1.3<br />SCDJWS
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56221
    
  13

You cannot use a custom action as the attribute of another.

Moved to the Struts forum for alternative suggestions.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

<input type="submit" value='<bean:message key="Global.Submit"/>'/>

That should work.


A good workman is known by his tools.
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1005
With this tag you can nest the value attribute rather than include it.


Cheers,
evnafets
Ralph Ma
Greenhorn

Joined: Aug 18, 2005
Posts: 10
thanks a lot. it does work
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: about struts html:submit tag
 
Similar Threads
Dispatch VS LookupDispatch
DispatchAction and html:cancel
How to save value of button pressed?
example for ImageButtonBean using DispatchAction class
changing the value of html:submit