This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes how to send a message to login page  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to send a message to login page  ?" Watch "how to send a message to login page  ?" New topic

how to send a message to login page ?

harish pathak
Ranch Hand

Joined: Dec 17, 2005
Posts: 51
Hi all,

Anybody please tell me how to send a message to login page
that "Your Session is invalide".

I have defined the following parameter in struts-config.xml file.

<forward name="invalidsession"
path="/intro.jsp" redirect="true" />

And I want to give message to my intro.jsp page

Thanking you.

Please reply soon.
Stefaan Huysentruyt

Joined: Dec 16, 2005
Posts: 3

You put an actionmessage on the request scope and forward it to your login page using a specific key, and without a redirect.
Then if your page sees there exists a message with that specific key, you show it.
[ December 17, 2005: Message edited by: Stefaan Huysentruyt ]

-- "Be liberal in what you accept, and conservative in what you send."
-- Jon Postel (August 6, 1943 - October 16, 1998) Internet Pioneer
I agree. Here's the link:
subject: how to send a message to login page ?
Similar Threads
By passing forward in action tag.
Struts 1.1 using RAD7
forward action
logic:redirect not working for me
Struts Exception