This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hey guys.I am using 1.1.In my jsp somewhere I have written <html:link action="regn">SignUp</html:link>.Also in the struts-config I have my action mapping as:
On clicking on the hyperlink SignUp,its not going to the regnform.jsp as on clicking on the hyperlink,the URL is coming as http://localhost:8080/JavaBondCom/regn.
It should come as regn.do.But the suffix .do is not getting attached on the URL generation.
Moreover in one of the book,its written "When you use the action attribute instead of the page attribute in
<html:link>, you need not specify the “.do” explicitly.".
P.S:If in the URL bar,if I add the ".do" explicitly,it works fine!!THe regn.jsp is displayed.
So now how to resolve this problem?How will I add the suffix do in the generated URL after clicking the hyperlink??