I am newbie in jquery. I would like to read Java properties file in my jsp page using javascript or jquery. I'm goggling about it but not satisfied.
My application is developed by Struts2, Eclipse Juno and Windows7. This is my javascript
function checkedRadioForDelete(f) {
var chx = document.getElementsByTagName('input');
for ( var i = 0; i < chx.length; i++) {
if (chx[i].type == 'radio' && chx[i].checked) {
var con = confirm("Are you sure to delete?");
if (con != true) {
} else {
f.action = "MyAction.action";
f.submit();
}
return true;
}
}
alert("Please select one.");
return false;
}
This is my properties file
msg.confirm=Are you sure to delete?
msg.alert=Please select one.
I would like to read confirm and alert box values from properties file. So is it possible with Ajax or jquery or javascript?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…