struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Thomas <>
Subject referencing javascript files from (action) jsp file
Date Thu, 14 Oct 2010 13:36:50 GMT
The javascript error console of Google chrome tells me it cannot find the referenced javascript
Below you can find part of my webapp setup.

What am I doing wrong?


This is part of my struts.xml:

<package name="domainsecurityadmin" extends="struts-default" namespace="/domsecadmin">


      <action name="userchange" class="userchange">
         <result name="success">/apps/domainsecurity/userchange.jsp</result>
         <result name="input">/apps/domainsecurity/userchange.jsp</result>



This is my web.xml: (context-param and listener are there because I'm also using spring in
my application)






This is part of the jsp file in which I refer to the javascript file:

<title>Domain Security Administrator: Pas gebruiker aan</title>
<link href="/css/domainsecurityadmin.css" rel="stylesheet" type="text/css">
<script src="../../js/util.js" type="text/javascript"></script>
<script src="../../js/domainsecurityadmin.js" type="text/javascript"></script>

path for userchange.jsp: /apps/domainsecurity/userchange.jsp
the js folder sits next to apps

Aan dit bericht kunnen geen rechten worden ontleend. Alle berichten naar dit professioneel
e-mailadres kunnen door de werkgever gelezen worden.
Ondernemingsnummer: 0253.973.219

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message