You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Buitenhuis <er...@gmail.com> on 2007/07/05 17:06:30 UTC

the Bootstrap tutorial

Thanks to those who put the bootstrap tutorial application together. I'm
upgrading from struts1 to struts2, and I need all the help I can get. I
found one small (but curious) detail that threw me for a loop for an hour or
two:

Using the wildcards I had a bit of a problem that turned out to be solved by
ordering the <action> tags correctly in the struts.xml. What was happening
was, if I put the <action name="*" class="tutorial.TutorialSupport"> tag
first, I could not access the <action name="Login_*" method="{1}" class="
tutorial.Login"> action (note: in my case I changed the "Logon" to "Login"
just out of personal preference). I would get an exception saying
Login_input.action could not be found. When I changed the struts.xml file to
have the <action name="*" class="tutorial.TutorialSupport"> last, everything
worked fine.

I'm not sure if this is a bug in my setup or just the way Struts2 is. If it
is the latter, perhaps you could note this in the tutorial to alert others
who may have the same problem. If it is the former, what the heck, man?

Again, thanks for the hard work!

Eric Buitenhuis

Re: the Bootstrap tutorial

Posted by Eric Buitenhuis <er...@gmail.com>.
Thanks! I very well could have missed it. Midnight programming lends
itself to that. Anyway, now I know, so it's not that big of a deal.
Thanks for the response.

Eric Buitenhuis

On 7/10/07, Ted Husted <hu...@apache.org> wrote:
> Yes, as the bootstrap tutorial mentions, the first mapping that
> matches wins. I edited the note to add more emphasis to *first* and to
> specifically mention the name="*" case.  Thanks for the heads-up!
>
> -Ted.
>
> On 7/5/07, Eric Buitenhuis <er...@gmail.com> wrote:
> > Using the wildcards I had a bit of a problem that turned out to be solved by
> > ordering the <action> tags correctly in the struts.xml. What was happening
> > was, if I put the <action name="*" class="tutorial.TutorialSupport"> tag
> > first, I could not access the <action name="Login_*" method="{1}" class="
> > tutorial.Login"> action (note: in my case I changed the "Logon" to "Login"
> > just out of personal preference). I would get an exception saying
> > Login_input.action could not be found. When I changed the struts.xml file to
> > have the <action name="*" class="tutorial.TutorialSupport"> last, everything
> > worked fine.
> >
> > I'm not sure if this is a bug in my setup or just the way Struts2 is. If it
> > is the latter, perhaps you could note this in the tutorial to alert others
> > who may have the same problem. If it is the former, what the heck, man?
> >
> > Again, thanks for the hard work!
> >
> > Eric Buitenhuis
> >
>
>
> --
> HTH, Ted <http://www.husted.com/ted/blog/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: the Bootstrap tutorial

Posted by Ted Husted <hu...@apache.org>.
Yes, as the bootstrap tutorial mentions, the first mapping that
matches wins. I edited the note to add more emphasis to *first* and to
specifically mention the name="*" case.  Thanks for the heads-up!

-Ted.

On 7/5/07, Eric Buitenhuis <er...@gmail.com> wrote:
> Using the wildcards I had a bit of a problem that turned out to be solved by
> ordering the <action> tags correctly in the struts.xml. What was happening
> was, if I put the <action name="*" class="tutorial.TutorialSupport"> tag
> first, I could not access the <action name="Login_*" method="{1}" class="
> tutorial.Login"> action (note: in my case I changed the "Logon" to "Login"
> just out of personal preference). I would get an exception saying
> Login_input.action could not be found. When I changed the struts.xml file to
> have the <action name="*" class="tutorial.TutorialSupport"> last, everything
> worked fine.
>
> I'm not sure if this is a bug in my setup or just the way Struts2 is. If it
> is the latter, perhaps you could note this in the tutorial to alert others
> who may have the same problem. If it is the former, what the heck, man?
>
> Again, thanks for the hard work!
>
> Eric Buitenhuis
>


-- 
HTH, Ted <http://www.husted.com/ted/blog/>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org