You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pe...@fms.treas.gov on 2002/10/02 18:07:48 UTC

Struts Multile Submit Buttons as tab images problem

We have created tab images to go from page-to-page in a multiple page input
form.  These images do the following:
      <input name="info page" type="image" value="info page" src
="infobutton.gif" alt="information">
      <input name="address page" type="image" value="address page" src
="addressbutton.gif" alt="information">

What we really want to execute is:
       <td><html:submit>info</html:submit></td>       which translates to
<td><input type="submit" name="submit" value="info"></td>
      <td><html:submit>address</html:submit></td>     which translates to
<td><input type="submit" name="submit" value="address"></td>

This works great, but then we don't show the image tab as a button.  When
you use images, the value parameter is null.  Does anyone know how to do
submit html:submit actions, but displaying a button image?

  Thanks, Pete Gabriel




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


Re: Struts Submit Button as tab image problem

Posted by Eddie Bush <ek...@swbell.net>.
You're not looking for <html:image/> are you?

Pete.Gabriel@fms.treas.gov wrote:

>We have created tab images to go from page-to-page in a multiple page input
>form.  These images do the following:
>      <input name="info page" type="image" value="info page" src
>="infobutton.gif" alt="information">
>      <input name="address page" type="image" value="address page" src
>="addressbutton.gif" alt="information">
>
>What we really want to execute is:
>       <td><html:submit>info</html:submit></td>       which translates to
><td><input type="submit" name="submit" value="info"></td>
>      <td><html:submit>address</html:submit></td>     which translates to
><td><input type="submit" name="submit" value="address"></td>
>
>This works great, but then we don't show the image tab as a button.  Does
>anyone know how to do submit html:submit actions, but displaying a button
>image?
>
>  Thanks, Pete Gabriel
>

-- 
Eddie Bush




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