Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Ritesh Pareek

Ranch Hand
+ Follow
since Nov 04, 2008
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 Ritesh Pareek

Hi all,

I need to implement SSO for my web application, i am very new for that. I have done authentication with LDAP successfuly. I am authonticating my self here with windows log in credentials.

Now my need is, as i click to my web application, it should authenticate itself with current logged in windows user.

I can get user name by System properties but no idea how to get user password.

Can anyone suggest how to handle above situation.

Thanks

Ritesh PAreek
9 years ago
Hi,

I am get the following error websphere portal 5.1 despite having the filter in web.xml.
I am trying to use the excel export option and it failing with Nested Exception below.

please help me with this? All above configuration is working fine with tomcat.

Thanks

Ritesh PAreek
10 years ago
Hi All,

I was facing problem with dynamic select with ie (any version). As innerHtml property not working, have to genarate elements on runtime.



for ie i got solution like this



Working fine now

Thanks
@Istvan Kovacs

Thanks for valuable explanations. Got a way to study more and will come back again

Thanks all
10 years ago
My questions are:

1. I need to create a system of starting/stoping scheduler in such a way so that it should not bound with particular session, once someone logged-in runscheduler and than gone away for years and than come back and logged in to stop scheduler.
2. Basically this point is also related with the point mentioned above. When a servlet thread start a new thread into it, and than logged out, Will new thread killed or not? If not, than If i call isRunning() what will it return.
10 years ago
JSP
Hi All,

I am having a problem while Using Timer class in jsp (of course due to my misconceptions). Scenario is


Starting Timer thread from jsp like this



This is my Scheduler class



And here is my SynWithMyWorldSch.java



My questions are:

1. I need to create a system of starting/stoping scheduler in such a way so that it should not bound with particular session, once someone logged-in runscheduler and than gone away for years and than come back and logged in to stop scheduler.
2. Basically this point is also related with the point mentioned above. Whenever we hit server very first ... have to go will edit this post after 2hr
10 years ago
JSP
Thanks Greg Charles and Rahul Jadaun.


@Greg

That can be helpful for reducing dependencies



@Rahul

Loose coupling : The code that calls an interface method, does not need to know anything about the implementation.


Interfaces are also used as markers to denote certain type of behaviour.


Want more on marker(Anyway i am posting new thread on fourm )
Can you please elaborate it more? It seems both points indicating same concept.

@All

Please consider following architecture for model layer:

1. MyPojoClass implements MyPojoIfc
2. MyDaoClass implements MyDaoIfc
and there is one more in-between layer called Manager Layer

3. MyManagerClass implements MyManagerIfc

Now while using we are doing it like this

MyManagerIfc myManagerObj = MyManager.getInstance(); // Will call all methods of DAO
MyPojoIfc myPojoObj = myManagerObj.getDaoMethodViaManager();//

here calling of manager method is a kind of proxy calling.

If you can explain me the purpose and concept of above design(specially the role of interfaces here and putting an extra layer of manager)

Thanks & Regards

Ritesh PAreek




10 years ago
Hi all,
I am not very clear with concept of interface.My confusions are about following things i.e.
1. Interface is used to implement multiple inheritance( i dont think so)
2. Interface is a contract, so that we can implement integrity at architator level(seems to be)
As we see in design pattrens we implement interface to build design constructs.
thanks
10 years ago

For the directories given by you ... according my algorithm it will be
c:\checko~1\foo
c:\checko~1\foo



No, This must be like


c:\checko~1\foo
c:\checko~2\foo

java.lang.String API having this solution. Algo should be look like this

loop1 while mainStr not null
resArr[count++] = mainStr.slice(indexof("\\"))
end Loop2


loop2 while resArr

1. you can use selection/binary sorting here
2. truncate tailing chars with ~1
3. do compare array element for 8 char similar string.
4. if similar truncate tailing chars with ~2,3,4... so on
10 years ago


Does that mean your problem is solved? If not, what's still missing?



Yes i have implemented and it is solved.


What I suggested could be as simple as a call to Set.contains, the duration of which would hardly be measurable compared to DB operations.



Thanks for above suggestion, now i confirmed
10 years ago


Being more specific, I have a self-referential table in tree structure.

let say employee(EmpCode, name, managerEmpCode).
Here managerEmpCode is referenced by EmpCode of same table. Now there is insertion problem

a is the manager of b,
b is the manager of c,
c is the manager of d,
d is the manager of a.

If i am using recursion here than d will reference to a and a again reference to same loop... so as infinite

The obvious approach would be to check whether any "node" (or whatever a, b, c, d are) has already been visited.



Thanks, this suggestion will solve my problem but it will slow-down the process and is a performance issue. Right now i have implement my solution in this way


10 years ago
Hi All,


How can we identify/prevent infinite loop/recursion in java.

ex. let suppose a reports to b reports to c reports to d reports to a

And i am writing a query to find out reporting structure. Now what is the best way to identify this cyclic deadlock.

Thanks

Ritesh PAreek
10 years ago
@Doug,

Thanks, you made it clear like anything.
10 years ago
Finally if we conclude... using sleep is a abd idea because:

1. Sleep will not release allocated resources for that thread.
2. Can cause a deadlock.


any more??
10 years ago
Can you elaborate more about OS, installation package.

http://tomcat.apache.org/tomcat-5.5-doc/setup.html
10 years ago