Ioana Mihaela

Greenhorn
+ Follow
since May 08, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ioana Mihaela

Thanks a lot, it works
(not overriding the execute method did the trick)
16 years ago
Hi,I have the following code:
public class AggrActAction extends DispatchAction {
public ActionForward execute(...){...}
public ActionForward create(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response) {
System.out.println("create");
return mapping.findForward("success");
}
}
in strus-config.xml:
<action-mappings >
<action
attribute="aggrForm"
input="/aggr.jsp"
name="aggrForm"
parameter="met"
path="/aggrAct"
scope="request"
type="com.yourcompany.struts.action.AggrActAction">
<forward name="success" path="/success.jsp" redirect="true"/>
</action>
</action-mappings>
in aggr.jsp:
<html:link action="aggrAct.do?met=create">Create</html:link>
or
<html:link action="/aggrAct?met=create">Create</html:link>
both links lead to the execution of execute method in AggrActAction and not create

Does anyone have a clue why it doesn't work?
Thank you.
16 years ago