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 have a 2010 13" MBP and it was running slow, so I used internet recovery to install Mavericks. I had hoped to reinstall all my applications such as Office, iWork etc from my Time Machine backups but it won't let me. I wonder if since I erased my ol [More]
Its the third harddisc now which i have formatted and filled with 20 GB of files with my Powermac G4 (Dual 1,25 GHZ Power PC G4 1MB L3-Cache pro Processor 1,75 GB DDR SDRAM) . When I eject it and plug it in at a new Macpro 2x Quadcore 2,8 GHz it is m [More]
I am trying to determine the impacts of not having LIBPATH set in an AIX 5.3 environment running Oracle 10.2.0.4 64 bit databases. It would appear these databases may have been ported from Linux and the LD_LIBRARY_PATH variable was set in some of the [More]
Hi all, I have installed siebel 8.1 with Oracle 10g. I have successfully installed everything but when I am trying to install ADM Management Server its giving error. Error: Unable to write out string table for language pack. Setup cannot continue.(SB [More]
I'm using Command pattern to execute a "Service" classes. The executer of the "Service" classes is an EJB, and I need this EJB to be parametrized in properties file. I'm using ConfigUtils to access the properties file. The properties f [More]
I have extended one VO and added its column to a existing table layot of OAF Page in iProcurement. As such its OK. But when i try to reorder the columns, and try to bring my new column in the second position it gives the following error. Message not [More]
Dear Experts, I want to track the usage of SAP transactions by the users in some systems over 1 year period. Based on some online reading, I can see the 2 options: 1. Via SM19 Security Audit 2. Via STAD (short term only) However, with all the system [More]
Hi, I just upgraded my desktop version and when I do my backup now I only see one file from the back up. blackberry9300.ipd             the size is about 786 ko before with the older desktop version 5.0 the backup used to create 2 files blackberry.ip [More]
I just got a tour and it came with bbm 5.0. i hate it. its confusing and i was wondering is there ANY way i can get an older version of bbm downloaded on it?I just did the same thing, but for different reasons... This is what you want... choose the v [More]
Hi, I have created an MMS through my J2ME application. Now instead of sending that MMS to someone, I want to save it in the Messages folder of the phone memory. Any guesses, on how I can acheive this goal. Any help is appreciated. Regards, AshishMoro [More]