File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

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.

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

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

Thanking you.

Please reply soon.
Stefaan Huysentruyt
Greenhorn

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
-- http://www.postel.org/postel.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to send a message to login page ?