struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Sorting with displaytag issue due to theme="ajax"
Date Tue, 09 Sep 2008 12:49:27 GMT

the referencing jsp page is including the jquery javascript file 
../../src/javascript/jquery.js

did you deploy all of your javascript libraries ..such as jquery.js to the struts webapp so
the jsp can locate the js?

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 


> Date: Tue, 9 Sep 2008 05:38:26 -0700
> From: newton.dave@yahoo.com
> Subject: RE: Sorting with displaytag issue due to theme="ajax"
> To: user@struts.apache.org
> 
> --- On Tue, 9/9/08, Francisco Exposito wrote:
> > Yes, it uses jquery. If I don't use struts2 ajax, it
> > works properly. But when I use it, I receive the error
> > jquery is not defined.
> > 
> > This code works properly: 
> > [...] <script language='javascript'
> >               src="../../src/javascript/jquery.js"
> >               type="text/javascript"></script>
> >       <script src="../../src/javascript/displayTagAjax.js">
> >       </script>
> > [...]
> > 
> > but not this one:
> > [...] <script language='javascript'
> >               src="src/javascript/jquery.js"
> >               type="text/javascript"></script>
> >       <script src="src/javascript/displayTagAjax.js">
> 
> You should build the URLs for the JS files using JSTL or <s:url...>, if nothing
else.
> 
> Under Firebug is it clear that the jQuery file is even being loaded? It doesn't sound
like it.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message