[jira] Created: (WW-2632) Ajax does not work with struts 2 j4 - "dojo undefined"

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (WW-2632) Ajax does not work with struts 2 j4 - "dojo undefined"

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ajax does not work with struts 2 j4 - "dojo undefined"
------------------------------------------------------

                 Key: WW-2632
                 URL: https://issues.apache.org/struts/browse/WW-2632
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Dojo Tags
    Affects Versions: 2.0.11
         Environment: O/S: MS Windows 2000 Professional
Web Server: Apache Tomcat 5.5.26 for JDK 1.4.2
Java: Jdk 1.4.2
Struts 2.0.11 for JDK 1.4.2 (All J4 jars are included)
            Reporter: Giri
            Priority: Minor


Hi,

I am developing a web application that needs ajax for better GUI presentation.

On click of a checkbox, the div section should be filled with details. I am getting error as 'dojo undefined'. The following is the code.
//------------------------------------------------------------------------------------------------
//temp.jsp
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
        <title>Temp</title>
        <s:head theme="ajax" />
        <script>  
    function show_details() {        
      dojo.event.topic.publish("show_detail");  
    }  
  </script>
</head>
<body>
        <br/>
        <s:form action="processor" theme="simple">
                <table width="40%" align="center" cellspacing="2" cellpadding="2" border="1">
                <tr>
                        <th colspan="4" class="TableHeader">Info</th>
                </tr>
                <tr>
        <td valign="top">
        <s:checkbox name="chk" onclick="javascript:show_details();"></s:checkbox> Processor(s)
        </td>
        <td >
        <s:url id="proc" value="/processor.do" />
        <s:div id="d1" theme="ajax" href="%{proc}" listenTopics="show_detail" cssStyle="width:250; height:170;" />
        </td>
        </tr>        
                </table>
        </s:form>
</body>
</html>

//------------------------------------------------------------------------------------------------
//processor.jsp
<%@ taglib uri="/struts-tags" prefix="s" %>
Test

//------------------------------------------------------------------------------------------------
//struts.xml
<package name="struts2" namespace="/" extends="struts-default">
<action name="processor" class="com.stuts2.Processor">
<result name="success">/processor.jsp</result>
</action>
</package>

//------------------------------------------------------------------------------------------------
//Processor.java
package com.stuts2;

import com.opensymphony.xwork2.ActionSupport;

public class Processor extends ActionSupport {

        public String execute() throws Exception{
                return SUCCESS;
        }
}

Are there any configuration settings to be done for  this?

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


[jira] Closed: (WW-2632) Ajax does not work with struts 2 j4 - "dojo undefined"

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/struts/browse/WW-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeromy Evans closed WW-2632.
----------------------------

    Resolution: Not A Problem

Please ask questions about using struts in the struts-user mailing list.
JIRA is for reporting issues with Struts itself.

> Ajax does not work with struts 2 j4 - "dojo undefined"
> ------------------------------------------------------
>
>                 Key: WW-2632
>                 URL: https://issues.apache.org/struts/browse/WW-2632
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11
>         Environment: O/S: MS Windows 2000 Professional
> Web Server: Apache Tomcat 5.5.26 for JDK 1.4.2
> Java: Jdk 1.4.2
> Struts 2.0.11 for JDK 1.4.2 (All J4 jars are included)
>            Reporter: Giri
>            Priority: Minor
>
> Hi,
> I am developing a web application that needs ajax for better GUI presentation.
> On click of a checkbox, the div section should be filled with details. I am getting error as 'dojo undefined'. The following is the code.
> //------------------------------------------------------------------------------------------------
> //temp.jsp
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <html>
> <head>
> <title>Temp</title>
> <s:head theme="ajax" />
> <script>  
>     function show_details() {        
>       dojo.event.topic.publish("show_detail");  
>     }  
>   </script>
> </head>
> <body>
> <br/>
> <s:form action="processor" theme="simple">
> <table width="40%" align="center" cellspacing="2" cellpadding="2" border="1">
> <tr>
> <th colspan="4" class="TableHeader">Info</th>
> </tr>
> <tr>
>         <td valign="top">
>         <s:checkbox name="chk" onclick="javascript:show_details();"></s:checkbox> Processor(s)
>         </td>
>         <td >
>         <s:url id="proc" value="/processor.do" />
>         <s:div id="d1" theme="ajax" href="%{proc}" listenTopics="show_detail" cssStyle="width:250; height:170;" />
>         </td>
>         </tr>        
> </table>
> </s:form>
> </body>
> </html>
> //------------------------------------------------------------------------------------------------
> //processor.jsp
> <%@ taglib uri="/struts-tags" prefix="s" %>
> Test
> //------------------------------------------------------------------------------------------------
> //struts.xml
> <package name="struts2" namespace="/" extends="struts-default">
> <action name="processor" class="com.stuts2.Processor">
> <result name="success">/processor.jsp</result>
> </action>
> </package>
> //------------------------------------------------------------------------------------------------
> //Processor.java
> package com.stuts2;
> import com.opensymphony.xwork2.ActionSupport;
> public class Processor extends ActionSupport {
> public String execute() throws Exception{
> return SUCCESS;
> }
> }
> Are there any configuration settings to be done for  this?

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


[jira] Updated: (WW-2632) Ajax does not work with struts 2 j4 - "dojo undefined"

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/struts/browse/WW-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]


    Status: Resolved  (was: Closed)

> Ajax does not work with struts 2 j4 - "dojo undefined"
> ------------------------------------------------------
>
>                 Key: WW-2632
>                 URL: https://issues.apache.org/struts/browse/WW-2632
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11
>         Environment: O/S: MS Windows 2000 Professional
> Web Server: Apache Tomcat 5.5.26 for JDK 1.4.2
> Java: Jdk 1.4.2
> Struts 2.0.11 for JDK 1.4.2 (All J4 jars are included)
>            Reporter: Giri
>            Priority: Minor
>
> Hi,
> I am developing a web application that needs ajax for better GUI presentation.
> On click of a checkbox, the div section should be filled with details. I am getting error as 'dojo undefined'. The following is the code.
> //------------------------------------------------------------------------------------------------
> //temp.jsp
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <html>
> <head>
> <title>Temp</title>
> <s:head theme="ajax" />
> <script>  
>     function show_details() {        
>       dojo.event.topic.publish("show_detail");  
>     }  
>   </script>
> </head>
> <body>
> <br/>
> <s:form action="processor" theme="simple">
> <table width="40%" align="center" cellspacing="2" cellpadding="2" border="1">
> <tr>
> <th colspan="4" class="TableHeader">Info</th>
> </tr>
> <tr>
>         <td valign="top">
>         <s:checkbox name="chk" onclick="javascript:show_details();"></s:checkbox> Processor(s)
>         </td>
>         <td >
>         <s:url id="proc" value="/processor.do" />
>         <s:div id="d1" theme="ajax" href="%{proc}" listenTopics="show_detail" cssStyle="width:250; height:170;" />
>         </td>
>         </tr>        
> </table>
> </s:form>
> </body>
> </html>
> //------------------------------------------------------------------------------------------------
> //processor.jsp
> <%@ taglib uri="/struts-tags" prefix="s" %>
> Test
> //------------------------------------------------------------------------------------------------
> //struts.xml
> <package name="struts2" namespace="/" extends="struts-default">
> <action name="processor" class="com.stuts2.Processor">
> <result name="success">/processor.jsp</result>
> </action>
> </package>
> //------------------------------------------------------------------------------------------------
> //Processor.java
> package com.stuts2;
> import com.opensymphony.xwork2.ActionSupport;
> public class Processor extends ActionSupport {
> public String execute() throws Exception{
> return SUCCESS;
> }
> }
> Are there any configuration settings to be done for  this?

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