Re: [S2] struts tags
Using JSTL: s:submit type=button cssClass=submit s:param name=value fmt:message key=category.edit.cancelButton/ /s:param /s:submit Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - 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: [S2] struts tags
Thanks, Pablo. Does anyone know if there are any plans to create a new attribute on these taglibs in the future where one can just feed in the property key? The advantages of lean JSPs are manifold, the main advantage in this case being the most important, that it would seperate logic (internationalisation) from presentation (even more than it is already). Best regards Adam Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: s:submit type=button cssClass=submit s:param name=value fmt:message key=category.edit.cancelButton/ /s:param /s:submit Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FRIDAY... -ish] Re: [S2] struts tags
--- Adam Hardy wrote: The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] struts tags
By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: s:submit type=button cssClass=submit s:param name=value fmt:message key=category.edit.cancelButton/ /s:param /s:submit Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - 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]
Re: [FRIDAY... -ish] Re: [S2] struts tags
Dave Newton on 10/09/07 13:34, wrote: --- Adam Hardy wrote: The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. My humour was not in action when I wrote that. What did you think? A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] struts tags
I have visited so many pages about Struts 2 I can´t remember where I found that. Sorry. Adam Hardy escribió: By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: s:submit type=button cssClass=submit s:param name=value fmt:message key=category.edit.cancelButton/ /s:param /s:submit Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - 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]
Re: [S2] struts tags
s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - 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: [S2] struts tags
Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: s:submit theme=simple value=%{getText('category.edit.cancelButton')}/ Zarar On 9/6/07, Adam Hardy [EMAIL PROTECTED] wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] struts tags
I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: s:submit key=category.edit.cancelButton / and I tried this: s:submit fmt:message key=category.edit.cancelButton/ /s:submit I know I could do this: fmt:message var=label key=category.edit.cancelButton / s:submit key=${label} / but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme= but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme=simple Maybe a line in the taglib docs would make it more obvious? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2 : Struts tags and scriptlets
Hi, How do we make variables set by struts tags available to scriptlets? . In Struts 1 , we could set an object using bean:define and access it within a scriptlet ? ; what's the equivalent for S2 ? In the app i'm converting to S2, there's a lot of scriptlet code and we are trying to retain that and just supply the data from Action using S2 tags Thanks, Joseph
RE: S2 : Struts tags and scriptlets
The best thing to do would be to get rid of the scriptlets. Barring that, though, you could use the Struts 2 set tag to set a request attribute, then in the scriptlet do something like this: % String myVar = request.getAttribute(myVar); % There's probably a faster way by accessing the ValueStack directly, but off the top of my head I don't know how to do that. ___ Adam Crume Computer Information Technologist II Central Technology Services (573) 634-5600 ext. 1693 -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 2:04 PM To: Struts Users Mailing List Subject: S2 : Struts tags and scriptlets Hi, How do we make variables set by struts tags available to scriptlets? . In Struts 1 , we could set an object using bean:define and access it within a scriptlet ? ; what's the equivalent for S2 ? In the app i'm converting to S2, there's a lot of scriptlet code and we are trying to retain that and just supply the data from Action using S2 tags Thanks, Joseph ** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 : Struts tags and scriptlets
Yeah, i was also looking how to get it from valuestack ; Getting rid of scriptlets may be too much work, but i will definitely consider that. On 8/24/07, Crume, Adam [EMAIL PROTECTED] wrote: The best thing to do would be to get rid of the scriptlets. Barring that, though, you could use the Struts 2 set tag to set a request attribute, then in the scriptlet do something like this: % String myVar = request.getAttribute(myVar); % There's probably a faster way by accessing the ValueStack directly, but off the top of my head I don't know how to do that. ___ Adam Crume Computer Information Technologist II Central Technology Services (573) 634-5600 ext. 1693 -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 2:04 PM To: Struts Users Mailing List Subject: S2 : Struts tags and scriptlets Hi, How do we make variables set by struts tags available to scriptlets? . In Struts 1 , we could set an object using bean:define and access it within a scriptlet ? ; what's the equivalent for S2 ? In the app i'm converting to S2, there's a lot of scriptlet code and we are trying to retain that and just supply the data from Action using S2 tags Thanks, Joseph ** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]