• Post Reply Bookmark Topic Watch Topic
  • New Topic

Action errors

 
Sri Anand
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing some actions in struts, when i am checking some dates and they are not in proper date format i am creating a action errors and basically trying to send to same JSP page for that i am using the line of code below but surprisingly the mapping is returning input type as null, any thoughts what could be wrong

retval = new ActionForward(mapping.getInput());
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is there any specific reason for you not using the "input" element of the action mappings configuration ?
I mean that way it would be easy for you to work out this scenario.
Regards,
Amit
 
Sri Anand
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply , yes after i decleared input as part of action in struts config the problem got resolved
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!