aspose file tools*
The moose likes Servlets and the fly likes WEB-INF/web.xml-help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "WEB-INF/web.xml-help" Watch "WEB-INF/web.xml-help" New topic
Author

WEB-INF/web.xml-help

dinesh kannan
Greenhorn

Joined: Aug 05, 2008
Posts: 2
Hi all,
In my application, the session should expire after one hour so i had configure my web.xml with

<session-config>
<session-timeout>
60
</session-timeout>
</session-config>
it gets redirected to login page after an hour.

the problem is after an hour when i try to login again i got the error

"Dispatch error -Resource not found" .

Please help me
thanks in advance
Dinesh
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Dinesh,
Welcome to JavaRanch! I'm not clear on what this has to do with Ant/Maven so I'm moving the thread to our Servlets forum.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

As your redirection code is not posted, its difficult to say anything.
Just make sure that there are no ResourceUrlProblems.
And please UseAMeaningfulSubjectLine.So that it is more descriptive.

Also take some time to read the ask good questions link below.


Hope this helps
[ August 06, 2008: Message edited by: Amit Ghorpade ]

SCJP, SCWCD.
|Asking Good Questions|
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

You said that after an hour the user get's redirected to the login page. How did you do that. Do you check for user login(through session) on every page and redirect them if they are not logged in or did you do something else?

Please tell so that the I can help you more..


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WEB-INF/web.xml-help