Gaurav Daga

Greenhorn
+ Follow
since Jun 19, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Gaurav Daga

I am sure, I am very late to post reply for this topic.. but still posting for future references..

WAS stores requested URL in a cookie.. if you want to change the redirect value (say to fixed location abc.sxyz), you just modify the value of the cookie in the authentication filter...

Cookie name can be traced.. and its value can also be changed..

I hope this might help someone in future..

Cheers
Gaurav Daga
15 years ago
Try opening up your admin console for your profile and remove all application from the admin console.

Always remember if you want to remove any application from WAS.. just go thru proper channel.. un-deploy the application from the admin console.. and then delete codebase/application packages.

If server is not coming up at all, you can try using admin commands to un-deploy these application.
15 years ago
Have you configured welcome file attribute in web.xml and verify that path you have given there is actually exists.

Also try hitting some url like http://<servername>:<portnumber>/<ApplicationName>/<ServletName>;

if you dont specify the servlet name, it will see for the file names mentioned in welcome tag in web.xml

also try to look into the sysout log file for your profile.. what doest it say..
15 years ago
Hi All,

I want to code following java code line using tag library:

I need to use logic:equal tag, that I am clear. Here is something which I can think off.. but I know it wont suffice:


Problem is I need to perform some logical operation on property 'processingInstructions' before comparing it, but I am not sure how I can do it with logic tag.

Any help would be highly appreciated.

Thanks.
Gaurav Daga

16 years ago
Hi All,

I am using Portlet Struts framework. One of my bean property is coming null over the JSP and I want to set it to default value.

My Following Logic is working properly..


I want to update this property.. I am little new to these taglibs.. any help will be appreciable.

Thanks.
Gaurav Daga
16 years ago
All,

I am facing one issue with the iteration. Below here is the part of code:



In this BackendRequestItem are being iterated. There is one more collection contained by BackendRequestItem (getBackendRequestItems()[i].getStatus()). I want to iterate over this collection..

If someone can help me out on this, that would be great.

Thanks,
Gaurav Daga
16 years ago
It seems a solid point.

Anyways thnaks for your response.

Cheers,
Gaurav Daga
17 years ago
Thanks both of you for your response.

Well my view is also same as you said. Though you may consider HttpServletRequest and HttpServletResponse as implicit object but its not 100% truth.

Anyways I belive there must be some confusion at counter side

Cheers,
Gaurav Daga
17 years ago
Hi All,

Are there any implicit objects available in servlets..? As for my view is concern there are no implicit objects in Servlet.. But in one of interview I faced recently, interviewer asked me this question and when I said there are no implicit objects available he was not agree with me.

Can any one throw some light on it..?

Cheers,
Gaurav Daga
[ August 13, 2007: Message edited by: Bear Bibeault ]
17 years ago
Thanks both of you for your reply.

It means whenever method selection (for overloaded method), is to be done at that time JVM matches reference type of arguement not exact type of that object. Seems a bit strange to me. [:-(]

Anyways thanks for your prompt response.

~Gaurav Daga
Hi All,

Have a look at following code:


Output of this sample is 'Hi'.

Can anyone explain logic behind this behaviour?

I was expecting it to be 'Hello' as object passed was actually of Class B but reference holder was of Class A.

Cheers!!
Gaurav Daga
In this way you can surely make subclass of this class.
But to have only private constructor in class will add discussed feature to the class. I hope you will not get confuse anymore. :-)
This means you cannot subclass.
It shows that this class will behave as final class.

I hop you would have gone through my post. :-)
Hi,

class A{
private A(){

}
private static A a;
public A static getA(){
if(a==null)
a= new A();

return a;

}
}

See this class carefully.

You will find
1. No class can subclass this class means it will behave like final class.
2. Only one object of this class can be created tht means only one. (ie Singleton class).

Hopefully it will give you a brief insight of Singleton pattern.

Cheers
Gaurav
[ November 05, 2006: Message edited by: Gaurav Daga ]