Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display invalid message on the same jsp page

 
yogesh totare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am doing a simple authentication application , now i want to display the invalidate username and password message on login page if login authentication failed after submiting the login page. what i have to do for that?

what i tried is
1> i have my struts-config files action tag as

<action input="/pages/Login.jsp" name="LoginForm" path="/greeting" scope="request" type="com.bolt.actions.LoginAction" validate="true">
<forward name="sayhello" path="/pages/output.jsp" redirect="true"/>
<forward name="sayerror" path="/pages/error.jsp" redirect="true"/>
</action>

what are the next steps to solve above problem?

if there is any way with the help of <logic resent > tag , plz explain me?


thanx in advance,

regrads,

yogesh...
 
sanat
Ranch Hand
Posts: 111
Eclipse IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://javaboutique.internet.com/tutorials/excep_struts/

Hope this tutorial will be helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic