Appendix B: The updatecustomer.egl file after the section Create
an update page
The code that follows in Listing 4 is the completed version of the updatecustomer.egl file. If you
see any errors marked by red X symbols in the file, make sure that your code matches
this code:
Listing 4.
Completed code for the updatecustomer.egl file
package jsfhandlers;
import eglderbyr7.egl.data.*;
import eglderbyr7.StatusRec;
import eglderbyr7.access.CustomerLib;
handler updatecustomer type JSFHandler
{onConstructionFunction = onConstruction,
onPreRenderFunction = onPreRender,
view = "updatecustomer.jsp"}
customer Customer;
status StatusRec;
function onPreRender(CID int)
customer.CustomerId = CID;
CustomerLib.GetCustomer(customer, status);
end
function onConstruction()
end
function updateRecord()
CustomerLib.UpdateCustomer(customer, status);
forward to "allcustomers";
end
End |
Return to Create an update page.
13 of 16 |
Previous |
Next
Comments
Back to top
Help: Update or add to My dW interests
What's this?
This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.
And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.
View your My developerWorks profile
Return from help
static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational, Java technology
ArticleID=327939
TutorialTitle=Hello World: How to create a Java-based Web application without knowing Java technology
publish-date=08222008
author1-email=tmcmack@us.ibm.com
author1-email-cc=