Yes, it's one solution to write forms in html but then you have a hardcoded path in the jsp-page. I dont want to have this. I need html buttons instead of images and links because they are resizeable. In your browser e.g Mozilla Firefox press "View -> Text Size -> Increase". Then images dont increase but html buttons increase. Hope you understand me now.
Example 1: This is how we had done it. To an action without a form, it works but the link with image is not resizeable. In this case the image has a text(you can think of it as a button). <html:link action="toChangeComSettings" titleKey="general.text.change"> <img src="/aw/img/andra.gif" width="70" height="14" border="0" align="right"> </html:link> Example 2: This does the same as 1 and now it meet our demand of accessability when text on button is resizeable. This solution has the drawback that you have to declare a dummy form in struts-config. <html:form action="toChangeComSettings"> <html:submit styleClass="submit" property="submit"> <bean:message key="general.nya.button.value.change" /> </html:submit> </html:form> Example 3: This also do the same thing that 1 and also meet our demands but this solution has the drawback of having an absolute path in the jsp. <form action="/aw/toChangeComSettings.do"> <html:submit styleClass="submit" property="submit"> <bean:message key="general.nya.button.value.change" /> </html:submit> </form> My original question was, is there any other solution? I think it would be nice if you could use the form tag without declaring a dummy form. -----Ursprungligt meddelande----- Från: Adam Hardy [mailto:[EMAIL PROTECTED] Skickat: den 30 oktober 2004 13:31 Till: Struts Users Mailing List Ämne: Re: SV: ActionMapping without a formbean Hakan, perhaps you should just write the form in HTML and not use the form taglib. I still don't understand what you are doing though. If you have to use text instead of an image in a link, why do you need a button? In forms to submit with images, I use the input type=image. Is that what you mean? If you really need to use the html:form taglib, you could always just define a very elementary dynaform in your struts-config, in which case you won't need to program anything. On 10/27/2004 03:04 PM Håkan Fransson wrote: > Maybe it was a bad explanation of my problem. In our project we have > demands on accessability that affect what components we are using. In > current implementation we have link tags(with images nested) for > submitting forms, for links and so on. This works fine but if a user > has to increase text in their browser, images doesn't increase. In > other words, a user with bad vision, increase text in it's browser > but cannot see text on our images that we are using for submit. So we > have to use form controls such as <input type="submit"> to render a > button because they increase when user increases their text in > browser. The problem arise when we want to use this type of button, > for example, to go to a jsp-page through a ForwardAction with no form > needed. This control has to be nested in a form tag but in the > example above, we dont need any form. > --------------------------------------------------------------------- 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]