AFAIK this is because dbForms' controller "overrides" the localWebEvent property, a possible workaround is:
<% if(request.getParameter("nextForm")!=null) response.sendRedirect(request.getContextPath() + request.getParameter("nextForm")); %> <db:dbform tableName="table_one" maxRows="1" followUpOnError="<%=request.getServletPath()%>"> <input type="hidden" name="nextForm" value="/form2_new.jsp" /> ... <db:insertButton showAlways="false" styleClass="clsButtonStyle" caption="Commit and continue"/> </db:dbform>
and so on for form2...
cheers, baptiste
neal wrote:
I am designing a system that requires a user to go thru 3 data entry screens. What I want to have happen that is a soon as user clicks "submit" on the first screen he is taken to the second screen.
I can't seem to make this work !!!
When I click submit and go to form2, I am in "navigate" mode and see the first record, I am NOT in "insert" mode which is what I want
If I have a link from the main page, it works as expected. <db:navNewButton styleClass="clsButtonStyle" destTable="table_two" followUp="/form2_new.jsp" caption=" 2 "/>
--
On Form1 I have (form1_new.jsp) <db:dbform multipart="false" autoUpdate="false" followUp="/form2_new.jsp" followUpOnError="/form1_new.jsp" maxRows="1" tableName="table_one"> . <db:insertButton showAlways="false" styleClass="clsButtonStyle" caption="Commit and continue"/> . </db:dbform>
Form 2 (form2_new.jsp) <db:dbform localWebEvent="navNew" multipart="false" autoUpdate="false" followUp="/form3_new.jsp" followUpOnError="/form2_new.jsp" maxRows="1" tableName="table_two"> <db:insertButton showAlways="false" styleClass="clsButtonStyle" caption="Commit data into student"/> </db:dbform> ===
Has anyone done anything similar, have submit on form-1 got to form-2 , how did you do it ? Is there some workaround or other mechanism ?
Thanks,
Neal Katz
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms