You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Tobin Juday (JIRA)" <ji...@apache.org> on 2007/02/12 15:55:17 UTC

[jira] Created: (WW-1733) Evaluating EL statements not working consistently

Evaluating EL statements not working consistently
-------------------------------------------------

                 Key: WW-1733
                 URL: https://issues.apache.org/struts/browse/WW-1733
             Project: Struts 2
          Issue Type: Bug
          Components: Expression Language
    Affects Versions: 2.0.5
         Environment: Mac OS X 10.4/JBoss 4.0.5
Windows XP SP2/Tomcat
            Reporter: Tobin Juday
            Priority: Critical


I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.

I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.

The first time I hit my page, everything works fine.

However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.

I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.

The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)

If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)

I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.

I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-1733) Evaluating EL statements not working consistently

Posted by "Tom Schneider (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Schneider resolved WW-1733.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
         Assignee: Tom Schneider

It turns out that under certain circumstances, the request wasn't being wrapped by the StrutsRequestWrapper.  I've updated the code so that the request is being wrapped every time.  The submitted war now functions properly for every request.

> Evaluating EL statements not working consistently
> -------------------------------------------------
>
>                 Key: WW-1733
>                 URL: https://issues.apache.org/struts/browse/WW-1733
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.5
>         Environment: Mac OS X 10.4/JBoss 4.0.5
> Windows XP SP2/Tomcat
>            Reporter: Tobin Juday
>         Assigned To: Tom Schneider
>            Priority: Critical
>             Fix For: 2.0.7, 2.1.0
>
>         Attachments: StrutsError.war
>
>
> I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.
> I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.
> The first time I hit my page, everything works fine.
> However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.
> I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.
> The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)
> If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)
> I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.
> I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1733) Evaluating EL statements not working consistently

Posted by "Tobin Juday (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40286 ] 

Tobin Juday commented on WW-1733:
---------------------------------

Awesome, thanks Tom.  I know this isn't quite the right place to ask, but is there a timeframe for releasing 2.1.0?

> Evaluating EL statements not working consistently
> -------------------------------------------------
>
>                 Key: WW-1733
>                 URL: https://issues.apache.org/struts/browse/WW-1733
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.5
>         Environment: Mac OS X 10.4/JBoss 4.0.5
> Windows XP SP2/Tomcat
>            Reporter: Tobin Juday
>         Assigned To: Tom Schneider
>            Priority: Critical
>             Fix For: 2.0.7, 2.1.0
>
>         Attachments: StrutsError.war
>
>
> I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.
> I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.
> The first time I hit my page, everything works fine.
> However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.
> I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.
> The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)
> If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)
> I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.
> I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1733) Evaluating EL statements not working consistently

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1733:
---------------------------

    Fix Version/s: 2.0.6

> Evaluating EL statements not working consistently
> -------------------------------------------------
>
>                 Key: WW-1733
>                 URL: https://issues.apache.org/struts/browse/WW-1733
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.5
>         Environment: Mac OS X 10.4/JBoss 4.0.5
> Windows XP SP2/Tomcat
>            Reporter: Tobin Juday
>            Priority: Critical
>             Fix For: 2.0.6
>
>         Attachments: StrutsError.war
>
>
> I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.
> I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.
> The first time I hit my page, everything works fine.
> However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.
> I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.
> The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)
> If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)
> I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.
> I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1733) Evaluating EL statements not working consistently

Posted by "Tom Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40282 ] 

Tom Schneider commented on WW-1733:
-----------------------------------

A workaround for this issue is to map the dispatch filter to *.action instead of /*.  The issue is that sometimes the jsp isn't getting executed against a wrapped request.  My guess is that there's a race condition in the dispatch filter or the dispatcher itself.

> Evaluating EL statements not working consistently
> -------------------------------------------------
>
>                 Key: WW-1733
>                 URL: https://issues.apache.org/struts/browse/WW-1733
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.5
>         Environment: Mac OS X 10.4/JBoss 4.0.5
> Windows XP SP2/Tomcat
>            Reporter: Tobin Juday
>            Priority: Critical
>             Fix For: 2.0.7
>
>         Attachments: StrutsError.war
>
>
> I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.
> I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.
> The first time I hit my page, everything works fine.
> However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.
> I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.
> The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)
> If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)
> I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.
> I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1733) Evaluating EL statements not working consistently

Posted by "Tobin Juday (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobin Juday updated WW-1733:
----------------------------

    Attachment: StrutsError.war

Sample project

> Evaluating EL statements not working consistently
> -------------------------------------------------
>
>                 Key: WW-1733
>                 URL: https://issues.apache.org/struts/browse/WW-1733
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.5
>         Environment: Mac OS X 10.4/JBoss 4.0.5
> Windows XP SP2/Tomcat
>            Reporter: Tobin Juday
>            Priority: Critical
>         Attachments: StrutsError.war
>
>
> I'm evaluating Struts2 to use for our upcoming web app. I used WebWork 2.1.7 on our last project, and really liked it, so I'd like to use Struts2 for the new one, but I'm running into a very strange problem.
> I've distilled the problem down into a sample application. There is one action, and one jsp view template. The view contains some EL (eg - ${firstName}) and some Struts2 JSP tags (eg - <s:property value="firstName"/>.
> The first time I hit my page, everything works fine.
> However, if I keep reloading the page, the EL stops working. Nothing gets substituted into the page for the EL statements. The JSP tags continue to work.
> I've tracked it down to this: it is related to the javascript I'm including. I don't believe it matters what's even in the javascript files. If I don't have any <script> tags in my <head>, then everything works fine. If I start to add <script> tags, the EL stops working.
> The sample project, as packaged up, should not work consistently.  If you comment out the line including the prototype.js script, it will start working consistently. (note that the prototype.js file is actually empty)
> If you comment out the script line including prototype, it will work.  If you leave this line in, it will not work.  (note that the prototype.js file is empty)
> I will be attaching a sample project which demonstrates this. I'm working on OS X, with JBoss. I gave this .war file to a co-worker, and we saw the same behavior on his WinXP machine running Tomcat. So I'm hoping that you will be able to see this as well.
> I'm just really confused at this point, I don't understand how having Struts2 write out a <script> line to the HTML would keep the EL from evaluating.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.