This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action errors

 
Sri Anand
Ranch Hand
Posts: 392
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic