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

Reply via email to