This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework" Watch "a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework" New topic
Author

a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework

David Brave
Greenhorn

Joined: May 20, 2010
Posts: 24
Hi, Im having a problem with my jquery plugin.
This is not in regards to the struts2-jquery plugin,
but the actual jquery library and a plugin for that library.

The plugin is a photogallery plugin. Im loading this through a jsp page in my struts2 MVC project.
Struts2 loads the jquery library just fine, but ignores the plugin when the page is loaded through the struts2 mvc.
When I just load the page without struts, through tomcat, the jquery photogallery plugin works perfectly.

Here is the plugin
http://eisabainyo.net/demo/jquery.gallery.php

Here is my jsp page



Both .js files are in the same folder as the jsp page. I put the alert("test"); in to make sure that jquery was being loaded, and I get the alert if the page is loaded through the struts2
framework or if i load the jsp without struts with just tomcat (in that case the alert works, and the plugin works too).

Im totally baffled by this. Any help?

David
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework
 
Similar Threads
In Need of Urgent help Struts + jquery
scroll bar down
Fieldset is not working
CSS Not Rendering on JSP that is passed to from Servlet
Fieldset is not working