You might be better off with something like this: <script language="JavaScript" src="${pageContext.request.contextPath}/js/jquery.js"/> <script language="JavaScript" src="${pageContext.request.contextPath}/js/jquery-ui-1.6rc2.js"/> <script language="JavaScript" src="${pageContext.request.contextPath}/js/JSloader_1.js/"/>
> -----Original Message----- > From: Casinova [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2008 1:09 PM > To: user@struts.apache.org > Subject: Re: Loading and Calling Java Script in Struts > > > thanks for suggestion > i have struts 1.2.9 > > i have included jstl 1.1 and now i am using like > > <[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> > > paths are > > <script language="JavaScript" src="<c:url value="../js/jquery.js"/>"/> > <script language="JavaScript" src="<c:url > value="../js/jquery-ui-1.6rc2.js"/>"/> > <script language="JavaScript" src="<c:url > value="../js/JSloader_1.js/"/>"/> > > please refer project structure as given above please suggest > it feels i am near to solution... > Thanks in advance > > > newton.dave wrote: > > > > Use either JSTL's <c:url...> tag, S1's equivalent, or S2's > equivalent. > > I don't remember what version of Struts you're using. > > > > Dave > > > > > > --- On Fri, 11/21/08, Casinova <[EMAIL PROTECTED]> wrote: > > > >> From: Casinova <[EMAIL PROTECTED]> > >> Subject: Re: Loading and Calling Java Script in Struts > >> To: user@struts.apache.org > >> Date: Friday, November 21, 2008, 1:54 PM Sorry to say you but not > >> getting what to type in src="????" > >> Please can u brief me.. > >> > >> Thanks a lot > >> > >> > >> > >> newton.dave wrote: > >> > > >> > --- On Fri, 11/21/08, Casinova wrote: > >> >> u tried that but getting jquery null or not a > >> object error. > >> >> [...] > >> >> and right now i m giving absolute path like > >> >> > >> >> <script language="JavaScript" > >> >> > >> src="http://localhost:8084/ProjectName/js/jquery.js" > >> >> type="text/javascript"> > >> >> > >> >> is that fine? > >> > > >> > Apparently not. > >> > > >> > However, when I said "absolute pathname" I > >> meant something along the lines > >> > of: > >> > > >> > <script ... src="<s:url > >> value="/js/jquery.js"/>" ...> > >> > > >> > Or whatever it is. > >> > > >> > Dave > >> > > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> > For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Loading-and-Calling-Java-Script-in-Struts-tp206 > >> 23678p20627503.html Sent from the Struts - User mailing > list archive > >> at Nabble.com. > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Loading-and-Calling-Java-Script-in-Strut s-tp20623678p20629537.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]