Roshan Ramesh

Greenhorn
+ Follow
since Jul 12, 2010
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 Roshan Ramesh

Bit tricky. But still, it should not take much time to resolve.

Assuming that you came here for advise on the possible delimeters, let me know if the below code did helped you.

10 years ago
Multi-core processors typically contain atleast 2 or more independent processing units integrated in a single chip.

On the otherhand, Many-core processors contain large number of such independent processing units.
10 years ago
Back on Ranch after a break

I strongly agree with the points mentioned by Frank on having an alternate sources of Energy. Be it through wind, bio degraded fuels, nuclear etc.., Every country should be provided enough funds for building one such by UN.

The more we are dependant on these fossil fuels, we will be witnessing the financial ups and downs in a very frequent manner.



10 years ago
Does the below line of code too fails in your application...?
onclick="javascript:window.close();"
The button used to close the window is associated with an event called "onclick" which can be added as an attribute to the button declaration.
All you need to do is to call the "window.close()" DOM method in the value of this attribute.
Hence, you need something like this onclick="window.close()"

Is this is all what you wanted...?
I believe that a proper mapping of Java resource in the web.xml should resolve your issue.

Few days before there was another discussion thread on somewhat a similar issue. Just have a look at this:

https://coderanch.com/t/505924/Servlets/java/Status
11 years ago
Ensure that you have proper mapping information for "coreservlets.ShowBalance" in WEB-INF/web.xml.

Without this, you tend to get that 4xx class of errors.
11 years ago
Hi Steve

It seems like you are trying to write a program that needs to be notified when the Session Expires or is Invalidated.

Apart from Filters, there are ServletListeners too that could resolve your problem. (hopefully)

Try implementing a javax.servlet.http.HttpSessionListener & declare the same in your deployment descriptor. You need to provide implementation for 2 of its mandatory methods sessionCreated() & sessionDestroyed(). For your requirement, The sessionDestroyed() is passed a HttpSessionEvent Object by the container. You can retrieve the session related stuffs (seriously) from this object.

Any good HttpServlet material will give you an example implementation of HttpSessionListener. Just follow it & do whatever you want in those 2 methods.

Have a Good Time Ahead
11 years ago