• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

problem log out

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic