weblogic portal 8.1 service pack 2 has been out for several months. by the time this article is published, service pack 3 may also be out. having worked on a couple of weblogic portal projects with this version, i have come across several small and large issues.
this article will provide several tips and tricks to solve these problems, with appropriate code snippets to help portal developers. please note that several of these snippets can be found on the bea newsgroup and/or as part of the bea weblogic portal samples that come with the weblogic platform download. however, i have taken most of those snippets and modified them to suit the use cases that i will apply them to in this article. so lets jump right in...
tip 1: log in to your portal
the bea samples kit provides several login examples. there are a few things to bear in mind when choosing the login type that you want: do you want to support automatic login using cookies, login using a controller or a backing file, etc.? one thing to remember is that you always want the portal to refresh after login, so that entitlements can kick in. the two samples worth looking at are the autologinbacking.java and the loginbacking.java file under the tutorial portal directory. i like using a backing file for the login process so that i can perform an automatic login... 下一页