• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to access Errors in Action class .....

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am developing My web app using Struts1.1 . Now I have A login page (embedding Login form bean) with corresponding action class(LoginAction.java). Now currently when user enters correct Username & password he is getting transferred to his account page successfully. But I want to add one more thing in above login action class:-
When user enters wrong login info , the error Object should be created into action class & it should be but into ActionErrors. & then user should get forwarded to original login page with appropriate error messages in front of Login & Passowrd textboxes on Login page.
Hope u understand my problem.
How should I do that?
Pls help me.
Thanx
pras
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be able to find the answer to this question by reading the section entitled "Displaying Error Message" in this link.

This link also has some good information on using messages in Struts.
 
Always look on the bright side of life. At least this ad is really tiny:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic