struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Thomas <guy.tho...@vlaamsbrabant.be>
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
files.
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>
      </action>

      ...

-----

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

   <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath*:applicationContext.xml</param-value>
   </context-param>

   <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>

   <filter>
      <filter-name>struts2</filter-name>
      <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
   </filter>

   <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>/domsecadmin/*</url-pattern>
   </filter-mapping>

-----

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

<html>
<head>
<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>
</head>

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


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