File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to send a message to login page ?

 
harish pathak
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic