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
I am facing the problem while opening project web app. I configured the SharePoint 2013 and project server 2013. Here is the detail what I performed the steps: OS Server 2012 R2, SQL Server 2012, SharePoint server 2013 version 15.0.4420.1017, Project [More]
I'm using ID CS3 (5.03) and I'm relatively new to ID and Leopard. I've just started working with an editor who's using InCopy CS3 on a Mac and we've been having some font problems. I've just realized I'm going to have to update my font library to sta [More]
A couple of times Lenovo have asked for suggestions etc via System Update. This has been a great way of reporting bugs (there are a few) and make Lenovo aware of the problems users have. I have found no other way to report bugs, from small/minor prob [More]
Hi, I have to restore a database using an old backupset (4 years ago) to a new database. My challenge is we don't know what version of the database were used back then. Is there anyway I can find this information. We are using the RMAN catalog. Or is [More]
Hi Can anyone help me out to convert the database in 3NF to Star schema so that it can be used for Business Intelligence. Our Application will be populating the database in normal 3NF form which may be difficult for the intelligence to generate queri [More]
Rather than including both a GTE and LTE in a CFIF when I want to find something between two values, is there an operator that I can include to simply things. something like <CFIF #column1# BETWEEN(value1, value2)> Currently I have to do <CFIF (# [More]
tried the adobe clener tool not workingAnd what specifically? The cleaner tool merely deals with teh installer data base. It does not remove the programs. You should have used the proper uninstaller. Now your only option is to eitehr manualyl delete [More]
Hi Friends I am installing the log4cxx product and facing the problem at asm code. Acutally that code i swritten for v8plus sparc versions but my whole project is base on sparc generic , so using arch as generic i want to install ,the stament which g [More]
I'm a broke student and in rather dire need of Dreamweaver or InDesign (Photoshop would also be a plus). Maybe this is a subversive question to be asking on the official Adobe forum, but does anyone have any ideas about how to get this amazing softwa [More]
I had flash player a few days ago.  Now I keep getting plug-in failure.  I've tried for hours today to download...  You tube won't play either.  Your site says I have latest installed but I can't see it in my launchpadYou won't see it in LaunchPad.. [More]