On 10/30/2004 02:14 PM Håkan Fransson wrote:
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.
What is the drawback of using plain text inside your link for solution 1?
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]