File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
forward action
Struts 1.1 using RAD7
By passing forward in action tag.
logic:redirect not working for me
Struts Exception