Re: preferred way to jump start app into struts?

2009-08-30 Thread Peter Phillips
Luis- there's nothing wrong with your code, but Rusty is also right. The trick is to create an empty file called the same name as your action (e.g. start.action) at the root of your web app. Tomcat will see the empty file and then call your action directly. 2009/8/30 Luis Martín Canaval Sánchez

Re: preferred way to jump start app into struts?

2009-08-30 Thread Paweł Wielgus
Hi all, Musachy and Dave are wright, you only need this: default-action-ref name=index/default-action-ref in your struts.xml no file in tomcat is needed, i use it in my www.isiak.pl app so you can check it out, it's on tomcat. Also one can do any redirect or anything else in this default

Re: preferred way to jump start app into struts?

2009-08-30 Thread Xyzr
://www.nabble.com/preferred-way-to-jump-start-app-into-struts--tp25204817p25205646.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: preferred way to jump start app into struts?

2009-08-30 Thread Rusty Wright
I didn't know about the empty file trick; thanks. It's annoying that this isn't defined in the servlet spec. Each servlet container does it differently; with jetty you can have the welcome-file point to a servlet (although I must be doing something wrong since I couldn't get it to work). My

Re: preferred way to jump start app into struts?

2009-08-30 Thread Rusty Wright
Thanks, that works well. I think I didn't try that because I couldn't get a similar setup to work with Spring MVC. Paweł Wielgus wrote: Hi all, Musachy and Dave are wright, you only need this: default-action-ref name=index/default-action-ref in your struts.xml no file in tomcat is

RE: preferred way to jump start app into struts?

2009-08-30 Thread Martin Gainty
pour le contenu fourni. Date: Sun, 30 Aug 2009 15:05:03 -0700 From: rusty.wri...@gmail.com To: user@struts.apache.org Subject: Re: preferred way to jump start app into struts? Thanks, that works well. I think I didn't try that because I couldn't get a similar setup to work with Spring

preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
Is there a preferred way to jump start a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way? ?xml version=1.0 encoding=ISO-8859-1 ? %@ page

Re: preferred way to jump start app into struts?

2009-08-29 Thread Xyzr
://www.nabble.com/preferred-way-to-jump-start-app-into-struts--tp25204817p25205541.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

Re: preferred way to jump start app into struts?

2009-08-29 Thread Xyzr
commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/preferred-way-to-jump-start-app-into-struts--tp25204817p25205646.html Sent from the Struts - User mailing list archive at Nabble.com

Re: preferred way to jump start app into struts?

2009-08-29 Thread Dave Newton
Rusty Wright wrote: Is there a preferred way to jump start a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way? ?xml version=1.0 encoding=ISO-8859-1 ?

Re: preferred way to jump start app into struts?

2009-08-29 Thread Luis Martín Canaval Sánchez
This is my preffered choice, just a welcome page defined in the web.xml file welcome-file-list welcome-filestart.action/welcome-file /welcome-file-list /web-app No redirects just straight to the action. On Sat, Aug 29, 2009 at 17:34, Rusty Wright rusty.wri...@gmail.com

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
Luis, are you using tomcat? I've tried that but it only works for me when the welcome-file is a actual, physical file in the ~tomcat/webapps/myapp directory. Luis Martín Canaval Sánchez wrote: This is my preffered choice, just a welcome page defined in the web.xml file welcome-file-list

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
What do you mean by Use a welcome page? As far as I can tell I can't have welcome-file specify a resource that's inside the app (i.e., maps to an Action), it has to be an actual, physical file. In other words, the web.xml tag is welcome-file, not welcome-url or welcome-resource, so it has to

Re: preferred way to jump start app into struts?

2009-08-29 Thread Musachy Barroso
. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/preferred-way-to-jump-start-app-into-struts--tp25204817p25205646.html Sent from

Re: preferred way to jump start app into struts?

2009-08-29 Thread Luis Martín Canaval Sánchez
My bad, I´m really sorry the code I posted is totally wrong. please ignore it. I usually start with a index.jsp or html as a welcome page. On Sat, Aug 29, 2009 at 18:37, Rusty Wright rusty.wri...@gmail.com wrote: Luis, are you using tomcat? I've tried that but it only works for me when the