|
Hello, I wonder if some one could help me. I am using Studio to create a web jsp application. I built 3 SQL files with the wizard. STULMASC needs parms SSN & PIN for selection STULGOAC needs parm SSN for selection FACPMAST needs parm SDASSN (should come from STULGOAC SQL) I used the data base wizard to create an input page with SSN & PIN and created a results and error page. I used the data base wizard to create an input page for SDASSN and a results page I added the STULGOAC data bean code to SSN java processing code and it works. What i am trying to do is pass along the result field of SDASSN from the STULGOAC access to the FACPMAST data bean so that i can select a record equal to its value. // instantiate the Student Goal bean and store so they can be accessed by the called page olr.GoalDBBean GoalDBBean = null; GoalDBBean = (olr.GoalDBBean) java.beans.Beans.instantiate(getClass().getClassLoader(), "olr.GoalDBBean"); session.putValue("GoalDBBean", GoalDBBean); GoalDBBean.setUserID(getParameter(request, "userID", true, true, false, null)); GoalDBBean.setPassword(getParameter(request, "password", true, true, false, null)); GoalDBBean.setURL(getParameter(request, "URL", true, true, false, null)); GoalDBBean.setDriver(getParameter(request, "driver", true, true, false, null)); GoalDBBean.setSSN(getParameter(request, "SSN", true, true, true, null)); GoalDBBean.execute(); // THIS RETURNS A FIELD CALLED SDASSN. THIS IS THE INPUT (SELECTION) FOR ADVISORBEAN // instantiate the Student Advisor bean and store so they can be accessed by the called page olr.AdvisorDBBean AdvisorDBBean = null; AdvisorDBBean = (olr.AdvisorDBBean) java.beans.Beans.instantiate(getClass().getClassLoader(), "olr.AdvisorDBBean"); session.putValue("AdvisorDBBean", AdvisorDBBean); AdvisorDBBean.setUserID(getParameter(request, "userID", true, true, false, null)); AdvisorDBBean.setPassword(getParameter(request, "password", true, true, false, null)); AdvisorDBBean.setURL(getParameter(request, "URL", true, true, false, null)); AdvisorDBBean.setDriver(getParameter(request, "driver", true, true, false, null)); AdvisorDBBean.setSDASSN(getParameter(request, "SDASSN", true, true, true, null)); //BLOWS UP RIGHT HERE AdvisorDBBean.execute(); THANKS IN ADVANCE! Michael P. Gibbons Manager of Programming & Technical Services MARYWOOD UNIVERSITY 2300 Adams Ave. Scranton, PA 18509 +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.