RE: Need documentation or code example for custom tag in Struts 2.3.24

2015-07-06 Thread Lynn Li
Struts 2.3.24 has many changes in URL tag related classes and a new class ComponentUrlProvider. I refactored my code. But it is fully working. Does anyone have documentation or code example for custom tag in Struts 2.3.24? Thanks, Lynn -Original Message- From: Lukasz Lenart

Re: Need documentation or code example for custom tag in Struts 2.3.24

2015-06-30 Thread Lukasz Lenart
2015-06-30 3:50 GMT+02:00 Lynn Li lynn...@gm.com: I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL tag. I need help on refactoring custom URL tag code. Does anyone have documentation or code example for custom tag in Struts 2.3.24? Thank you in advance

Need documentation or code example for custom tag in Struts 2.3.24

2015-06-29 Thread Lynn Li
I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL tag. I need help on refactoring custom URL tag code. Does anyone have documentation or code example for custom tag in Struts 2.3.24? Thank you in advance! Nothing in this message is intended to constitute

Re: S2 - custom tag with Spring

2013-12-05 Thread Lukasz Lenart
2013/12/4 Steven Yang kenshin...@gmail.com: I think I missed something. To be clear what I meant by tag as jsp tag with tld defined. Yes my resource beans are defined in Spring, using XML actually. However my tag classes are not. From what I understand, the life cycle of tag is controlled

Re: S2 - custom tag with Spring

2013-12-05 Thread Steven Yang
thanks I will try that On Thu, Dec 5, 2013 at 4:29 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/12/4 Steven Yang kenshin...@gmail.com: I think I missed something. To be clear what I meant by tag as jsp tag with tld defined. Yes my resource beans are defined in Spring, using XML

Re: S2 - custom tag with Spring

2013-12-04 Thread Miguel Almeida
If you @Autowire something into your class you're essentially doing the same as retrieving the resources from ApplicationContext. Once you define your class as a Spring bean in Spring's configuration (either by explicitly defining it in an XML or because it's in a classpath which you've told

Re: S2 - custom tag with Spring

2013-12-04 Thread Steven Yang
I think I missed something. To be clear what I meant by tag as jsp tag with tld defined. Yes my resource beans are defined in Spring, using XML actually. However my tag classes are not. From what I understand, the life cycle of tag is controlled by the web container therefore not defined in

S2 - custom tag with Spring

2013-12-03 Thread Steven Yang
Hi I am writing some custom tags. I want to access some resource from Spring. Is there a clean way of doing it, instead of getting the ApplicationContext in the Components? Will @Inject work for non-Struts values? Or @Autowire will work as well? I am using the spring plugin. Thanks

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2012-09-11 Thread Lukasz Lenart
2012/9/11 G.Subramanian g...@7stl.com: Hi, i'hv created a custom tag in Strtus 2. where, from action iam passing a arrayList object in the value attribute when custom tag java is calling. please tell me how to take that arrayList object in my custom tag java file. give me some exmple code

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2012-09-10 Thread G.Subramanian
Hi, i'hv created a custom tag in Strtus 2. where, from action iam passing a arrayList object in the value attribute when custom tag java is calling. please tell me how to take that arrayList object in my custom tag java file. give me some exmple code. Best Regards, Subramanian.G

Re: How can I write a custom tag?

2011-12-30 Thread Alex Choi
to help you. Hope this helps. On Dec 29, 2011 11:15 PM, 王科选 rabbit...@gmail.com wrote: On 12/30/2011 3:04 PM, 怪侠 wrote: Because the common tag are not enough for my application, I want to make some custom tag, likes:myownaction /. Could anyone tell me the step? Or give me a link? I think

Re: How can I write a custom tag?

2011-12-30 Thread Jeffrey Black
some custom tag, likes:myownaction /. Could anyone tell me the step? Or give me a link? I think you can define custom tag in jsp , search with google and you will find a lot result. --**--**- To unsubscribe, e-mail: user

Re: How can I write a custom tag?

2011-12-30 Thread Jeffrey Black
, I want to make some custom tag, likes:myownaction /. Could anyone tell me the step? Or give me a link? I think you can define custom tag in jsp , search with google and you will find a lot result

How can I write a custom tag?

2011-12-29 Thread 怪侠
Because the common tag are not enough for my application, I want to make some custom tag, like s:myownaction /. Could anyone tell me the step? Or give me a link?

Re: How can I write a custom tag?

2011-12-29 Thread 王科选
On 12/30/2011 3:04 PM, 怪侠 wrote: Because the common tag are not enough for my application, I want to make some custom tag, likes:myownaction /. Could anyone tell me the step? Or give me a link? I think you can define custom tag in jsp , search with google and you will find a lot result

Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
I have following code with drop-list name agencyName. But event .change() attached to this object never called. So i was wondering does jQuery ever work with Struts custom tag? or Am I doing something wrong? Thanks in advance. Anjib script type=text/javascript src=js/jquery.js/script script

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
I have following code with drop-list name agencyName. But event.change() attached to this object never called. Make sure that the rendered form is actually creating a HTML object with an ID of agencyName. That's usually the problem that I encounter - using the wrong name. Also, make sure that

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
On 8/16/2011 10:51 AM, Eric Lentz wrote: I have following code with drop-list name agencyName. But event.change() attached to this object never called. Make sure that the rendered form is actually creating a HTML object with an ID of agencyName. That's usually the problem that I encounter -

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, Anjib Mulepati anji...@hotmail.com wrote: On 8/16/2011 10:51 AM, Eric Lentz wrote: I have following code with drop-list name agencyName. But event.change() attached to this object never called.

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
There is no error at console but can run the script in console itself. Any suggestion? On 8/16/2011 12:53 PM, Dave Newton wrote: Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, Anjib Mulepatianji...@hotmail.com wrote: On 8/16/2011 10:51

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
There is no error at console but can run the script in console itself. Any suggestion? Are you saying that you can verify that the script is executing? For example, if you alert, breakpoint or print to console before the installation of the change event, do you get the expected feedback from

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
Yes script runs fine. On 8/16/2011 1:19 PM, Eric Lentz wrote: There is no error at console but can run the script in console itself. Any suggestion? Are you saying that you can verify that the script is executing? For example, if you alert, breakpoint or print to console before the installation

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
What script? The script that attaches the handler? Dave On Aug 16, 2011 1:46 PM, Anjib Mulepati anji...@hotmail.com wrote: Yes script runs fine. On 8/16/2011 1:19 PM, Eric Lentz wrote: There is no error at console but can run the script in console itself. Any suggestion? Are you saying that

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
Yes script runs fine. I would suggest making it as simple as possible. For example, take your rendered form and make a html file out it and take your script and the jQuery framework and place them all on a file system and attempt to get that working (comment the ajax part out). If that works,

Custom tag in Struts 1.3.8

2011-08-11 Thread Anjib Mulepati
Hi All, I was wondering if there is any way we can tell struts to put '/' at the end of the tag. For example if we have struts tag as html:text styleId=agencyName title=Agency Name size=30 property=agencyName value= / it will convert to input type=text name=agencyName size=30 value=

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html And the texfield tags renders correct with closing / (at least in my app) Might it be related to the tag itself? What doctype do you use? Cheers On Thu, Aug 11, 2011 at 7:18 PM, Anjib Mulepati

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Dave Newton
wrong version of struts. On Aug 11, 2011 1:23 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html And the texfield tags renders correct with closing / (at least in my app) Might it be related

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
oh :-)) I am sorry On Thu, Aug 11, 2011 at 7:31 PM, Dave Newton davelnew...@gmail.com wrote: wrong version of struts. On Aug 11, 2011 1:23 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Maurizio Cucchiara
I'm not sure if it helps, maybe you will be luckier looking at http://struts.apache.org/1.x/struts-taglib/tlddoc/html/xhtml.html -- Maurizio Cucchiara On 11 August 2011 19:31, Dave Newton davelnew...@gmail.com wrote: wrong version of struts. On Aug 11, 2011 1:23 PM, Christian Grobmeier

How can one use OGNL on custom .tag files?

2010-03-12 Thread wild_oscar
I have a custom tag file called with: help:date dateField=death.deathDate label=Date of Death (dd-MM-)/ Inside the tag I want to have: s:date name=${dateField}.date var=dt format=${dateField}.format / s:textfield value=%{#dt}/ However, EL security doesn't allow

Re: How can one use OGNL on custom .tag files?

2010-03-12 Thread Dale Newfield
wild_oscar wrote: However, EL security doesn't allow for expressions in the s:date tag. This is true no matter where the tag resides (.jsp or .tag). If you have an EL value you can use c:set to put it someplace (request scope might be simplest) where you can also address it using ognl.

struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
i was wondering if it was possible to write a custom tag that is able to access objects in the ActionContext using OGNL? i'm not sure if this is a correct question. my problem is that i have a form. the form is posted to an action. the action has getters/setters for the form fields. i

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
i found something helpful here. it works. http://struts.apache.org/2.1.8.1/docs/access-to-valuestack-from-jsps.html On Mon, Feb 1, 2010 at 7:34 AM, Jake Vang vangj...@googlemail.com wrote: i was wondering if it was possible to write a custom tag that is able to access objects

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
/2.1.8.1/docs/access-to-valuestack-from-jsps.html On Mon, Feb 1, 2010 at 7:34 AM, Jake Vang vangj...@googlemail.com wrote: i was wondering if it was possible to write a custom tag that is able to access objects in the ActionContext using OGNL? i'm not sure if this is a correct question. my

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
AM, Jake Vang vangj...@googlemail.com wrote: i was wondering if it was possible to write a custom tag that is able to access objects in the ActionContext using OGNL? i'm not sure if this is a correct question. my problem is that i have a form. the form is posted to an action. the action

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
if it was possible to write a custom tag that is able to access objects in the ActionContext using OGNL? i'm not sure if this is a correct question. my problem is that i have a form. the form is posted to an action. the action has getters/setters for the form fields. i then forward

Wrap struts2 tag in a custom tag

2009-10-19 Thread mlivro79
Hi all, I'm trying to wrap struts2 tags in my custom tags. First, I extend BodyTagSupport. If I return EVAL_BODY_INCLUDE in doStartTag method and I put a struts tag in the body of my custom tag all is ok. The struts tag is evaluated correctly. If I return EVAL_BODY_TAG in doStartTag method

Re: Wrap struts2 tag in a custom tag

2009-10-19 Thread mlivro79
EVAL_BODY_INCLUDE in doStartTag method and I put a struts tag in the body of my custom tag all is ok. The struts tag is evaluated correctly. If I return EVAL_BODY_TAG in doStartTag method and I want to create the struts tag to be evaluated in the doBodyInit method, how can I do it? Which method

Struts tag inside Custom tag

2009-08-20 Thread AlexPresley
Hi !: I created a Custom tag,it works fine,but when i try to do this: sb.append(html:text ); the browser doesnt show me nothing,just write blanck in that part of the code. So do you know some way to use a Struts tag inside a personal custom tag? Thank you! -- View this message in context

Re: Struts tag inside Custom tag

2009-08-20 Thread Mitch Claborn
I suspect that the output of your tag is not passed through the processor again to resolve the other tags. I have been considering writing my own custom tag. Can you point me to some doc to get started? mitch AlexPresley wrote: Hi !: I created a Custom tag,it works fine,but when i try to do

Re: custom tag development?

2009-07-24 Thread Mitch Claborn
Clabornmi...@claborn.net wrote: Hoping someone can give me some pointers on how to get started on developing my own tag. I want to develop a custom tag to use within Struts 2, kind of like s:iterator. What I have in mind is something like this: abc:mytag other stuff, including other

Re: custom tag development?

2009-07-24 Thread Musachy Barroso
to develop a custom tag to use within Struts 2, kind of like s:iterator.  What I have in mind is something like this: abc:mytag other stuff, including other struts tags /abc:mytag the tag would iterate over the stuff contained in the tag, based on non-trivial logic, and also generate output both

custom tag development?

2009-07-23 Thread Mitch Claborn
Hoping someone can give me some pointers on how to get started on developing my own tag. I want to develop a custom tag to use within Struts 2, kind of like s:iterator. What I have in mind is something like this: abc:mytag other stuff, including other struts tags /abc:mytag the tag would

Re: custom tag development?

2009-07-23 Thread Musachy Barroso
Look at the component tag, you might be able to create a tag without writing any code. musachy On Thu, Jul 23, 2009 at 3:50 PM, Mitch Clabornmi...@claborn.net wrote: Hoping someone can give me some pointers on how to get started on developing my own tag. I want to develop a custom tag to use

Custom tag attribute as struts property?

2009-02-16 Thread ryangr
I have a custom tag declared in my view as such: wd:documentTypeList id=document.type selectedType=s:property value=%{document.type} / showNoneOption=true / The problem is it then throws an exception with the message Unterminated lt;wd:documentTypeList tag. Obviously there's a problem

Re: Custom tag attribute as struts property?

2009-02-16 Thread Dave Newton
ryangr wrote: I have a custom tag declared in my view as such: wd:documentTypeList id=document.type selectedType=s:property value=%{document.type} / showNoneOption=true / The problem is it then throws an exception with the message Unterminated lt;wd:documentTypeList tag. Obviously there's

Re: Custom tag attribute as struts property?

2009-02-16 Thread ryangr
newton.dave wrote: ryangr wrote: I have a custom tag declared in my view as such: wd:documentTypeList id=document.type selectedType=s:property value=%{document.type} / showNoneOption=true / The problem is it then throws an exception with the message Unterminated lt;wd:documentTypeList

Re: S2 custom tag - Passing custom tag attribute into action class

2008-11-24 Thread ManiKanta G
Hi, Can I implement my tag logic in the UIBean or AbstractUITag sub classes? And as UIBean subclass will be provided with request and response references, I think I can implement my logic here. I mean is this a best practice to use these classes like this? ManiKanta

Re: S2 custom tag - Passing custom tag attribute into action class

2008-11-24 Thread Kurniawan Kuga
hai On Tue, Nov 25, 2008 at 2:51 PM, ManiKanta G [EMAIL PROTECTED] wrote: Hi, Can I implement my tag logic in the UIBean or AbstractUITag sub classes? And as UIBean subclass will be provided with request and response references, I think I can implement my logic here. I mean is this a

Re: S2 custom tag - Passing custom tag attribute into action class

2008-11-23 Thread ManiKanta G
Hi, I think you have it backwards, or I don't understand what you are trying to do. Depending on the value given for an attribute (say length) of my custom tag, I need to populate that many number of options in the select box (my custom tag will have one select box and few other controls

Re: S2 custom tag - Passing custom tag attribute into action class

2008-11-22 Thread Musachy Barroso
, I m struck with an issue with custom tag. And its kind of important for my project completion. I wrote a custom tag in S2 and of course related ftl file. It is just like wrapper around a select box and few other controls. And I need to populate the select box according to the attribute 'length

S2 custom tag - Passing custom tag attribute into action class

2008-11-21 Thread ManiKanta G
Hi, I m struck with an issue with custom tag. And its kind of important for my project completion. I wrote a custom tag in S2 and of course related ftl file. It is just like wrapper around a select box and few other controls. And I need to populate the select box according to the attribute

Custom Tag Libs

2008-10-08 Thread David C. Hicks
Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Custom Tag Libs

2008-10-08 Thread Dave Newton
--- On Wed, 10/8/08, David C. Hicks wrote: Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Depends on what you mean, I guess--you can create a standard JEE custom tag using

Re: Custom Tag Libs

2008-10-08 Thread stanlick
would be to start looking. Writing your own tags can be a pain in the rear. Scott On Wed, Oct 8, 2008 at 5:20 PM, David C. Hicks [EMAIL PROTECTED] wrote: Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old

Re: Custom Tag Libs

2008-10-08 Thread Alberto A. Flores
about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Custom Tag Libs

2008-10-08 Thread David C. Hicks
can be a pain in the rear. Scott On Wed, Oct 8, 2008 at 5:20 PM, David C. Hicks [EMAIL PROTECTED] wrote: Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks

Re: Custom tag and map-backed action

2008-09-24 Thread Laurie Harper
[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
.../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
=employees[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
and was being trimmed off the String. When I wrapped the variable in quotes is worked s:textfield name=employees[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Custom tag and map-backed action

2008-09-23 Thread Laurie Harper
: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Custom tag and map-backed action

2008-09-22 Thread stanlick
! The trailing F was apparently being considered a literal for FLOAT and was being trimmed off the String. When I wrapped the variable in quotes is worked s:textfield name=employees[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
s:textfield name=employees[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
for FLOAT and was being trimmed off the String. When I wrapped the variable in quotes is worked s:textfield name=employees[ '%{key' }].id .../ Does this appear to be a bug? -- View this message in context: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
is a string. It might also add whitespace to either end of that value (due to the whitespace inside your s:set tag. Why not pass the OGNL expression to your tag as a string and evaluate it inside your custom tag, instead? If you use this custom tag in many places, I predict the extra jsp required

Re: [struts] parameter to custom tag

2008-02-28 Thread Dale Newfield
custom tag?), but since you're trying to set a value to be extracted with EL, I'd use the tag library that is geared toward EL. That would be: c:set var=stringArgForCustomTags:property //c:set custom:tag attr=${stringArgForCustomTag}/ My understanding of struts is not as experienced so if I may ask

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
do that for debugging inside your custom tag?), but since you're trying to set a value to be extracted with EL, I'd use the tag library that is geared toward EL. That would be: c:set var=stringArgForCustomTags:property //c:set custom:tag attr=${stringArgForCustomTag}/ My understanding

using param tag inside custom tag

2008-02-27 Thread mteccles
Hi, Where and how do struts 2 param tags get evaluated and injected into the parent tag? When my custom tag is being invoked, the Component.getParameters() method is returning empty list. Is there some configuration required to make this work? cp:text name=* s:param name='user.name' value

Re: using param tag inside custom tag

2008-02-27 Thread mteccles
Hmm found already, if value is in 'value' attribute it goes lost, hmm.. maybe cos it is treated as Object. Was fixed by putting the value in the param tags body. mteccles wrote: Hi, Where and how do struts 2 param tags get evaluated and injected into the parent tag? When my custom tag

Re: parameter to custom tag

2008-02-27 Thread Kropp, Henning
. Every string in that list is supposed to be executed by a custom tag. I tried it in many fashions but its not working. I am only able to give over the whole list as a string with: custom:tag attr=${model.list} / How to I get the s:proptery / value into my custom tag? Kind regards Henning Kropp

Re: [struts] parameter to custom tag

2008-02-27 Thread Dale Newfield
add whitespace to either end of that value (due to the whitespace inside your s:set tag. Why not pass the OGNL expression to your tag as a string and evaluate it inside your custom tag, instead? If you use this custom tag in many places, I predict the extra jsp required to pre-evaluate the OGNL

Custom Tag lib passing c:out tags

2007-10-01 Thread Jennie Moeller
I have a custom tag lib i call passing a parameter of a c:out tag. We don't have jsp expression lang supported so i have to use the c:out tag to pass the variable into the custom tag but it doesnt' like it. here is my tag: tag nameencodechars/name

RE: Custom Tag lib passing c:out tags

2007-10-01 Thread Jennie Moeller
FYI I found a solution if anyone else has this issue: In the custom tag lib where you set your Parameter you need to include this code: try { parameter = (String) ExpressionUtil.evalNotNull(encodechars, parameter, value, String.class, this, pageContext); } catch (Exception ex

Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread wild_oscar
I am developing a custom tag to retrieve some information and display it on jsp pages. My Tag class extends TagSupport, and on my doStartTag() method I retrieve the HttpRequest like: this.pageContext.getRequest(); Unfortunately, the result is a strutsrequestwrapper wrapped request. I have

Re: Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread Nils-Helge Garli
Nils-H On 9/20/07, wild_oscar [EMAIL PROTECTED] wrote: I am developing a custom tag to retrieve some information and display it on jsp pages. My Tag class extends TagSupport, and on my doStartTag() method I retrieve the HttpRequest like: this.pageContext.getRequest(); Unfortunately

Re: Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread wild_oscar
/http/HttpServletRequestWrapper.html Nils-H On 9/20/07, wild_oscar [EMAIL PROTECTED] wrote: I am developing a custom tag to retrieve some information and display it on jsp pages. My Tag class extends TagSupport, and on my doStartTag() method I retrieve the HttpRequest like

Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
Struts 2 literature seems to be pretty limited right now. Any detailed tutorial at all would be nice. I have looked through roseindia but it seems to just skim the surface. -- View this message in context: http://www.nabble.com/Know-of-any-good-custom-tag-tutorials-for-struts-2--tf4435689

RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Wesley Wannemacher
PROTECTED] Sent: Thursday, September 13, 2007 9:24 AM To: user@struts.apache.org Subject: Know of any good custom tag tutorials for struts 2? Struts 2 literature seems to be pretty limited right now. Any detailed tutorial at all would be nice. I have looked through roseindia but it seems to just

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Chris Pratt
On 9/13/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: I like to think the ones I wrote are good :) http://www.wantii.com/wordpress/?cat=3 Wesley, I don't see anything up there on writing Custom Tags, which was the original caller's question. Did I miss them? (*Chris*)

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Dave Newton
any custom tag tutorials, not tag writing tutorials. Given the OP's other question regarding accessing action properties from a scriptlet I'm guesing s/he didn't want to write a custom tag but rather use them. Could be wrong, kinda hard to tell. d

[OT] RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Wesley Wannemacher
On 9/13/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: I like to think the ones I wrote are good :) http://www.wantii.com/wordpress/?cat=3 Wesley, I don't see anything up there on writing Custom Tags, which was the original caller's question. Did I miss them? (*Chris*) You're

Re: [OT] RE: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Chris Pratt
On 9/13/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: The next will most likely be on using the Struts2 tags Sounds good, please remember to let us know when you get around to the custom tag articles. Thanks. (*Chris

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
was whether or not there were any custom tag tutorials, not tag writing tutorials. Given the OP's other question regarding accessing action properties from a scriptlet I'm guesing s/he didn't want to write a custom tag but rather use them. Could be wrong, kinda hard to tell. d

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread Dave Newton
--- kkjacks [EMAIL PROTECTED] wrote: I am interested in the actual writing of custom tags and I also hoped that by learning how to do this it would help facilitate my previous unanswered question of how to access the action through scriptlet code in the jsp. Ah; sorry. I'd probably just

Re: Know of any good custom tag tutorials for struts 2?

2007-09-13 Thread kkjacks
in scriptlet code that I can call however I please. This is of course not a good coding practice but I find it useful to do complex things in the jsp through scriptlet code before writing a full fledged custom tag. I used this technique often in Struts 1 by using the bean tag to get an instance

[S2] how to access struts.properties values in a custom tag

2007-07-26 Thread David Binder
Hi, I'm trying to get the i18n encoding value from the parameters we set in struts.properties for our project. I'm trying to do it in a tag (in the component part). I don't manage to access it. I cant find the object carrying the information. Does someon have an idea ? David

[S2] FreeMarker template and custom tag

2007-06-20 Thread Mark P Ashworth
Good Day, I have a custom tag that I am developing and I am trying to figure out where the parameter.id values come from. For example, lt;#if parameters.align?existsgt; align=${parameters.align?html} lt;/#ifgt; This is used in the graph.ftl that is in template.simple. My tag has those

Re: [S2] FreeMarker template and custom tag

2007-06-20 Thread Mark P Ashworth
(dataUrl)); if(dataAction != null) addParameter(action, findString(dataAction)); if(bgColor != null) addParameter(bgcolor, findString(bgColor)); } Regards, Mark P Ashworth http://www.connext.co.za Mark P Ashworth wrote: Good Day, I have a custom tag that I am developing and I am

Re: Custom component - custom tag

2007-05-12 Thread Martin Gainty
, May 11, 2007 10:04 PM Subject: Custom component - custom tag where do I find tutorial about writing my own UI component ? I wrote a tag already to be used with JSP then when I tried it with struts 2 it didn't work. Basically, because I am passing the object as string and trying to retrieve

Re: Custom component - custom tag

2007-05-12 Thread Mansour
without making a copy. Thank you. - Original Message - From: Mansour [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 11, 2007 10:04 PM Subject: Custom component - custom tag where do I find tutorial about writing my own UI component ? I wrote

Custom component - custom tag

2007-05-11 Thread Mansour
where do I find tutorial about writing my own UI component ? I wrote a tag already to be used with JSP then when I tried it with struts 2 it didn't work. Basically, because I am passing the object as string and trying to retrieve it form the context in the custom tag. This is not working

RE: custom tag for localization

2006-11-17 Thread Lance Semmens
tag for localization Hi, I want an open-source custom tag for localizing struts-based application using dispatch Action. thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

custom tag for localization

2006-11-14 Thread Mahmoud Saeed\(RSW\)
Hi, I want an open-source custom tag for localizing struts-based application using dispatch Action. thanx

custom tag and html:rewrite

2006-09-25 Thread Van Stalle
Hey, I am writing a custom tag and I need to rewrite a link to an image from with the tag-code (by overiding the doStartTag method); I know that in a jsp-page you can do this with html:rewrite .. but how to do this from within java-code ? Any hints would be welcome. Jan -- View this message

Re: custom tag and html:rewrite

2006-09-25 Thread Martin Gainty
by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Van Stalle [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, September 25, 2006 7:28 AM Subject: custom tag and html:rewrite Hey, I am writing a custom tag

Re: custom tag and html:rewrite

2006-09-25 Thread Van Stalle
or email and destroy the original message without making a copy. Thank you. - Original Message - From: Van Stalle [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, September 25, 2006 7:28 AM Subject: custom tag and html:rewrite Hey, I am writing a custom tag and I

Re: custom tag as attribute value

2006-07-18 Thread Laurie Harper
Jean-Marie Pitre wrote: Hi, I am not sure is the right forum ... I am working with struts and displaytag library. You might want to try the displaytag forums/mailing lists too. I want to display a table with a title value provided by a custom tag: display:table name=xxx title=custom tag

  1   2   >