Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/web/actions
In directory sc8-pr-cvs1:/tmp/cvs-serv29438/src/org/asturlinux/frade/prolix/web/actions
Modified Files:
LoadConsultAction.java
Log Message:
Minor changes in consult-page action and web
Index: LoadConsultAction.java
===================================================================
RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/web/actions/LoadConsultAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LoadConsultAction.java 13 Jul 2003 19:05:07 -0000 1.1
--- LoadConsultAction.java 13 Jul 2003 21:38:50 -0000 1.2
***************
*** 27,30 ****
--- 27,33 ----
* @struts.action-forward name="failure"
* path="/consult.jsp"
+ *
+ * @struts.action-forward name="otherProgram"
+ * path="/program.jsp"
*/
public class LoadConsultAction extends Action
***************
*** 44,50 ****
// Take form bean atrributes
//String consult = ((LoadProgramFormBean)form).getConsult();
- return (mapping.findForward("success"));
}
-
}
--- 47,70 ----
// Take form bean atrributes
//String consult = ((LoadProgramFormBean)form).getConsult();
+ String action = (String)request.getParameter("load");
+ if (action == null)
+ {
+ action = (String)request.getParameter("otherProgram");
+ if (action == null)
+ {
+ //FIXME Something is going BAD
+ return (mapping.findForward("failure"));
+ }
+ else
+ {
+ return (mapping.findForward("otherProgram"));
+ }
+ }
+ else
+ {
+ //FIXME here the code to load consult
+ return (mapping.findForward("otherProgram"));
+ }
}
}
|