You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by WayneFH <Wa...@firsthealth.com> on 2008/01/08 17:23:00 UTC
Why? en-us theme=ajax 404 error on Struts 2.0.9
In FireBug, we get the following errors when using <s:head theme="ajax">. The
source code follows the list of errors. Additionally, our
<s:dropdowndatepicker> tag doesn't appear.
NOTE: There are successfully "gets" for all of these files under the nls
directory without the en-us. Why is it looking in en-us? We're lost.
Pleeease help.
GET
http://localhost:8080/FirstHCM/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
404 (47ms) dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js
404 (47ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js
404 (31ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en/TimePicker.js
404 (62ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en-us/TimePicker.js
404 (47ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en/DropdownTimePicker.js
404 (31ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js
404 (47ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en/DropdownDatePicker.js
404 (46ms)dojo.js (line 734)
GET
http://localhost:8080/FirstHCM/struts/dojo/src/widget/nls/en-us/DropdownDatePicker.js
404 (47ms)dojo.js (line 734)
<%@page import="java.util.*"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<s:head theme="ajax" debug="false"/>
</head>
<body>
<s:tabbedPanel id="Requestor" >
<s:div id="tab1" label="Name" labelposition="top" theme="ajax">
<s:form method="post">
<table>
<s:datetimepicker name="From" label="From"
displayFormat="MM-dd-yyyy"/>
<s:datetimepicker name="To" label="To"
displayFormat="MM-dd-yyyy"/>
<s:textfield label="Requestor Name/ Last name" name="LASTNAME"
size="25"/>
<s:textfield label="First Name" name="FIRSTNAME" />
<s:submit name="SUBMIT" value="Find Now"/>
</table>
</s:form>
</s:div>
<s:div id="tab2" label="Number" theme="ajax">
<s:form method="post">
<table>
<s:textfield label="Provider Number" name="REQUESTOR_NUMBER"
size="15"/>
<s:submit name="SUBMIT" value="Find Now"/>
</table>
</s:form>
</s:div>
</s:tabbedPanel>
</body>
</html>
--
View this message in context: http://www.nabble.com/Why--en-us-theme%3Dajax-404-error-on-Struts-2.0.9-tp14692647p14692647.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
Re: Why? en-us theme=ajax 404 error on Struts 2.0.9
Posted by Rubens <ru...@hotmail.com>.
In your web.xml ensure you have a filter-mapping defined for the
/struts/...<js files>. You need to make sure that a request to the
Javascript and CSS files defined in the struts jar file go thru the Struts 2
filter. That is, make sure you have something like this on your web.xml:
<filter-mapping>
<filter-name>struts2Filter</filter-name>
<url-pattern>/struts/*</url-pattern>
</filter-mapping>
If the request to your struts 2 dojo javascript files do not go thru the
Struts 2 filter, you will get 404 error when the browser attempts to
retrieve those files.
Rubens.
--
View this message in context: http://www.nabble.com/Why--en-us-theme%3Dajax-404-error-on-Struts-2.0.9-tp14692647p19850141.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
Re: Why? en-us theme=ajax 404 error on Struts 2.0.9
Posted by Martin Gainty <mg...@hotmail.com>.
please repost stack-trace and struts configuration files
Thanks
M-
----- Original Message -----
From: "venku" <ve...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Wednesday, January 09, 2008 9:11 AM
Subject: Re: Why? en-us theme=ajax 404 error on Struts 2.0.9
>
> Hi Wayne,
>
> Did you find any solution for it I am also facing the same problem
>
> Thanks
> Venku
> :)
> --
> View this message in context:
http://www.nabble.com/Why--en-us-theme%3Dajax-404-error-on-Struts-2.0.9-tp14
692647p14712651.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Why? en-us theme=ajax 404 error on Struts 2.0.9
Posted by venku <ve...@yahoo.com>.
Hi Wayne,
Did you find any solution for it I am also facing the same problem
Thanks
Venku
:)
--
View this message in context: http://www.nabble.com/Why--en-us-theme%3Dajax-404-error-on-Struts-2.0.9-tp14692647p14712651.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