struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashant borse <>
Subject Fwd: [jira] [Resolved] (WW-3980) javascript Error : Dojo is undefined
Date Thu, 14 Feb 2013 11:26:40 GMT
I am stuck in this problem since last 3 days. can you please look into this.
As per my analysis, Due to both struts1 and struts2 framework used in the
application causing conflict situations and resulting in problems in
implementing UI for the File uploading functionality. Below is my analysis
for the same.

 In my aplication. Struts 1 servlet mapping and Struts 2 filter mapping
configured in such a way as to cause both to be invoked on the same
request. Since multi-part request parsing is handled by Struts, not the
container, this is causing a conflict which in turn receives NULL value for
the FormFile. To solve this problem I have chnaged struts2 filter mapping
from "/*"  to  "*.action"  which has solved my problem but created other
one for Struts2.

    one of the struts2 page encountered a java script error message "dojo
is undifined". I have done analysis and come to the conclusion that struts2
contains static files (the Dojo libraries, in this case), and expects to
see *every* request, so it can serve those files. so the struts2 filter
mapping must be "/*" and if we convert accordingly, my fileuploading
functionality wont work as i explained above.

 here I have cought in conflict situation. Request you to suggest me what
action needs to be taken on this.

Also please look into mail below for more details

---------- Forwarded message ----------
From: Lukasz Lenart (JIRA) <>
Date: Wed, Feb 13, 2013 at 10:14 PM
Subject: [jira] [Resolved] (WW-3980) javascript Error : Dojo is undefined


Lukasz Lenart resolved WW-3980.

    Resolution: Not A Problem

Please first ask question on the "Struts Users Mailing List" <> before registering an issue like this.

> javascript Error : Dojo is undefined
> ------------------------------------
>                 Key: WW-3980
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.14
>         Environment: Windows
>            Reporter: prashant borse
>            Priority: Blocker
>              Labels: javascript
>             Fix For: Future
>   Original Estimate: 24h
>  Remaining Estimate: 24h
> Hi,
> My application is using both, in one module struts1 and in other module
struts2. i have to do file uploading in struts1 but due to struts2 filter
mapping   as given below
>      <filter-mapping>
>         <filter-name>struts2</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
> Struts1 considering the multipart request as the http request, so i am
getting the FormFile always Null. To solve this problem, I have changed
<url-pattern>*.action</url-pattern>, Now my problem of file uploading is
solve, But it has created new problem in struts2 module. while travercing
the module, I got the javascript exception "Dojo is undefined". I am not
getting any solution to solve this problem. i can not convert back
url-pattern to /* if I do this then my file uploding will not work.
> Request you to send me solution As early as possible

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
For more information on JIRA, see:

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