Kumari Priyanka

Greenhorn
+ Follow
since Dec 29, 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 Kumari Priyanka

Hi All,

While displaying the German word containing Umlaut characters like ç, á, ê, ó etc.. is not coming properly. Übersicht is coming something like & Uuml; bersicht
Because it is getting escaped twice. I am using it in the following way

<spring:message code="label.userInfo.firstName.tooltip" var="i18nFirstNameTooltip"/>
<form:input id="firstname_writevalue" cssClass="text" tabindex="201" path="user.firstName" title="${i18nFirstNameTooltip}"/>

I don't want to put htmlEscape = "true" as it may lead to xss.

Any suggestions please.

11 years ago
Thanks Akhilesh.... but that entry will only take care for error code 500 not the all 500 series error code.
and yeah you can set the error code in response programatically.... response.setStatusCode()
Hi All,

Is it possible to handle multiple error codes using only one entry in the web.xml??

I mean for example if I have to handle 404 error code, I will make the following entry in web.xml :-

<error-page>
<error-code>404</error-code>
<location>/pageNotfound</location>
</error-page>

But now I want to handle all the error codes of 500 range like 500, 501, 502.. etc....

Is it possible to write a generalize error code thing and handle all the error codes frrom say 500 - 600, and redirect it to same error page?

Thanks in advance for giving some pointer on this.

Thanks
Priyanka
Hi All,

Is there any thumb rule that if the method dose not depend on object state... It has to be marked as static??
Is there any disadvantage in making the method static.

Its only like we wont be able to inherit that method.

Is there any scenario where the method doesn't depend on state of the object and still we want it to inherit that method in our child class i.e to give the child class of its own implementation.??



yes.....gc will take care of the short lived references.....but the first is the best practice that you should follow......
15 years ago
see Divya....head first book is very good...and moreover its clearly written there that servlet context is for the whole web application while servlet config is for a particular servlet. Particular servlet means the servlet you had written for your web application and whose entry is there in the deployment descriptor. You can access the init parameter(deploy time constant parameters) from the servlet context and servlet config object. There are lot many concept...but for that you need to study..... but this is what i can say in nutshell....
15 years ago
In first case only one ArrayList object will be created in the heap.... while in second case 10 new ArrayList object will get created.....
15 years ago