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]
SV: SV: ActionMapping without a formbean
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]
Re: SV: SV: ActionMapping without a formbean
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]
ActionMapping without a formbean
Hi! I know that this is and old issue but i'm not satisfied with solutions. We have used links with images to go to actions without forms and it works fine. Now we got demands that we must use html buttons on pages for accessability. I've seen two workarounds, use a dummy form or regular html form tag. But it's not so nice with dummy forms and an absolut path to the action on the jsp page. Is there any other solution i can use and why doesn't html:form tag support mappings without formbeans. * Håkan Fransson System developer Ladok, Umea University SE-901 87 Umea, Sweden Phone: +46 (0)90 786 6938 Email: [EMAIL PROTECTED] * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionMapping without a formbean
I am not a big struts giant :) But let me give my suggestions on ur doubt In the case of links we are just invoking a java (acion) file . If we need to send some value through links to action file we need to send as parameter from our link. HTML:FORM tag is mainly meant for passing form values from a jsp,vm page to the action. I think, If you can send parameters from ur form tag, we can do this without form bean. Please try it out :) - Original Message - From: Håkan Fransson [EMAIL PROTECTED] To: Struts User Llist (E-mail) [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:46 PM Subject: ActionMapping without a formbean Hi! I know that this is and old issue but i'm not satisfied with solutions. We have used links with images to go to actions without forms and it works fine. Now we got demands that we must use html buttons on pages for accessability. I've seen two workarounds, use a dummy form or regular html form tag. But it's not so nice with dummy forms and an absolut path to the action on the jsp page. Is there any other solution i can use and why doesn't html:form tag support mappings without formbeans. * Håkan Fransson System developer Ladok, Umea University SE-901 87 Umea, Sweden Phone: +46 (0)90 786 6938 Email: [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]
Re: ActionMapping without a formbean
Not sure I've i've understood or not but wouldn't a jsp:useBean id=nav scope=request class=com.domain.package.NavBean / work? Perhaps even use one of thise LazyDyanBeans i keep hearing about in the beanutils package. Perhaps I've missunderstood the problem. Mark On Wed, 27 Oct 2004 15:22:54 +0530, Jay Chandran [EMAIL PROTECTED] wrote: I am not a big struts giant :) But let me give my suggestions on ur doubt In the case of links we are just invoking a java (acion) file . If we need to send some value through links to action file we need to send as parameter from our link. HTML:FORM tag is mainly meant for passing form values from a jsp,vm page to the action. I think, If you can send parameters from ur form tag, we can do this without form bean. Please try it out :) - Original Message - From: Håkan Fransson [EMAIL PROTECTED] To: Struts User Llist (E-mail) [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:46 PM Subject: ActionMapping without a formbean Hi! I know that this is and old issue but i'm not satisfied with solutions. We have used links with images to go to actions without forms and it works fine. Now we got demands that we must use html buttons on pages for accessability. I've seen two workarounds, use a dummy form or regular html form tag. But it's not so nice with dummy forms and an absolut path to the action on the jsp page. Is there any other solution i can use and why doesn't html:form tag support mappings without formbeans. * Håkan Fransson System developer Ladok, Umea University SE-901 87 Umea, Sweden Phone: +46 (0)90 786 6938 Email: [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: ActionMapping without a formbean
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. -Ursprungligt meddelande- Från: Mark Lowe [mailto:[EMAIL PROTECTED] Skickat: den 27 oktober 2004 13:56 Till: Struts Users Mailing List; Jay Chandran Ämne: Re: ActionMapping without a formbean Not sure I've i've understood or not but wouldn't a jsp:useBean id=nav scope=request class=com.domain.package.NavBean / work? Perhaps even use one of thise LazyDyanBeans i keep hearing about in the beanutils package. Perhaps I've missunderstood the problem. Mark On Wed, 27 Oct 2004 15:22:54 +0530, Jay Chandran [EMAIL PROTECTED] wrote: I am not a big struts giant :) But let me give my suggestions on ur doubt In the case of links we are just invoking a java (acion) file . If we need to send some value through links to action file we need to send as parameter from our link. HTML:FORM tag is mainly meant for passing form values from a jsp,vm page to the action. I think, If you can send parameters from ur form tag, we can do this without form bean. Please try it out :) - Original Message - From: Håkan Fransson [EMAIL PROTECTED] To: Struts User Llist (E-mail) [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:46 PM Subject: ActionMapping without a formbean Hi! I know that this is and old issue but i'm not satisfied with solutions. We have used links with images to go to actions without forms and it works fine. Now we got demands that we must use html buttons on pages for accessability. I've seen two workarounds, use a dummy form or regular html form tag. But it's not so nice with dummy forms and an absolut path to the action on the jsp page. Is there any other solution i can use and why doesn't html:form tag support mappings without formbeans. * Håkan Fransson System developer Ladok, Umea University SE-901 87 Umea, Sweden Phone: +46 (0)90 786 6938 Email: [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] - 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]