Author Login
Post Reply
user Digest 29 Jul 2008 05:45:45 -0000 Issue 8165
Topics (messages 189402 through 189412):
Re: There is no Action mapped for namespace / and action name ...
189402 by: John Moose
189403 by: Dave Newton
189404 by: Paul Benedict
Who wins: struts.xml or struts.properties?
189405 by: Paul Benedict
189406 by: Musachy Barroso
Re: Background Threads
189407 by: Reginald.Javier.gxs.com
189408 by: Jeromy Evans
actionMessages
189409 by: sudeep.jampana.sifycorp.com
Re: [S2} REST plugin & Security
189410 by: Jeromy Evans
Re: Is it possible not to use DOJO plugin?
189411 by: Jeromy Evans
custom converter takes String representation of long ID and replaces with Object - convertFromString not being called
189412 by: durbinjo593.gmail.com
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_189402.ezm (zipped)and I probably should have included this as well:
Struts Problem Report
Struts has detected an unhandled exception:
*Messages*:
There is no Action mapped for namespace / and action name dashbd.
------------------------------
Stacktraces *There is no Action mapped for namespace / and action name
dashbd. - [unknown location]*
com.opensymphony.xwork2.DefaultActionProxy.prepare (
DefaultActionProxy.java:177)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (
DefaultActionProxyFactory.java:59)
org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40)
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:439)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:186)
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:214)
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
org.apache.catalina.core.StandardContextValve.invokeInternal (
StandardContextValve.java:198)
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:152)
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:137)
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:118)
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:102)
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
org.apache.catalina.core.ContainerBase.invoke (
ContainerBase.java:929)
org.apache.coyote.tomcat5.CoyoteAdapter.service (
CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run (
Thread.java:595)
On Mon, Jul 28, 2008 at 4:39 PM, John Moose <jgmoose@(protected):
> Hi Dave,
>
> I have the following snippet of DashbdController class that I am expecting
> to hit with the following URL:
>
> http:/localhost:8080/Dashbd
>
> <---SNIPPET
>
> package com.myeclipse.ozone;
>
> import
java.util.Collection;
>
> import com.myeclipse.hibernate.*;
>
> import
org.hibernate.HibernateException;
> import
org.hibernate.Session;
> import
org.hibernate.cfg.Configuration;
>
> import
org.apache.struts2.config.Result;
> import
org.apache.struts2.config.Results;
> import
org.apache.struts2.dispatcher.ServletActionRedirectResult;
> import org.apache.struts2.rest.DefaultHttpHeaders;
> import org.apache.struts2.rest.HttpHeaders;
>
> import
com.opensymphony.xwork2.ModelDriven;
> import
com.opensymphony.xwork2.Validateable;
> import
com.opensymphony.xwork2.ValidationAwareSupport;
>
>
> @Results({
> @Result(name="success", type=ServletActionRedirectResult.class,
> value="dashbd")
> })
>
> public class DashbdController extends ValidationAwareSupport implements
> ModelDriven<Object>, Validateable{
>
> //private static Gadget transientGadget = new Gadget();
>
> //String id;
> int id;
>
> private static int dashboardId;
>
> private Collection<Dashbd> dashboardList;
> private Collection<Dashbd> model;
> private Collection<DashbdType> dashboardTypeList;
>
> private DashbdService dashboardService = new DashbdService(); // where
> the DAOs live
>
>
> /*
> ****************************************************************************************
> * DASHBOARDS
> */
>
> //
> // GET .../dashbd get all dashboards in table
> //
> public HttpHeaders index() {
> dashboardList = dashboardService.getAll();
> return new DefaultHttpHeaders("index") // dashbd-index.jsp
> .disableCaching();
> }
>
>
> and etc. ....
>
> ...END SNIPPET >
>
> There are more methods in this calss of course, but all I'm trying to do
> initially is hit the index() action with the URL above ?!?
>
> the index.jsp is really simple:
>
> <% response.sendRedirect("dashbd"); %>
>
>
> this same scheme works perfectly with another RESTful app service and fir
> the life of me, I can't find any
>
>
>
> On Mon, Jul 28, 2008 at 4:17 PM, Dave Newton <newton.dave@(protected):
>
>> The web.xml doesn't have anything to do with the error message; it thinks
>> there isn't an action configured at the URL you're requesting.
>>
>> Impossible to help without more information.
>>
>> Dave
>>
>> --- On Mon, 7/28/08, John Moose <jgmoose@(protected):
>>
>> > From: John Moose <jgmoose@(protected)>
>> > Subject: There is no Action mapped for namespace / and action name ...
>> > To: "Struts Users Mailing List" <user@(protected)>
>> > Date: Monday, July 28, 2008, 3:58 PM
>> > I know what you're thinking... web.xml has no action
>> > mapping, but it does!
>> >
>> >
>> > <?xml version="1.0"
>> > encoding="UTF-8"?>
>> > <web-app version="2.5"
>> > xmlns="http://java.sun.com/xml/ns/javaee"
>> >
>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >
>> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> >
>> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>> >
>> > <display-name>Struts 2 RESTful Ozone
>> > Services</display-name>
>> >
>> > <!-- Filters -->
>> > <filter>
>> > <filter-name>action2</filter-name>
>> >
>> >
>> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>> > <init-param>
>> >
>> > <param-name>actionPackages</param-name>
>> >
>> > <param-value>com.myeclipse.ozone</param-value>
>> > </init-param>
>> > <init-param>
>> >
>> > <param-name>struts.devMode</param-name>
>> > <param-value>true</param-value>
>> > </init-param>
>> > </filter>
>> >
>> > <filter-mapping>
>> > <filter-name>action2</filter-name>
>> > <url-pattern>/*</url-pattern>
>> > </filter-mapping>
>> >
>> > <welcome-file-list>
>> > <welcome-file>index.jsp</welcome-file>
>> > </welcome-file-list>
>> > </web-app>
>> >
>> >
>> >
>> > This file works well with another Struts2.1.3 app. Can
>> > someone help me
>> > understand where to look for the cause of this???
>> >
>> > Thanks folks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_189403.ezm (zipped)Hmm, I wonder if it was the same issue I was having with 2.1.3 a week or so ago that I haven't had time to re-visit--so it actually could be the web.xml (specifically the dispatcher being used) and I may have put my foot in my mouth (again).
Somebody followed up saying the original FilterDispatcher worked, though, so maybe not. Hrm.
Dave
--- On Mon, 7/28/08, John Moose <jgmoose@(protected):
> and I probably should have included this as well:
>
> Struts Problem Report
>
> Struts has detected an unhandled exception:
> *Messages*:
> There is no Action mapped for namespace / and action name
> dashbd.
> ------------------------------
> Stacktraces *There is no Action mapped for namespace / and
> action name
> dashbd. - [unknown location]*
>
>
>
com.opensymphony.xwork2.DefaultActionProxy.prepare (
DefaultActionProxy.java:177)
>
>
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (
DefaultActionProxyFactory.java:59)
>
> org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40)
>
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:439)
>
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
>
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:186)
>
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:157)
>
>
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:214)
>
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>
>
org.apache.catalina.core.StandardContextValve.invokeInternal (
StandardContextValve.java:198)
>
>
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:152)
>
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:137)
>
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:118)
>
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:102)
>
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
>
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
>
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
>
>
org.apache.catalina.core.ContainerBase.invoke (
ContainerBase.java:929)
>
>
org.apache.coyote.tomcat5.CoyoteAdapter.service (
CoyoteAdapter.java:160)
>
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
>
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>
java.lang.Thread.run (
Thread.java:595)
>
>
>
> On Mon, Jul 28, 2008 at 4:39 PM, John Moose
> <jgmoose@(protected):
>
> > Hi Dave,
> >
> > I have the following snippet of DashbdController class
> that I am expecting
> > to hit with the following URL:
> >
> > http:/localhost:8080/Dashbd
> >
> > <---SNIPPET
> >
> > package com.myeclipse.ozone;
> >
> > import
java.util.Collection;
> >
> > import com.myeclipse.hibernate.*;
> >
> > import
org.hibernate.HibernateException;
> > import
org.hibernate.Session;
> > import
org.hibernate.cfg.Configuration;
> >
> > import
org.apache.struts2.config.Result;
> > import
org.apache.struts2.config.Results;
> > import
>
org.apache.struts2.dispatcher.ServletActionRedirectResult;
> > import org.apache.struts2.rest.DefaultHttpHeaders;
> > import org.apache.struts2.rest.HttpHeaders;
> >
> > import
com.opensymphony.xwork2.ModelDriven;
> > import
com.opensymphony.xwork2.Validateable;
> > import
com.opensymphony.xwork2.ValidationAwareSupport;
> >
> >
> > @Results({
> > @Result(name="success",
> type=ServletActionRedirectResult.class,
> > value="dashbd")
> > })
> >
> > public class DashbdController extends
> ValidationAwareSupport implements
> > ModelDriven<Object>, Validateable{
> >
> > //private static Gadget transientGadget = new
> Gadget();
> >
> > //String id;
> > int id;
> >
> > private static int dashboardId;
> >
> > private Collection<Dashbd>
> dashboardList;
> > private Collection<Dashbd> model;
> > private Collection<DashbdType>
> dashboardTypeList;
> >
> > private DashbdService dashboardService = new
> DashbdService(); // where
> > the DAOs live
> >
> >
> > /*
> >
> ****************************************************************************************
> > * DASHBOARDS
> > */
> >
> > //
> > // GET .../dashbd get all
> dashboards in table
> > //
> > public HttpHeaders index() {
> > dashboardList = dashboardService.getAll();
> > return new
> DefaultHttpHeaders("index") // dashbd-index.jsp
> > .disableCaching();
> > }
> >
> >
> > and etc. ....
> >
> > ...END SNIPPET >
> >
> > There are more methods in this calss of course, but
> all I'm trying to do
> > initially is hit the index() action with the URL above
> ?!?
> >
> > the index.jsp is really simple:
> >
> > <% response.sendRedirect("dashbd"); %>
> >
> >
> > this same scheme works perfectly with another RESTful
> app service and fir
> > the life of me, I can't find any
> >
> >
> >
> > On Mon, Jul 28, 2008 at 4:17 PM, Dave Newton
> <newton.dave@(protected):
> >
> >> The web.xml doesn't have anything to do with
> the error message; it thinks
> >> there isn't an action configured at the URL
> you're requesting.
> >>
> >> Impossible to help without more information.
> >>
> >> Dave
> >>
> >> --- On Mon, 7/28/08, John Moose
> <jgmoose@(protected):
> >>
> >> > From: John Moose <jgmoose@(protected)>
> >> > Subject: There is no Action mapped for
> namespace / and action name ...
> >> > To: "Struts Users Mailing List"
> <user@(protected)>
> >> > Date: Monday, July 28, 2008, 3:58 PM
> >> > I know what you're thinking... web.xml
> has no action
> >> > mapping, but it does!
> >> >
> >> >
> >> > <?xml version="1.0"
> >> > encoding="UTF-8"?>
> >> > <web-app version="2.5"
> >> >
> xmlns="http://java.sun.com/xml/ns/javaee"
> >> >
> >> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >> >
> >> >
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >> >
> >> >
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> >> >
> >> > <display-name>Struts 2 RESTful
> Ozone
> >> > Services</display-name>
> >> >
> >> > <!-- Filters -->
> >> > <filter>
> >> >
> <filter-name>action2</filter-name>
> >> >
> >> >
> >>
> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> >> > <init-param>
> >> >
> >> >
> <param-name>actionPackages</param-name>
> >> >
> >> >
> <param-value>com.myeclipse.ozone</param-value>
> >> > </init-param>
> >> > <init-param>
> >> >
> >> >
> <param-name>struts.devMode</param-name>
> >> >
> <param-value>true</param-value>
> >> > </init-param>
> >> > </filter>
> >> >
> >> > <filter-mapping>
> >> >
> <filter-name>action2</filter-name>
> >> >
> <url-pattern>/*</url-pattern>
> >> > </filter-mapping>
> >> >
> >> > <welcome-file-list>
> >> >
> <welcome-file>index.jsp</welcome-file>
> >> > </welcome-file-list>
> >> > </web-app>
> >> >
> >> >
> >> >
> >> > This file works well with another Struts2.1.3
> app. Can
> >> > someone help me
> >> > understand where to look for the cause of
> this???
> >> >
> >> > Thanks folks
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> >> For additional commands, e-mail:
> user-help@(protected)
> >>
> >>
> >

Attachment:
user_189404.ezm (zipped)What's the correct way of writing a good 404 or action not found page? Does
s2 have something like a fallback action if nothing can be found?
Paul
On Mon, Jul 28, 2008 at 4:04 PM, Dave Newton <newton.dave@(protected):
> Hmm, I wonder if it was the same issue I was having with 2.1.3 a week or so
> ago that I haven't had time to re-visit--so it actually could be the web.xml
> (specifically the dispatcher being used) and I may have put my foot in my
> mouth (again).
>
> Somebody followed up saying the original FilterDispatcher worked, though,
> so maybe not. Hrm.
>
> Dave
>
> --- On Mon, 7/28/08, John Moose <jgmoose@(protected):
> > and I probably should have included this as well:
> >
> > Struts Problem Report
> >
> > Struts has detected an unhandled exception:
> > *Messages*:
> > There is no Action mapped for namespace / and action name
> > dashbd.
> > ------------------------------
> > Stacktraces *There is no Action mapped for namespace / and
> > action name
> > dashbd. - [unknown location]*
> >
> >
> >
>
com.opensymphony.xwork2.DefaultActionProxy.prepare (
DefaultActionProxy.java:177)
> >
> >
>
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (
DefaultActionProxyFactory.java:59)
> >
> >
> org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:40)
> >
> >
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:439)
> >
> >
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:186)
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:157)
> >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:214)
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
> >
> >
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
> >
> >
>
org.apache.catalina.core.StandardContextValve.invokeInternal (
StandardContextValve.java:198)
> >
> >
>
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:152)
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
> >
> >
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
> >
> >
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:137)
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
> >
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:118)
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:102)
> >
> >
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
> >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext (
StandardValveContext.java:104)
> >
> >
>
org.apache.catalina.core.StandardPipeline.invoke (
StandardPipeline.java:520)
> >
> >
org.apache.catalina.core.ContainerBase.invoke (
ContainerBase.java:929)
> >
> >
org.apache.coyote.tomcat5.CoyoteAdapter.service (
CoyoteAdapter.java:160)
> >
> >
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
> >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >
> >
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >
java.lang.Thread.run (
Thread.java:595)
> >
> >
> >
> > On Mon, Jul 28, 2008 at 4:39 PM, John Moose
> > <jgmoose@(protected):
> >
> > > Hi Dave,
> > >
> > > I have the following snippet of DashbdController class
> > that I am expecting
> > > to hit with the following URL:
> > >
> > > http:/localhost:8080/Dashbd
> > >
> > > <---SNIPPET
> > >
> > > package com.myeclipse.ozone;
> > >
> > > import
java.util.Collection;
> > >
> > > import com.myeclipse.hibernate.*;
> > >
> > > import
org.hibernate.HibernateException;
> > > import
org.hibernate.Session;
> > > import
org.hibernate.cfg.Configuration;
> > >
> > > import
org.apache.struts2.config.Result;
> > > import
org.apache.struts2.config.Results;
> > > import
> >
org.apache.struts2.dispatcher.ServletActionRedirectResult;
> > > import org.apache.struts2.rest.DefaultHttpHeaders;
> > > import org.apache.struts2.rest.HttpHeaders;
> > >
> > > import
com.opensymphony.xwork2.ModelDriven;
> > > import
com.opensymphony.xwork2.Validateable;
> > > import
com.opensymphony.xwork2.ValidationAwareSupport;
> > >
> > >
> > > @Results({
> > > @Result(name="success",
> > type=ServletActionRedirectResult.class,
> > > value="dashbd")
> > > })
> > >
> > > public class DashbdController extends
> > ValidationAwareSupport implements
> > > ModelDriven<Object>, Validateable{
> > >
> > > //private static Gadget transientGadget = new
> > Gadget();
> > >
> > > //String id;
> > > int id;
> > >
> > > private static int dashboardId;
> > >
> > > private Collection<Dashbd>
> > dashboardList;
> > > private Collection<Dashbd> model;
> > > private Collection<DashbdType>
> > dashboardTypeList;
> > >
> > > private DashbdService dashboardService = new
> > DashbdService(); // where
> > > the DAOs live
> > >
> > >
> > > /*
> > >
> >
> ****************************************************************************************
> > > * DASHBOARDS
> > > */
> > >
> > > //
> > > // GET .../dashbd get all
> > dashboards in table
> > > //
> > > public HttpHeaders index() {
> > > dashboardList = dashboardService.getAll();
> > > return new
> > DefaultHttpHeaders("index") // dashbd-index.jsp
> > > .disableCaching();
> > > }
> > >
> > >
> > > and etc. ....
> > >
> > > ...END SNIPPET >
> > >
> > > There are more methods in this calss of course, but
> > all I'm trying to do
> > > initially is hit the index() action with the URL above
> > ?!?
> > >
> > > the index.jsp is really simple:
> > >
> > > <% response.sendRedirect("dashbd"); %>
> > >
> > >
> > > this same scheme works perfectly with another RESTful
> > app service and fir
> > > the life of me, I can't find any
> > >
> > >
> > >
> > > On Mon, Jul 28, 2008 at 4:17 PM, Dave Newton
> > <newton.dave@(protected):
> > >
> > >> The web.xml doesn't have anything to do with
> > the error message; it thinks
> > >> there isn't an action configured at the URL
> > you're requesting.
> > >>
> > >> Impossible to help without more information.
> > >>
> > >> Dave
> > >>
> > >> --- On Mon, 7/28/08, John Moose
> > <jgmoose@(protected):
> > >>
> > >> > From: John Moose <jgmoose@(protected)>
> > >> > Subject: There is no Action mapped for
> > namespace / and action name ...
> > >> > To: "Struts Users Mailing List"
> > <user@(protected)>
> > >> > Date: Monday, July 28, 2008, 3:58 PM
> > >> > I know what you're thinking... web.xml
> > has no action
> > >> > mapping, but it does!
> > >> >
> > >> >
> > >> > <?xml version="1.0"
> > >> > encoding="UTF-8"?>
> > >> > <web-app version="2.5"
> > >> >
> > xmlns="http://java.sun.com/xml/ns/javaee"
> > >> >
> > >> >
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > >> >
> > >> >
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > >> >
> > >> >
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> > >> >
> > >> > <display-name>Struts 2 RESTful
> > Ozone
> > >> > Services</display-name>
> > >> >
> > >> > <!-- Filters -->
> > >> > <filter>
> > >> >
> > <filter-name>action2</filter-name>
> > >> >
> > >> >
> > >>
> >
> <filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> > >> > <init-param>
> > >> >
> > >> >
> > <param-name>actionPackages</param-name>
> > >> >
> > >> >
> > <param-value>com.myeclipse.ozone</param-value>
> > >> > </init-param>
> > >> > <init-param>
> > >> >
> > >> >
> > <param-name>struts.devMode</param-name>
> > >> >
> > <param-value>true</param-value>
> > >> > </init-param>
> > >> > </filter>
> > >> >
> > >> > <filter-mapping>
> > >> >
> > <filter-name>action2</filter-name>
> > >> >
> > <url-pattern>/*</url-pattern>
> > >> > </filter-mapping>
> > >> >
> > >> > <welcome-file-list>
> > >> >
> > <welcome-file>index.jsp</welcome-file>
> > >> > </welcome-file-list>
> > >> > </web-app>
> > >> >
> > >> >
> > >> >
> > >> > This file works well with another Struts2.1.3
> > app. Can
> > >> > someone help me
> > >> > understand where to look for the cause of
> > this???
> > >> >
> > >> > Thanks folks
> > >>
> > >>
> > ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > user-unsubscribe@(protected)
> > >> For additional commands, e-mail:
> > user-help@(protected)
> > >>
> > >>
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189405.ezm (zipped)Given the same property specified in struts.xml and struts.properties, which
value will take precedence?
Paul

Attachment:
user_189406.ezm (zipped)the one on struts.properties
musachy
On Mon, Jul 28, 2008 at 5:18 PM, Paul Benedict <pbenedict@(protected):
> Given the same property specified in struts.xml and struts.properties, which
> value will take precedence?
>
> Paul
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_189407.ezm (zipped)Hi Dave,
You can just create any class that extends the Thread object or implements the runnable interface. The required method, run(), should abstract what u want to do, (connect to the 3rd party server). Instantiate that class then call its start() method from the Struts action that should trigger it. Your action should finish safely without waiting for that thread to finish. Note: this is just a bare implementation, you might want to consider using thread pooling to manage your resources. What exactly do you intend to do? Will you wait for a response from your HTTPS server?
Reginald Javier
Software Engineer II, Strategic Customer Solutions Implementation
T: +632-859-5442
-----Original Message-----
From: dave.smith [mailto:germ32@(protected)]
Sent: Monday, July 28, 2008 11:45 PM
To: user@(protected)
Subject: Re: Background Threads
I forgot to mention that I am using Struts 1.1.
dave.smith wrote:
>
> I have a function that POSTs data to a third party HTTPS server: void
> postData(String sURL, String sData);
>
> I need to call this function as a background thread from an Action class,
> so that the user doesn't have to wait on the connection to establish. How
> can I safely call this function so that it becomes a background thread?
>
> Thanks,
> Dave
>
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_189408.ezm (zipped)
If you're using Java 1.5+, the standard concurrent package provides
everything you need.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/package-summary.html#package_description
There should be several tutorial available for it and it's well with
understanding the various approaches. Prior to Java 1.5 there is a
library available that the concurrent package was derived from (I forget
the name).
Important: If you're creating your own threads within a container, it's
essential that you guarantee that the threads and their resources are
properly released. Failing to do so will prevent the container from
undeploying your application or shutting down cleanly. One technique to
assist with this is create your ExecutorService within a
ServletContextListener that uses the shutdown method to shutdown the
threads and release all resources. Another approach is to use a library
that provides this level of integration already (such as is available in
one of the Spring packages I believe).
regards,
Jeromy Evans
Reginald.Javier@(protected):
> Hi Dave,
>
> You can just create any class that extends the Thread object or implements the runnable interface. The required method, run(), should abstract what u want to do, (connect to the 3rd party server). Instantiate that class then call its start() method from the Struts action that should trigger it. Your action should finish safely without waiting for that thread to finish. Note: this is just a bare implementation, you might want to consider using thread pooling to manage your resources. What exactly do you intend to do? Will you wait for a response from your HTTPS server?
>
> Reginald Javier
> Software Engineer II, Strategic Customer Solutions Implementation
> T: +632-859-5442
> -----Original Message-----
> From: dave.smith [mailto:germ32@(protected)]
> Sent: Monday, July 28, 2008 11:45 PM
> To: user@(protected)
> Subject: Re: Background Threads
>
>
> I forgot to mention that I am using Struts 1.1.
>
>
> dave.smith wrote:
>
>> I have a function that POSTs data to a third party HTTPS server: void
>> postData(String sURL, String sData);
>>
>> I need to call this function as a background thread from an Action class,
>> so that the user doesn't have to wait on the connection to establish. How
>> can I safely call this function so that it becomes a background thread?
>>
>> Thanks,
>> Dave
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Background-Threads-tp18691709p18691741.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.5.6/1578 - Release Date: 28/07/2008 5:13 PM
>
>
>
>

Attachment:
user_189409.ezm (zipped)Hi,
I am sending an message for the successful submission of the form by using actionMessage .In the struts xml file i have used the redirect action and passed action message as parameter. In the display i am getting the message .But the problem is the message is getting formatted by [] these characters ex:[successfully submitted]. I want to avoid that braces how can i do plz give me the procedure
Thanks,
Srinivasa Raju Ch
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)
Complete Coverage of the ICC World Cup '07! Log on to www.sify.com/khel for
latest updates, expert columns, schedule, desktop scorecard, photo galleries
and more!
Watch the hottest videos from Bollywood, Fashion, News and more only on www.sifymax.com
For the Expert view of the ICC World Cup log on to www.sify.com/khel.
Read exclusive interviews with Sachin, Ganguly, Yuvraj, Sreesanth, Expert
Columns by Gavaskar, Web chat with Dhoni and more! .

Attachment:
user_189410.ezm (zipped)
If you don't have complex URL patterns, I'd continue down the JEE path.
It should work. Although I haven't tried it with websphere it's a
fundamental requirement of the container.
I'd temporarily switch to HTTP BASIC instead of LDAP to try isolate the
problem.
Yes, creating a custom Security Interceptor is another approach. It's
pretty simple to throw your own interceptor into the stack that checks
the Principal or Session and forces a redirect/error if appropriate.
It's a low effort approach but you take on some more risk of introducing
vulnerabilities.
An better approach is to use a third party filter. Acegi/Spring
Security is the most popular and probably the most flexible as it's
closely bound to your (Spring) Object Factory. There are other open
source filters available too that may suite you.
Hope that helps,
Jeromy Evans
Mike Watson wrote:
> I should probably add that I'm just trying to authenticate via LDAP at
> this stage. Authorization will be implemented later.
>
> 2008/7/28 Mike Watson <michael.f.watson@(protected)>:
>
>> Hi Folks,
>>
>> What's the most straightforward way to secure my REST URLs?
>>
>> I'd assumed that I'd be able to use the standard JEE approach and
>> secure based on URL patterns but this doesn't seem to work (on
>> Websphere anyway) and I'm assuming it's to do with the fact everything
>> I'm doing is happening in filters rather than working with 'real'
>> resources. (I don't get any errors, I just get to see resources I
>> shouldn't when I'm not authenticated).
>>
>> Is there some sort of Security Interceptor I should enable or should
>> this work the way I initially assumed?
>>
>> Has anybody else (Jeromy?) done this?
>>
>> Cheers
>>
>> Mike
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> Internal Virus Database is out of date.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.5.5/1569 - Release Date: 23/07/2008 1:31 PM
>
>
>
>

Attachment:
user_189411.ezm (zipped)holod wrote:
>
> As I understood, I have to use dojo plugin (additional jar).
> Please, tell me, is it possible to avoid usage of dojo plugin?
> Seems like my problem can be solved:
> if <s:div/> would not send request automatically, when page is loaded, but
> only on user mouse click, I would be happy using it without additional dojo
> plugin.
> I've set autoStart="false" but it doesn't help :( Is there are any other
> oppotunities to stop automatic first-time execution?
>
>
>
If using Struts 2.0.x, dojo is bundled in the main jar. It is a plugin
in 2.1.x.
Yes, you can avoid using Dojo. Instead using a different client-side
library or XMLHttpRequest directly. However the struts2 tags only
support Dojo at the moment.
Don't use s:div. As Dave suggested, use an s:a or s:submit with the
target pointing at a div that contains your image. The content of the
target will be replaced by your action's response when the link/button
is clicked. If use use s:a, the anchor can contain the image, so
clicking the image replaces itself with the response from your action.

Attachment:
user_189412.ezm (zipped)I'm running into an issue where a converter i've setup is failing (or
appears) to fail to execute. First, might I make the assumption that type
converters and validators can be represented as beans. Reason being is
because I need to be able to do dependency injection via spring.
So, my problem is this: I've got an object 'CostCode' that has several
primitive properties and one 'Organization' object property. When the user
submits the form below, the validation specifications fail because the
system expects an Organization object as costCode.organization and instead
the validation processes receive a String representation of a LongID (the
long ID of the chosen Organization).
So, I thought, this is a perfect opportunity to use a converter... It's not
working, though. See the code below:
### RELEVANT TEMPLATE CODE ###
<s:form ... >
<s:textfield name="costCode.code" maxlength="20"></s:textfield>
...
<s:select name="costCode.organization" list="organizations" listKey="id"
listValue="name" label="Organization..." />
</s:form>
### xwork-conversion.properties ###
com.ktm.tt.model.organization.Organization=com.ktm.tt.struts.converters.organization.OrganizationConverter
### com.ktm.tt.struts.converters.organization.OrganizationConverter ###
package com.ktm.tt.struts.converters.organization;
import
java.util.Map;
import
org.apache.log4j.Logger;
import
org.apache.struts2.util.StrutsTypeConverter;
import com.ktm.tt.dao.hibernate.organization.impl.OrganizationDaoImpl;
public class OrganizationConverter extends StrutsTypeConverter {
private OrganizationDaoImpl organizationDao;
private static final Logger LOG =
Logger.getLogger(OrganizationConverter.class);
public Object convertFromString(Map context, String[] values, Class toClass)
{
Long organizationID = new Long(values[4]);
LOG.debug("running OrganizationConverter.convertFromString!!!");
return organizationDao.findById(organizationID);
}
public String convertToString(Map context, Object o) {
LOG.debug("running OrganizationConverter.convertToString!!!");
return null;
}
public OrganizationDaoImpl getOrganizationDao() {
return organizationDao;
}
public void setOrganizationDao(OrganizationDaoImpl organizationDao) {
this.organizationDao = organizationDao;
}
}
### RELEVANT LOG OUTPUT
96 [KTMTT] DEBUG [2008/07/28 22:50:41] | processing conversion file
[xwork-conversion.properties]
97 [KTMTT] DEBUG [2008/07/28 22:50:41] |
com.ktm.tt.model.organization.Organization:com.ktm.tt.struts.converters.organization.OrganizationConverter
[treated as TypeConverter
com.ktm.tt.struts.converters.organization.OrganizationConverter@(protected)]
...
514 [KTMTT] DEBUG [2008/07/28 22:51:22] | Setting params costCode.type => [
three ] costCode.code => [ oneone ] costCode.unit => [ four ] costCode.label
=> [ twotwo ] costCode.organization => [ 10 ]
515 [KTMTT] DEBUG [2008/07/28 22:51:22] | Entering nullPropertyValue
[target=[com.ktm.tt.struts.action.organization.CreateCostCode@(protected),
com.opensymphony.xwork2.DefaultTextProvider@(protected)]
516 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: code
517 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.model.organization.CostCode
518 [KTMTT] DEBUG [2008/07/28 22:51:22] | converter is null for property
code. Mapping size: 0
519 [KTMTT] DEBUG [2008/07/28 22:51:22] | field-level type converter for
property [code] = none found
520 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: costCode.code
521 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.struts.action.organization.CreateCostCode
522 [KTMTT] DEBUG [2008/07/28 22:51:22] | converter is null for property
costCode.code. Mapping size: 0
523 [KTMTT] DEBUG [2008/07/28 22:51:22] | global-level type converter for
property [code] = none found
524 [KTMTT] DEBUG [2008/07/28 22:51:22] | falling back to default type
converter [com.opensymphony.xwork2.util.XWorkBasicConverter@(protected)]
525 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: label
526 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.model.organization.CostCode
527 [KTMTT] DEBUG [2008/07/28 22:51:22] | field-level type converter for
property [label] = none found
528 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: costCode.label
529 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.struts.action.organization.CreateCostCode
530 [KTMTT] DEBUG [2008/07/28 22:51:22] | global-level type converter for
property [label] = none found
531 [KTMTT] DEBUG [2008/07/28 22:51:22] | falling back to default type
converter [com.opensymphony.xwork2.util.XWorkBasicConverter@(protected)]
532 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: organization
533 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.model.organization.CostCode
534 [KTMTT] DEBUG [2008/07/28 22:51:22] | field-level type converter for
property [organization] = none found
535 [KTMTT] DEBUG [2008/07/28 22:51:22] | Property: costCode.organization
536 [KTMTT] DEBUG [2008/07/28 22:51:22] | Class:
com.ktm.tt.struts.action.organization.CreateCostCode
537 [KTMTT] DEBUG [2008/07/28 22:51:22] | global-level type converter for
property [organization] =
com.ktm.tt.struts.converters.organization.OrganizationConverter@(protected)
538 [KTMTT] ERROR [2008/07/28 22:51:22] | ParametersInterceptor -
[setParameters]: Unexpected Exception caught setting 'costCode.organization'
on 'class com.ktm.tt.struts.action.organization.CreateCostCode: Error
setting expression 'costCode.organization ' with value
'[Ljava.lang.String;@(protected)'
So, what ends up happening is that the framework tries to determine the
conversion from a String to an Organization object... and fails.
I have the log levels jacked and I have _never_ seen the log statements I
have in place.
Any ideas???
--
Sent from the Struts - User mailing list archive at Nabble.com.