Thanks Niall. I realized, too, that the best solution was to have the rendering of the <crackwillow:image> tag put in the needed parameters for the image upload. Michael

At 05:32 AM 7/2/2004, you wrote:
Yes because you are not posting the form when the browser renders the image
button.

The only thing the action you are using to render the image will have access
to are the parameters included in the url. So for example

  <crackwillow:image property="button.reset"
    src="resource.do?file_type=gif&file_name=RESET.gif"/>

the resource.do action will have access to the file_type and file_name
parameters only - not the rest of the stuff on your form.

Niall

----- Original Message -----
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 29, 2004 10:33 AM
Subject: 2 Actions + 1 Form + 1 Submit


> I have some code where an action is called in an <html:form> and in an > <html:image> as a value for the src attribute of the <html:image> > tag. Also, I have extended the ImageTag class or <html:image> to mine some > other values regarding the image, color, font, etc., because I intend to > use the action which is the value of the src attribute to build the button > on the fly to match whatever the name of the Button is, e.g. > "Submit.gif". My only question is: > > Is there any reason why the action which gets the image as the value of the > src attribute cannot access the values of the form needed to build the > button if it does not already exist? > > Thanks! The code will look something like the following: > > &lt;%@ page language='java' %&gt; > > &lt;%@ page contentType='text/html; charset=UTF-8' %&gt; > &lt;%@ taglib uri='struts-html' prefix='html' %&gt; > &lt;%@ taglib uri='crackwillow' prefix='crackwillow' %&gt; > > &lt;html:html locale='true'&gt; > &lt;head&gt; > &lt;/head&gt; > &lt;body bgcolor='red'&gt; > &lt;html:form > name="buttonForm" > type="com.crackwillow.struts.form.CrackWillowButtonForm" > method="get" > action='/logOnWebmaster.do'&gt; > > &lt;input type="text" name="firstName" value=""&gt;FIRST NAME&lt;BR&gt; > &lt;input type="text" name="lastName" value=""&gt;LASTNAME&lt;BR&gt; > &lt;input type="text" name="email" value=""&gt;EMAIL&lt;BR&gt; > > &lt;crackwillow:image property="button.reset" > src="resource.do?file_type=gif&file_name=RESET.gif"/&gt;&lt;BR&gt; > &lt;crackwillow:image property="button.submit" > src="resource.do?file_type=gif&file_name=SUBMIT.gif"/&gt;&lt;BR&gt; > &lt;crackwillow:image property="button.clear" > src="resource.do?file_type=gif&file_name=CLEAR.gif"/&gt;&lt;BR&gt; > &lt;crackwillow:image property="button.cancel" > src="resource.do?file_type=gif&file_name=CANCEL.gif"/&gt;&lt;BR&gt; > > &lt;/html:form&gt; > > > &lt;/html:html&gt; > > > > So, I want the resource.do action class to mine the buttonFrom action form. > One thing is for sure, the logON.do action must precede the resource.do > action, because it creates the text the browser uses to call the second > action. Seems like it should work fine to me. It involves enough work that > I thought I would run it by you chiefs and indians first. Thanks for any > pointers. Michael > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >



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



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



Reply via email to