You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Radhakrishnan R <rk...@bizmaticsinc.com> on 2002/07/16 06:00:34 UTC

How do I pass value

I am new to struts and currently trying to test the following scenario.

After submitting a form, a image has to be displayed to the user. The image
is dynamically generated.The image file name is generated by the business
tier.As a part of the submission process, I have an action bean , action and
business logic class. I also have a forward for success.

  <action
    path="/image"
    type="com.test.action.imageFormAction"
    scope="request"
    name="imageForm"
    validate="true"
    input="/image.jsp">
    <forward name="Success" path="/showimage.jsp"/>
  </action>

<form-bean name="imageForm" type="com.test.form.imageForm"/>



In other words after the image.jsp is processed, I want to invoke the
showimage.jsp. This jsp file displays the image using <img src>.

The problem I have is how do I pass the filename generated by the
business(model) tier
to showimage.jsp.

Any help will be appreciated.

Thanks in advance


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>