I have a form say for login and I have two fields login id and password. Now what I want is to save the labels attached to these fields in database. Can anyone help me regarding this how to fetch the associated lables from database.
As Jeanne mentioned, I'd use a properties file, and the <fmt:message> tag, like 99.999999% of everyone else out there.
If you insist on using a database (why?), I'd fetch the values in the page controller to pass to the JSP as a Map and use the EL from there. But I'd only do that if I had a really, really, really, really good reason to use a database over the more conventional properties files.
Hi Thank you both of you for the resolution. I was thinking about the database, so that if I have to make any change I can directly change in the database. But there will be an additional overhead of data fetching.
Yes Jeanne I am aware of JDBC.
I was unaware of <fmt:message> tag. Thank you both of you for guidance