Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem log out

 
Nesrin aboud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic