Cannot Access Local Files/Resources
Cannot Access Local Files/Resources
Hello Team,
I am creating a website using DataTables
Context: The code is accessing image = details_open.png. The image is located in the same folder as the jsp page.
Problem: The image is *not* rendering on the webpage
(similarly, I am also not able to load the local resources datatables.css, jquery-1.8.2.js & jquery.dataTables.js; thus I am forced to use CDNs)
Solution: ?
[code]
.
..
...
.....
.......
<!-- DataTables CSS -->
<!--link rel="stylesheet" type="text/css" src="../css/datatables.css"-->
<!-- jQuery -->
<!--script type="text/javascript" charset="utf8" src="../javascript/jquery-1.8.2.js">
<!-- DataTables -->
<!---->
$(document).ready( function () {
var oTable = $('#messages').dataTable(
{
"bPaginate": true,
"aaData": ${messagesJson},
"aoColumns": [
{ "mRender": function ( data, type, row, full )
{
return '';
}, "bSortable": false},
{ "mData": "sms.text" },
.......
.....
...
..
.
[/code]
I am creating a website using DataTables
Context: The code is accessing image = details_open.png. The image is located in the same folder as the jsp page.
Problem: The image is *not* rendering on the webpage
(similarly, I am also not able to load the local resources datatables.css, jquery-1.8.2.js & jquery.dataTables.js; thus I am forced to use CDNs)
Solution: ?
[code]
.
..
...
.....
.......
<!-- DataTables CSS -->
<!--link rel="stylesheet" type="text/css" src="../css/datatables.css"-->
<!-- jQuery -->
<!--script type="text/javascript" charset="utf8" src="../javascript/jquery-1.8.2.js">
<!-- DataTables -->
<!---->
$(document).ready( function () {
var oTable = $('#messages').dataTable(
{
"bPaginate": true,
"aaData": ${messagesJson},
"aoColumns": [
{ "mRender": function ( data, type, row, full )
{
return '';
}, "bSortable": false},
{ "mData": "sms.text" },
.......
.....
...
..
.
[/code]
This discussion has been closed.
Replies
Allan
1. as you pointed out, the path needed tinkering
2. there was a typo in http://java.sun.com/jsp/jstl/core
This problem has been solved. We can mark it as closed.