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-tp20623678p20627503.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]