Skip to main content

Wrong "src" path.......index.jsp.do?url=/resources/jmaki.js

1 reply [Last post]
chandanahuja
Offline
Joined: 2007-11-20
Points: 0

Hi ,
I am new in jMaki and
am facing a problem in using it .

I am trying to use a Widget by using the jsp tag

This jsp generates html to include the javascript file jmaki.js

The problem is that the address http://localhost:8080/MyPOC/index.jsp.do?url=/resources/jmaki.js is an invalid address
because the name of my current jsp file is index.jsp , bu t the path that is genereated appends ".do" to it and passes the name of the jmaki.jas as query string , because of which i am getting javascript error jmaki is undefined .

Please let me know how to ensure that the correct js file loaction is generated.

Best Regards
Chandan Ahuja

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

This is usually caused by not having jmaki.js located in your web application.

The location jmaki.js is searched for is:

/resources/jmaki.js

For more on the jMaki app structure see:

https://ajax.dev.java.net/jmaki-app.html

Let us know if you have any problems and please feel free to contact me directly if you are kept waiting too long in the future gmurray71 (a) dev.java.net.

Regard,

Greg