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

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
 
Normally trees don't drive trucks. Does this tiny ad have a license?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic