How to include subfolders ?

10 views
Skip to first unread message

shyam

unread,
Oct 22, 2010, 6:51:19 PM10/22/10
to Diffable
Hi,

In web.xml file, I have configured "ResourceFolders" as "js/jquery".
If the "jquery" folder has subfolder like "/main/src", Then How can i
reference it in the JSP Page ?

I have given as below :-

<diff:resource servletPrefix="/LA/diffable" resource="main/src/
path.js"/>

The files are not loaded.

Pls reply how to load & specify the subfolders of the folder which
is specified in "ResourceFolders" path in web.xml ?

Joshua Harrison

unread,
Oct 23, 2010, 2:58:20 AM10/23/10
to Diffable
Shyam,

Hello and thank you for your interest!

When using diffable-0.1.jar I was unable to reproduce your problem. I
had a project with the following structure:

DiffableTest
|-> WebContent
|-> META-INF
|-> WEB-INF
| |-> javascript
| | |-> subfolder
| | |-> main
| | |-> src
| | |-> jquery.js
| |->web.xml
|-> test.jsp

In my web.xml, I had the following ResourceFolder defined:

<context-param>
<param-name>ResourceFolders</param-name>
<param-value>WEB-INF/javascript/subfolder</param-value>
</context-param>

Finally, in my test.jsp page I used the following tag:

<diff:resource servletPrefix="/DiffableTest/diffable" resource="main/
src/jquery.js"/>

When I load the page, I see the bootstrap code being correctly loaded.

Can you please tell me what I am doing differently so I can try to
reproduce the error you're seeing?

Thanks again,
Joshua
Reply all
Reply to author
Forward
0 new messages