This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Naveen puttu

Ranch Hand
+ Follow
since Sep 15, 2009
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 Naveen puttu

Im trying to use PropertyPlaceholderConfigurer and replace a few enteries in my xml file . This XML file loaded using org.springframework.web.servlet.DispatcherServlet.This doesnt work for me . Anything that i might have missed



here is the properties file entry


It just picks queue from queue/partnerOrderNotification

Please help me out . This is killing me

Cheers
naveen
10 years ago
This doesnt work for me . Anything that i might have missed



here is the properties file entry


It just picks queue from queue/partnerOrderNotification

Please help me out . This is killing me

Cheers
naveen
10 years ago

Rahul Ba wrote:
Yes, Naveen I did the same thing, but again the same thing. It did not work. It's like browser keeps the page in session and that is shown to us.
Please let me know your opinion.

Rahul




Can you post your code in here . And BTW you may want to invalidate the session . That Should help and add a check for invalidated session and see what you want to do about it (Just a work around if you approaching deadlines).

post your code in here anywayz
10 years ago
Hi



The above line returns the filepath as

It should ideally be

Why is that extra dot coming in the path

Cheers
Naveen
10 years ago

Rahul Ba wrote:
I am forwarding to log out page by using following line

<a class="topNav" href="<%=request.getContextPath()%>/logout.html">Logout

Already, I do have following code in all jsp. but still when do browser back it shows me cached page.

response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "must-revalidate");


Thanks once again

Rahul



Why dont you try using this



The forward method of RequestDispatcher will forward the ServletRequest and ServletResponse that it is passed to the path that was specified in getRequestDispatcher(String path). The response will not be sent back to the client and so the client will not know about this change of resource on the server. This method is useful for communicating between server resources, (servlet to servlet). Because the request and response are forwarded to another resource all request parameters are maintained and available for use. Since the client does not know about this forward on the server, no history of it will be stored on the client, so using the back and forward buttons will not work.
10 years ago

parampreet sethi wrote:You can try putting return after each forward and response.sendredirect method calls.

The forward and sendredirect method calls does not mean that the rest of the code will be ignored. Yesterday I was having the same issue and putting return after each sendRedirect and forward fixed this issue.

Hope it helps.



I tried that , as explained earlier . It works fine until the session times out . After that we are back to square one
10 years ago
How are you forwarding the control to logout.jsp
10 years ago
Did that , still NO GO
10 years ago
Here is the stack trace



By the way the control goes in this flow only at the moment



To add to the misery . The filter works perfectly fine once the server is restarted , but then throws this exception after a while (lets say when session times out )

I dont know whatz happening

Cheers
Naveen
10 years ago
Hi,

Below is a servlet filter code



I get IllegalStateException if try to redirect or use RequestDispatcher . It says "Cannot forward after response is committed"

Please help

Cheers
Naveen
10 years ago
use colspan and its value should be equal to the number of columns you may would want to skip
Hello Everybody

I am using jquery ajax to fetch some data from the server . But then i experience some strange unexpected behavior

I have my session timeout set @ 5 minutes . So if a user tries to refresh the page or click on the existing link to fetch the data from the server then the app should be redirected to the login page (implementation specific)

What is happening now is very strange , browser is caching the call , data and returning back the data ever after the session is timed out . So i thought entry in ajax call might solve the issue , but then it doesnt help me as well

Even though the timestamp is appended to the url when cache is set to false , why is the call not reaching the server

How do i make sure that any ajax call hits the server after the session is timed out

Any inputs would be helpful

Cheers
n4v33n
Guys ,

Atleast let me know if this is the limitation of JQuery
Can you please paste your code . It easy that ways