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]



Reply via email to