Meteor and Struts 2

classic Classic list List threaded Threaded
4 messages Options
rp
Reply | Threaded
Open this post in threaded view
|

Meteor and Struts 2

rp
Hi,

I'm trying to integrate my Struts2 application with Meteor.
I have commented out the struts filter in the web xml and i have defined it as a param under MeteorServlet. When i try to launch a regular page (that should be served by Struts) i just get a blank page. Its as if all requests are going to the MeteorServlet and nothing is getting passed to Struts.

I need some pages to be served by Struts and some pages need to have WebSockets. What am i missing? Any help is much appreciated.

Here's my web xml.

    <servlet>
        <servlet-name>MeteorServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.MeteorServlet</servlet-class>
        <init-param>
            <param-name>org.atmosphere.filter</param-name>
            <param-value>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useWebSocket</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useNative</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
            <param-value>org.atmosphere.client.FormParamFilter,org.atmosphere.client.JavascriptClientFilter
            </param-value>
        </init-param>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>MeteorServlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
Reply | Threaded
Open this post in threaded view
|

Re: Meteor and Struts 2

survivant
I have the same problem.



2011/7/24 rp <[hidden email]>
Hi,

I'm trying to integrate my Struts2 application with Meteor.
I have commented out the struts filter in the web xml and i have defined it
as a param under MeteorServlet. When i try to launch a regular page (that
should be served by Struts) i just get a blank page. Its as if all requests
are going to the MeteorServlet and nothing is getting passed to Struts.

I need some pages to be served by Struts and some pages need to have
WebSockets. What am i missing? Any help is much appreciated.

Here's my web xml.

   <servlet>
       <servlet-name>MeteorServlet</servlet-name>
       <servlet-class>org.atmosphere.cpr.MeteorServlet</servlet-class>
       <init-param>
           <param-name>org.atmosphere.filter</param-name>

<param-value>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</param-value>
       </init-param>
       <init-param>
           <param-name>org.atmosphere.useWebSocket</param-name>
           <param-value>true</param-value>
       </init-param>
       <init-param>
           <param-name>org.atmosphere.useNative</param-name>
           <param-value>true</param-value>
       </init-param>
       <init-param>

<param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>

<param-value>org.atmosphere.client.FormParamFilter,org.atmosphere.client.JavascriptClientFilter
           </param-value>
       </init-param>
       <load-on-startup>0</load-on-startup>
   </servlet>
   <servlet-mapping>
       <servlet-name>MeteorServlet</servlet-name>
       <url-pattern>/*</url-pattern>
   </servlet-mapping>

--
View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Meteor-and-Struts-2-tp6614845p6614845.html
Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.



--
-------------
A+

Sébastien.

Vous pouvez me suivre sur Twitter / You can follow me on Twitter : http://twitter.com/survivant
rp
Reply | Threaded
Open this post in threaded view
|

Re: Meteor and Struts 2

rp
Let me know if you find a solution.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Meteor and Struts 2

survivant
I opened a issue this week.   Can you check if you have the same problem that I describe and put comments if needed

thanks
http://java.net/jira/browse/ATMOSPHERE-147

2011/7/24 rp <[hidden email]>
Let me know if you find a solution.

Thanks!

--
View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Meteor-and-Struts-2-tp6614845p6615946.html
Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.



--
-------------
A+

Sébastien.

Vous pouvez me suivre sur Twitter / You can follow me on Twitter : http://twitter.com/survivant