Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 1.2 ActionForward question  RSS feed

 
taras khoma
Greenhorn
Posts: 9
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

I have SomeAction class where I'm implementing

method. This method returns ActionForward so in the end of it I need to write something like this:


I want to invoke this action through Ajax and return forward to some json or xml with success or failure message. Than I want to show failure in alert or ExtJs dialog window.

Can I do it at all? Can you suggest me some things how to implement this.

Thanks a lot for help
Best regards
 
Joe Ess
Bartender
Posts: 9414
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch. Please check your private messages for an important administrative matter.
Struts can return AJAX results. See this article for some examples.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!