almost 9 years ago
Create a property file in the package with extension '.properties' and use those properties defined in the file in jsp by importing the resource bundle package in the jsp.
Example:
config.properties
name=tom email=tom@gmail.com phone=22222
login.jsp
<%@ page import = "java.util.ResourceBundle" %> <% ResourceBundle resource = ResourceBundle.getBundle("config"); String name=resource.getString("name"); String email=resource.getString("email"); String phone=resource.getString("phone"); %> Name: <input type="text" id="name" value="<%=name %>"> Email: <input type="text" id="email" value="<%=email %>"> Phone: <input type="text" id="phone" value="<%=phone %>">
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)