• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enable/Disable fields on jsp page through some properties file

 
RaviSingh Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to enable and disable fields on jsp page through some properties or common file. I have three new fields on several jsp page. But client want not to implement right now. But if required then all the fields on all jsp pages must be enabled my changing some particular entry in properties file or some other common file.


Please help .
Thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read a properties file at context start and put the results in application scope (a Map is nice).

In the JSP, simply use <c:if> checking the stored value(s) to determine if an optional section should be included.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!