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.
Hi Guys, I am strut newbie, I haven't really read much before working on struts. So I am just about to start reading it up, but in the main time I need help. I do apologise if this has already be covered somewhere else, I can't find it.
Basically, the app I am working on goes straight to the index page when you start it, and everything is control by strut action. What I want to do is to have a page before the home(index) page which I will call build page. And on this build page, there will two links, one like will take me to the home page of my application, and the other link will take me to the home page of a slightly older application.
Right, I have been able to make changes to make the application point to the build page, but I don't know how to point the link from the build page to point to my application.
I have two pages . I want to link page1.jsp to page2.jsp. On page1.jsp, there is a link which says
Link to Page 2.
I want to use strut action to map the link, what do I call my link or how do I map it in the strut config.xml file. As in how does it knows when I click the link, that is supposed to go to page 2. This is what I have in my page1.jsp file
<li><a href="page2.jsp"/>New Build</a></li> Do I need to add any code in the jsp file to Identify the link, or do I need to add anything to my action class. I am very new to struts. Here is a sample of my mapping file. Thanks