struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miriam Aguirre <Miriam.Agui...@ssa.co.santa-clara.ca.us>
Subject RE: How do I pass value
Date Tue, 16 Jul 2002 18:10:02 GMT

 I'm sure there's many ways to do it, my (lazy) way of doing is to simply
append the parameter to forward name, such as:

 return new ActionForward(actionMapping.findForward(Success).getPath()
+"?parameterName="+ someName;

-----Original Message-----
From: Radhakrishnan R [mailto:rk@bizmaticsinc.com]
Sent: Monday, July 15, 2002 9:01 PM
To: struts-user@jakarta.apache.org
Subject: 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:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message