Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!

Keynes Paul Paul

Greenhorn
+ Follow
since Feb 18, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Keynes Paul Paul

Hi
I'm using error pages to handle html error codes 500 and 400 , when the 500 error is handled i see a NullPointerException generated, so I have this error in web.xml so i can handle the error for the entire module. I ahev tested it in my local machine and also it works in the dev server.
Now, to make sure the error page is reliable , i am testing it and I want to simulate an error situation for which i need to generate a null pointer exception, So is there a way to generate this exception?

Regards,
Keynes.
15 years ago
JSP
Hi
Thanks for your reply, I tried it with the friendly messages turned off, and it worked ,but instead of a regular html error page, is there a possibility to configure a pop-up instead of the html page. Kindly advise.

Regards,
Keynes.
15 years ago
JSP
Hi ,

#1 .
I am trying to handle the HTML error based on error codes.I tried to use the <error-page> tag in web.xml as I need to implement the error handling for all the jsp pages, but for some reason even when the HTML error happens the control is not passed over to the error page mentioned in <error-page>.
#2. I am using the jsp headers for error handling.
<%@page errorPage ="/errorPage.jsp"%>
in all the pages that where I need to handle the HTML errors. but same here,the control is not passed to the error handling page.

Also ,
As we know that we can handle the exception object in the errorHandling page, is there a possiblity to handle errors as how we handle exceptions.Kindly help.

Regards,
Keynes.
15 years ago
JSP
Hi,
I just meant the best practices and the syntax, not exactly Java code, but I managed to draft one

Regards,
Keynes.
15 years ago
JSP
I'm just trying to print a message in a modal window, insted of the regular S.O.P- does any have the code ?

Reg,
KP.
15 years ago
Hi Hemanth,
Do you have a number so that I can talk to , Im in bangalore
I dont think so I can post the code here.I think its sensitive. Kindlly suggest.

Regards,
Keynes.
15 years ago
Hi,
Accept, that the prefs can be changed during doEdit(), but to be exact I am just trying to load the prefs.Here's the scenario.The User logs in and sets his/her prefs by going to the edit page e.g how many and what columns to display and how many rows to display etc) after saving the prefs the user signs out and sign-in .Now,I want to load what the preferences what the user has set previously and dont want the prefs to change to default unless the user wishes to change.
So, the loading part is where i am stuck up with , could you please provide your valuable help ,Many thanks.

Regards,
Kenny.
15 years ago
Hi,
I am in need of the possible parameters for code review on jsp files. please provide code review checklist if anyone has it, your kind help is much appreciated,many thanks,

Regards,
Keynes.
16 years ago
JSP
Hi,
I am using IBM RAD for development and when I build the project , the class files are not generated and when I generate a WAR ,obviously its not valid becasue the class files are not there.The error it says is that- its looking for a jar files so I added the jar file as an external jar into the build path , but even after that it says the same error and doenst generate the class files. I tried whatever i coudl think of, but still not working.Can anyone help me in the regards. Please.Many Thanks.

Regards,
Keynes.
16 years ago
>> I have created a portlet and specified the portlet preferences in portlet.xml file ,and there are no values set for these preferences.

So, no values are to be read from the portlet.xml file? So when the portlet loads, nothing should be initialized to any default values.

/// we declare the portlet preferences in portlet.xml and because the values are to be loaded from a DB by a bean , we do not hard-code it but instead use the PortletPreferences object in doView() to change it.
we have the code for pulling the values from the DB and assigning it to the preferences, but for some reason , the values doesnt show up , when the portal page is rendered for the first time.


>>i am expecting the portlet with the portlet preferences loaded from the bean table

I guess this is a different portal than JetSpeed/Pluto/WebSphere, because I have no idea what a bean table is? Sorry.

/// its jsr168 portlet,its just a regular java bean class(model) which access the DB and populate the values
>>I click on the edit view link and just click the save button without ANY changes

So, it sounds like the initialization of these portlet preferences are happening during the action processing phase. So, the portal page renders the first time, or you go to the edit page, only doView and doEdit are being triggered. But on clicking of the button, sounds like you are triggering your even processing phase, and that's where preferences are being loaded.

// you are right i see the pref are read and the values are updated and stored in the processAction(),

So how do we migrate it to the doView()??

Cameron please suggest


Correct me on any incorrect assumptions I've made, and perhaps I can be of more help.

Best luck. I know how frustrating these portlet/portal problems can be to troubleshoot.

-Cameron McKenzie
16 years ago
Hi,
I have created a portlet and specified the portlet preferences in portlet.xml file ,and there are no values set for these preferences.When the portal page loads for the first time, i am expecting the portlet with the portlet preferences loaded from the bean table, but it doesnt happen. but after the portlet is loaded,I click on the edit view link and just click the save button without ANY changes , the previously expected values are loaded in the portlet,can anyone please help me with this problem.

please note: I am in a very crucial situation, your kind help is much appreciated.Many Thanks.

Regards,
Keynes.
16 years ago