That depends on what you mean by call.

The general model is to invoke an Action class *before* displaying a server page. The Action puts resources in the request scope for the page to use. The page then displays the ready-made resources (e.g. JavaBeans) without knowing from whence they came. All the page knows is that the resources has a particular name and is available in one of the scopes.

If you mean link to an action URI, then sure. To the server pages, the Struts actions (this.do, that.do), look like any other context-relative URI. As mentioned, you can use the <html:link action="myAction"> tag to do this sort of thing.

The thing to keep in mind is that a Struts web application is first and foremost a web application. Struts exposes everything through standard URIs or through the servlet scopes, as do all Java web applications.

HTH, Ted.

Gurpreet Dhanoa wrote:
HI is there any way to call a action within an JSP file without using Submit button and any other html:form element


I want to call a action with in a logic:iterate which is further containing one more logic:iterate




--
Ted Husted,
  Junit in Action  - <http://www.manning.com/massol/>,
  Struts in Action - <http://husted.com/struts/book.html>,
  JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to