This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem in Struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in Struts 1" Watch "Problem in Struts 1" New topic

Problem in Struts 1

Soren Christensen

Joined: Mar 11, 2010
Posts: 1

Is it possible to call a struts action from within a tag - meaning that the generated html from action is available to the tag.

In pseudo:

.. Do some work in the tag ...

... Call a action ..
... Action finished ...
... Assing generated output to a String variable ...

... Add value of String to the output from the tag ...

I've read that you can do this in Struts2 by using HttpServletResponseAware - but unfortunately we cannot upgrade right now, and as a result I'm seeking an alternative within Struts 1.

Thanks in advance.

I agree. Here's the link:
subject: Problem in Struts 1
Similar Threads
Struts 2: Using 2 actions in one JSP
can we able to create struts html tags dynamically from javascript?
action chaining
Problem Dealing with Struts DispatchAction
Cannot retrieve mapping for action