wood burning stoves 2.0*
The moose likes Struts and the fly likes problem log out 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 » Frameworks » Struts
Bookmark "problem log out" Watch "problem log out" New topic
Author

problem log out

Nesrin aboud
Ranch Hand

Joined: Feb 08, 2010
Posts: 48
I have a problem on logging out in struts

when I click exit link on mailbox.jsp from any jsp, it forward me to index.jsp but does not pass
into the LoginAction, I am sure because when I debug I found that debugging does not enter the action class at all
and the session is not closed

I tried to remove the input attribute in struts-config.xml
but this returned error--> that I should add the input attribute

so is there is a solution for this problem , I think the problem is in the input Attribute
when I click "LoginAction.do?signout=1" , this goes first to the input page without entering the action

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Nesrin aboud wrote:
so is there is a solution for this problem , I think the problem is in the input Attribute
when I click "LoginAction.do?signout=1" , this goes first to the input page without entering the action

"input"attribute has nothing to do with this. Here is the quote for the "input" attribute from Struts DTD.

input
Module-relative path of the action or other resource to
which control should be returned if a validation error is
encountered. Valid only when "name" is specified. Required
if "name" is specified and the input bean returns
validation errors. Optional if "name" is specified and the
input bean does not return validation errors.


I am sure because when I debug I found that debugging does not enter the action class at all and the session is not closed

OR you called it using wrong URL.

Finally, I didn't get your question completely.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem log out