The YourCo web site incorporates several of the other
samples from the WebSphere Gallery. As you explore the site, you can
find:
Quote: If an employee's
profile has the Quote choice turned ON, the rotation quote displays
on the Employee Center page. Look for instances of quoteBean in these
files in the WSsamplesIDB_app/web/YourCo/Employee folder (under <was_root>/hosts/default_host):
- CenterResults.jsp
- CenterGeneric.jsp
- CenterResultsPoll.jsp
- CenterGenericPoll.jsp.
Poll: You can also find
the poll on the Employee Center page. Our question asks about our
favorite sports. We added the form to CenterResults.jsp and CenterGeneric.jsp
and we display the results on CenterResultsPoll.jsp and CenterGenericPoll.jsp.
You will find these files in the WSsamplesIDB_app/web/YourCo/Employee
folder (under <was_root>/hosts/default_host).
Expiring HTML: We adapted
the Expiring HTML sample to display different pages based on the time
of day. To see our code changes, look at the files in the WSsamplesIDB_app/servlets/WebSphereSamples/YourCo/ExpiringHTMLServlet
directory (under <was_root>/hosts/default_host).
- If you go to YourCo news before noon, you will
see the AM edition of the news (ExpiringHTMLBeforeDate.jsp).
- After noon, you will see the PM edition (ExpiringHTMLAfterDate.jsp).
Survey: You can link
to our survey from the Employee Center. When you submit the survey
form, the SurveyResults servlet saves your responses and displays
them on SureveyResultsResults.jsp. From this page you can run the
AllSubmitted servlet and view the responses of all the participants
on AllSubmittedResults.jsp. Look for these files in:
- (locations are relative to <was_root>/hosts/default_host)
- WSsamplesIDB_app/servlets/WebSphereSamples/YourCo/Survey
- WSsamplesIDB_app/web/YourCo/Survey
|