This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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]
 
Consider Paul's rocket mass heater.
 
subject: problem log out
 
Similar Threads
Problem with logic:present tag
Verification failed on Username existence check using AJAX
web portal in struts and nothing is working at all
Problem with logic:present
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope