Sitemap

Amicuk Programming Answers

Recommended Practice for Exception handling in JSP portlets

-0001-11-30   Views:0

Advertisement

Hi, This may be a redundant question, but hope to get some feedback on the generally used practice of catching exceptions in a JSP based Portal application. Is it okay to just make use of the standard JSP errorpage directive in each of the JSP portle

Hi,
This may be a redundant question, but hope to get some feedback on the generally used practice of catching exceptions in a JSP based Portal application.
Is it okay to just make use of the standard JSP errorpage directive in each of the JSP portlets to point to the same errorpage.jsp. If a problem occurs in any of the portlets, the userfriendly message in the errorpage.jsp would be rendered.
Of course there could be some kind of error logging done in the errorpage.jsp to track the error stack. This also means, that you would not want to catch any exceptions inside each of the portlet JSPs but rather let the errorpage directive, be the catch all?
regards
-Ananth

The replay answer
Advertisement
Mohana,
Pls ignore the voice mail,it was for something else and I was able to talk to Peter as well about this.
Regarding the error/exception handling -
If the errorPage.jsp is used in each of the JSP portlets with the help of the JPS errorPage directive, if a general system failure or major appln. error occurs, you will get the errorPage.jsp containing the user friendly message to show up in each of the half a dozen portlets on the page!!. Is that allright.
You cannot really redirect the entire page using the code inside the JSP portlet. It will only render inside the same portlet. The only way you can do this is to use Javascript.
-Ananth

Go to See the other 3 answers

Recommended Practice for Exception handling in JSP portlets

Category:DefaultRelease time:-0001-11-30Views:130

Hi, This may be a redundant question, but hope to get some feedback on the generally used practice of catching exceptions in a JSP based Portal application. Is it okay to just make use of the standard JSP errorpage directive in each of the JSP portle[More]

Recommended practice for handling page level validation?

Category:DefaultRelease time:-0001-11-30Views:130

I'm wondering what the recommended practice is for handling what I would call "page level validation?" For example, I have two text boxes. Either one text box or the other must have a non-null value. If they are both null, I want the page valida[More]

JSP portlet built in Jdeveloper call stored procedure

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have a simple jsp portlet built with Jdeveloper, now I'm trying to execute a stored procedure from the jsp. How can one access database and call a proc, in a jsp which is developed in Jdeveloper? Is JSTL required for it or a normal jdbc calls w[More]

Session problem in JSP portlet

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a jsp portlet. In this jsp i am creating a session and i am putting some value in session. There is navigation from this jsp to second jsp(not portlet) and from this jsp to third jsp(again this is also not a portlet). Now in third jsp i am[More]

Display image in JSP Portlet

Category:DefaultRelease time:2015-10-11Views:130

I create a JSP portlet. But The portlet can't display image(gif file, jpg file). I have modified the provider.xml and the following line is added: <imageURL>URL_Path</imageURL> But, the image still cannot be displayed. How can I display image[More]

[Error running JSP portlet in JDeveloper

Category:DefaultRelease time:2015-10-11Views:130

I'm writing a JSP portlet with JDeveloper 9.0.3. The "index.jsp" works OK, and I can see the registration URL for my new provider. I deploy the application to Oracle9iAS 9.0.2.0.1 Application Server succesfully throught DCM servlet, register the[More]

Upload file form problem in JSP portlet !!!

Category:DefaultRelease time:2015-10-11Views:130

Hi! I use "OrdHttpUploadFile" class for upload file in JSP portlet to database! Problem is that this class must use FORM ENCTYPE="multipart/form-data" whis I suppose dont work in portlet!? Which FORM ENCTYPE should I use in portlet! Or[More]

Call pl/sql API from jsp portlets

Category:DefaultRelease time:2015-10-11Views:130

HI ALL! I need to ask from java developers for portal application,How can i call pl/sql API from my jsp portlets,What enhancements in code should i have to follow in addition to use JDBC,I read in FAQ abt portal some thing abt pl/sql wrapper but that[More]

JSP Portlet posting information to another JSP

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have a JSP portlet that needs to submit form information to another JSP that is not a portlet. I'm not sure how to do this. The parameter passing examples pass information from one JSP portlet to another JSP portlet. I want to pass information[More]

Get the user group in a JSP portlet

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm developping a JSP portlet and i'd like to know how to get the group of the user ? (the JSP will display URL links only if a user belongs to a specific group). I've seen the objet ProviderUser but it doesn't have methods wich give the user gro[More]

How to show chinese char form db in my jsp portlet?

Category:DefaultRelease time:2015-10-11Views:130

How to show chinese char form db in my jsp portlet? I had tried to set contentType in renderResponse, but itn't work ..Bent, You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as[More]

Hot
Is there an equivalent for this https://msdn.microsoft.com/en-us/library/windows/apps/jj571205(v=vs.105).aspx But for 8.1? I can't find anything.Hi Edgardo, >>Is there an equivalent for this https://msdn.microsoft.com/en-us/library/windows/apps/jj57 [More]
Hello, Its been a long time since I have been on the discussions board for the G4 powermacs. I have currently my G4 powermac powerPC Digital Audio 733mhz/1MB L3 cache. I have an AGP ATI 7000 radeon which is 64MB. I was wondering, because I was browsi [More]
Since the latest IOS update, my new iPad Air is freezing and glitching badly. Typing is delayed.iPad running slow? How to speed up a slow iPad http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/ If You Think iOS 7 Feels Slo [More]
http://help.adobe.com/en_US/PremierePro/4.0/WS3D22F379-B6C7-4d8c-9548-26AA3E1EA74F.html In the above thread "Moving a project to another computer" it states the assets should retain their file names and folder locations so that Premiere Pro can [More]
I have a 9i database exp file called test.dmp. I need to imp to 10.2 g database. I can import everything else but jobs. Following is the error message I got. I checked the 10.2 database, there is no jobs running on that database for that schema. Any [More]
Hi All, I have a distribution group named [email protected] setup and working fine. I want to allow member to Send on Behalf as this group, and have put the appropriate names in the Send on Behalf box, but for the life of me I cannot see how to actua [More]
firefox 13 windows 7, FlashPlayerPlugin_11_3_300_257.exe shows four of these are running in task manager on task bar there is an icon that is flash with more than 10 of the program running. only shows up when running firefox and gets longer and longe [More]
Hi I'm looking for suggestions on good books to get when using OO4O with VB 6 and VB.NET thanksHey Ralph: I'm new to OO4O and I recently went looking for some books. The only thing I found (that concentrated on OO4O) was a book titled: "Oracle and Vi [More]
New to Solution Manager. While trying to run SolDocA for tcodes and custom programs against production I am getting the RFC error "No authorization to log on as a trusted system".   I am trying to find out what is the minimum authorization I sho [More]
Im getting this error ...what should i do to clear this ?? ORA-12012: error on auto execute of job 5103 > ORA-02149: Specified partition does not exist > ORA-06512: at "SYS.DBMS_SYS_SQL", line 826 > ORA-06512: at "SYS.DBMS_SQL" [More]