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 display invalid message on the same jsp 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 display invalid message on the same jsp page" Watch "how to display invalid message on the same jsp page" New topic
Author

how to display invalid message on the same jsp page

yogesh totare
Greenhorn

Joined: Feb 02, 2005
Posts: 15
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

Joined: Dec 08, 2004
Posts: 111

http://javaboutique.internet.com/tutorials/excep_struts/

Hope this tutorial will be helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to display invalid message on the same jsp page
 
Similar Threads
Security Constraint problem
Struts Cancel Button submits the form
Struts and JDBC/realm
Using ActionMapping to open a https page
newbie problem - populating Action form