Sitemap

Amicuk Programming Answers

Recommended Practice for Exception handling in JSP portlets

-0001-11-30   Views:4

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
Hi Experts, My problem is: When i try to read from an archived file, the moment archive_open_for_read function module is executed, a popup box appears asking to choose the name of the archive file to be read. I have to pass only one Export Parameter [More]
Dear all, In the web site: ****************/Tutorials/XI/XIMainPage.htm, I find many integration scenarios which use an FTP server as a sender or a receiver or both. I would like to configure one of them, but i don't know how can i registry an FTP se [More]
Hi there, I was wondering if someone would be able to help me with a scanning issue. I use my HP 7520 wirelessly, and the printing works fine. I can scan to email and to a USB, but scanning to my computer won't work. It used to work, and stopped one [More]
After upgrading tp Maveraicks I have adobe for my pdf reader in safari.  Can anyone tell me how to get back to apple pdf reader?  Thank youRemove Adobe plug ins if any. Macintosh HD > Library > Internet Plug-ins AdobePDFViewNPAPI.plugin AdobePDFView [More]
Hi Experts/Moderator, I need solution to my queries regarding Year End Closing Activity?  1. How can we post adjustment entries to GL/AR/AP/BANK/ASSET accounts in the previous FYu20192008 in Apr/May/Jun/Julyu20192009 using Special Posting Periods, if [More]
this is so frustrating.  I can't hear the responses over the road noise so instead, I must look at the screen and read her responses (Safety first, right).   Why just siri? all the other functions output audio through my car's speakers, but someone d [More]
I am pulling what little hair I have out trying to figure out this problem, please help if you can - How can I programmatically retrieve at runtime the client and server nonces used to negotiate a SSL socket in JSSE? Regards, BartSorry - I wasn't ver [More]
I want to be able to select dinamicaly witch table to print. their structure is the very similar but not equal (the order of the elements change) so far im getting a "The data object "<WA_T>" has no structure and therefore no componen [More]
Hi, could anybody give me an short example of xslt code for the following problem. Now i have something like that in my xslt file: <TimeInterval value="{./TIMEMWH1}"/> <TimeInterval value="{./TIMEMWH2}"/> how can i put this [More]
Is there an API for java to do command promt calls in windows, trying to have my app works with an external sdkIf I understand you well, you want to invoke non-Java applications from Java. ProcessBuilder is the class to do that.Read other 2 answers [More]