• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

ActionError issue

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Seems a common problom,Read a lot of articles on it.But could'nt find an answer.

I am using this code in execute(...) method,



Then i use <html:errors/> in JSP.

But the error messages does'nt come in my JSP page.But if i use this code instead,i get the error messages in JSP page.



If i add

The code works fine.I am getting error messages in my JSP page.I dont understand the behavior.

Anybody knows why?.

Thanks
DC
[ April 12, 2005: Message edited by: David Cox ]
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting. The only hunch I have is that maybe the XXXX forward is setup to issue a redirect to the browser. (Then, the ActionErrors which were stored in the request would be lost by the time it gets to the correct JSP). So, did you set redirect="true"?

Other than that, I have no idea.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nate explained my thoughts exactly.
 
David Cox
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nathaniel Stoddard:
Interesting. The only hunch I have is that maybe the XXXX forward is setup to issue a redirect to the browser. (Then, the ActionErrors which were stored in the request would be lost by the time it gets to the correct JSP). So, did you set redirect="true"?

Other than that, I have no idea.



Fantastic!!. I never bothered about redirect issue.

Thanks.
DC
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic