Results 1 to 2 of 2

Thread: Action Messages

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    1

    Action Messages

    How do you display error messages in struts?

    For eg. On click submit button, if the user has not entered username, it must display an error message as "Username is required" on the page itself. Please help me how to do it without using javascript and how can we do this by using struts.


  2. #2
    Banned
    Join Date
    Jan 2008
    Answers
    25

    Re: Action Messages

    Hi,
    in struts <html:errors> tag is there in struts-html.tld file.
    in the <html:form> tag you have to include this tag before the fields username. But to use this tag you have to copy struts-html.tld and configure it in web.xml.


    Regards,
    --suresh--


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact