Re: Actions as welcome files

2013-06-03 Thread Antonio Sánchez
Yes, this makes it work. I'm just using the examples linked in the tutorials. IMHO, tutorials and examployees, if possible, should be updated with working code and best practices. In my case I have spent time with this issue. I have posted this issue to JIRA. Thank you all! El Viernes, 31

Re: Actions as welcome files

2013-05-31 Thread Chris Pratt
In my experience most containers rely on the existence of the file specified in the , but don't directly use it. Because of this, if you define your welcome file as: index.jsp Then create a dummy (or even 0 byte length) index.jsp file, your container will actually go through the normal proce

Re: Actions as welcome files

2013-05-31 Thread Lukasz Lenart
2013/5/31 Antonio Sánchez : > I have to move struts.xml (originally inside resources folder) inside maven > 'main' folder to make it work and avoid > > HTTP 404 - There is no Action mapped for namespace [/] and action name > [] associated with context path [/Hello_World_Struts2_Mvn]. > > but th

Re: Actions as welcome files

2013-05-31 Thread Antonio Sánchez
Is it in JIRA as feature request? I guess I can still redirect "index.jsp" to "index.action", although it is not elegant, in my opinion. Newbies are then confused because the code in the examples are using this feature (index.action in welcome-files), but they don't work. A warning would hel

Re: Actions as welcome files

2013-05-31 Thread Antonio Sánchez
Sorry, second link is this: http://struts.apache.org/development/2.x/docs/crud-demo-i.html El 31/05/13 20:17, Antonio Sánchez escribió: Hello. My name is Antonio, I'm beginning with Struts2 and this is my first post. Where should store struts.xml if I need to use an action as a welcome file?

Re: Actions as welcome files

2013-05-31 Thread Paul Benedict
It's not possible at the moment. It's a feature that I would like to have too. On Fri, May 31, 2013 at 1:17 PM, Antonio Sánchez wrote: > Hello. > > My name is Antonio, I'm beginning with Struts2 and this is my first post. > > Where should store struts.xml if I need to use an action as a welcome

Actions as welcome files

2013-05-31 Thread Antonio Sánchez
Hello. My name is Antonio, I'm beginning with Struts2 and this is my first post. Where should store struts.xml if I need to use an action as a welcome file? In example "Hello World" (maven): http://struts.apache.org/development/2.x/docs/hello-world-using-struts-2.html I have to move struts.xm