Ali Taha Ali Mahboub
Ali Taha Ali Mahboub

Reputation: 3511

Give a different value to form input

I am currently working on a Spring project and I need some help. In my JSPs pages I am using spring form tags. For example:

<form:input size="30" type="file" path="attachment" />

I need to know how can I give this tag an option to overwrite the word "browse", so that I can use tag to call different text from .properties file. I've tried to use title, and value options and it never worked.

The reason I need to do it is to show "voir" in case of French language, "浏览" in case of Chinese, and so on.

Upvotes: 3

Views: 382

Answers (1)

Adeel Ansari
Adeel Ansari

Reputation: 39907

It is normally provided by the browser and hard to change, so the only way around it will be a CSS/JavaScript hack, see this SO thread.

Upvotes: 5

Related Questions