struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From on2 <...@hotmail.com>
Subject All the Struts JSs could not be found‏ (e.g. optiontransferselect.js and others)
Date Wed, 03 Mar 2010 14:52:28 GMT

Hello Struts Users,
 
We have an application using Struts 2.1.6, Tile and run on WebSphere. We
have issue with <s:optiontransferselect>. All the buttons in the middle are
not working. The <script type="text/javascript"
src="/PC/struts/optiontransferselect.js"></script> is inserted by the
Struts2 when view source on the IE7.0.5. We use FF3 to debug it, we found
the link to the JS and able to view the content of that JS but at the bottom
of the source it says 

Error 404: SRVE0190E: File not found: /struts/optiontransferselect.js

We use Tile to create the standar layout.jsp. The layout.jsp is very simple,
it has 3 sections: head, body, and footer.The second JSP is the Welcome.jsp
page with contains something like the following:

<head>
<sx:head />
</head> 

<body>
<sx:tabbedpanel cssStyle="width: 1024px; height: 600px;" doLayout="true"
id="tabContainer">
<sx:div id="homeTab" label="Home">	
Welcome......
</sx:div> 
<sx:div id="SearchTab" label="Search">
	<li> <s:url action= ">Advanced Query  </li></sx:div>
</sx:tabbedpanel>

The third JSP is the Advanced Query search page which contains the
optiontransferselect tag.

<head><sx:head /></head> 
<body>
<s:optiontransferselect
leftTitle="Available Columns"
rightTitle="Selected Columns"
name="firstList"
list="columnList"
headerKey="headerKey"
doubleName="selColList"
doubleList="orderedList"
doubleHeaderKey="doubleHeaderKey"
allowUpDownOnRight="false"
allowUpDownOnLeft="false"
allowAddToRight="true" 
allowAddToLeft="true" />  

And when viewing the source from the IE7, seeing  
<head>
	<title>AdvancedQuery</title>
    
    <link href="/PC/css/style.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="/PC/css/syshqw-main.css"/>
    <script language="JavaScript" type="text/javascript">
    // Dojo configuration
    djConfig = {
        isDebug: true,
        bindEncoding: "UTF-8"
          ,baseRelativePath: "/PC/struts/dojo/"
          ,baseScriptUri: "/PC/struts/dojo/"
         ,parseWidgets : false
        
    };
</script>



  <script language="JavaScript" type="text/javascript"      
src="/PC/struts/dojo/struts_dojo.js"></script>

<script language="JavaScript" type="text/javascript"       
src="/PC/struts/ajax/dojoRequire.js"></script>
<script language="JavaScript" type="text/javascript">
    dojo.hostenv.writeIncludes(true);
</script>     
<link rel="stylesheet" href="/PC/struts/xhtml/styles.css" type="text/css"/>

<script language="JavaScript" src="/PC/struts/utils.js"
type="text/javascript"></script>
<script language="JavaScript" src="/PC/struts/xhtml/validation.js"
type="text/javascript"></script>
<script language="JavaScript" src="/PC/struts/css_xhtml/validation.js"
type="text/javascript"></script>
    
</head>
<body> 
..................Some other stuff here 
<script type="text/javascript"
src="/PC/struts/optiontransferselect.js"></script>
......................... some other stuff here
</body>

We did search online for this issue and follow those but still not working.
Also all the JS are inserted by Struts2could not be found by the application
(e.g. /struts/dojoRequire.js, /struts/utils.js ...)

Does anyone have a similar issue or find any solution for this? Thanks in
advance.
-- 
View this message in context: http://old.nabble.com/All-the-Struts-JSs-could-not-be-found%E2%80%8F-%28e.g.-optiontransferselect.js-and-others%29-tp27769166p27769166.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message