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-29 Thread Lukasz Lenart
2015-06-30 3:50 GMT+02:00 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! but it

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 an

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 wrote: > 2013/12/4 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 cla

Re: S2 - custom tag with Spring

2013-12-05 Thread Lukasz Lenart
2013/12/4 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 > co

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 Spri

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 Sprin

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-10 Thread Lukasz Lenart
2012/9/11 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

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 Jeffrey Black
gt; > > >> Because the common tag are not enough for my application, I want to make > >> some custom tag, like. 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 > wi

Re: How can I write a custom tag?

2011-12-30 Thread Jeffrey Black
; >> Because the common tag are not enough for my application, I want to make > >> some custom tag, like. 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 > > f

Re: How can I write a custom tag?

2011-12-30 Thread Alex Choi
e Internet to help you. Hope this helps. On Dec 29, 2011 11:15 PM, "王科选" 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, like. Could anyone tell me the step? Or >> give m

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, like. 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 . Could anyone tell me the step? Or give me a link?

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,

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" 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 you can

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 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
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 Mulepati" wrote: On 8/16/2011 10:51 AM, Eric Lentz wrot

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" 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. >> >> Make

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 - u

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 th

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 $('#agencyName

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 wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I d

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 wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" 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 rend

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" 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 to the tag

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 w

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 property="agencyName" value="" /> it will convert to title="Agency Name"> Now, is there anyway we can have this title="Agency Name" /> Thanks, Anjib

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. ${d

How can one use OGNL on custom .tag files?

2010-03-12 Thread wild_oscar
I have a custom tag file called with: Inside the tag I want to have: However, EL security doesn't allow for expressions in the s:date tag. I am failing to make the s:date get the name from death.deathDate.date field. I've tried several alternatives in the name at

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

2010-02-01 Thread Bill Bohnenberger
; > On Mon, Feb 1, 2010 at 5:04 AM, Jake Vang > wrote: > > > >> i found something helpful here. it works. > >> > >> > http://struts.apache.org/2.1.8.1/docs/access-to-valuestack-from-jsps.html > >> > >> > >> > >> On Mon, F

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

2010-02-01 Thread Jake Vang
und 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 wrote: >> > i was wondering if it was possible to write a custom tag that is able

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

2010-02-01 Thread Bill Bohnenberger
he.org/2.1.8.1/docs/access-to-valuestack-from-jsps.html > > > > On Mon, Feb 1, 2010 at 7:34 AM, Jake Vang 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 > > t

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 wrote: > i was wondering if it was possible to write a custom tag that is able > to access objects in the ActionContext using OGN

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

Re: Wrap struts2 tag in a custom tag

2009-10-19 Thread mlivro79
port. > > 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 and I want to create the > struts tag to be evaluated in the

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 m

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

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("http://www.nabble.com/Struts-tag-inside--Custom-tag-tp25063279p25063279.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: custom tag development?

2009-07-24 Thread Musachy Barroso
Any further ideas or pointers? > > > Mitch > > Musachy Barroso wrote: >> 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 Claborn wrote:

Re: custom tag development?

2009-07-24 Thread Mitch Claborn
itch Claborn 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 >> . What I have in mind is something like this: >> >> >

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 Claborn wrote: > Hoping someone can give me some pointers on how to get started on > developing my own tag. > > I want to develop a cu

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 . What I have in mind is something like this: other stuff, including other struts tags the tag would iterate over the stuff contained

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: >> " showNoneOption="true" /> >> >> The problem is it then throws an exception with the message "Unterminated >> <wd:documentTypeList tag&qu

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: " showNoneOption="true" /> The problem is it then throws an exception with the message "Unterminated <wd:documentTypeList tag". Obviously there's a problem with the tag thinking it is being c

Custom tag attribute as struts property?

2009-02-16 Thread ryangr
I have a custom tag declared in my view as such: " showNoneOption="true" /> The problem is it then throws an exception with the message "Unterminated <wd:documentTypeList tag". Obviously there's a problem with the tag thinking it is being closed at the http:/

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

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-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

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

2008-11-22 Thread Musachy Barroso
G <[EMAIL PROTECTED]> wrote: > 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. An

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

Re: Custom Tag Libs

2008-10-08 Thread David C. Hicks
tags today, your best bet 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 St

Re: Custom Tag Libs

2008-10-08 Thread Alberto A. Flores
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 Libs

2008-10-08 Thread stanlick
ble tags today, your best bet 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

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 JE

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 PROT

Re: Custom tag and map-backed action

2008-09-24 Thread stanlick
t;> accordingly. Do you suppose it would have worked if my Map had >>>>>>>>> >>>>>>>> contained >>>>>>>> >>>>>>>>> 'abc':emp1, 'def':emp2, 'ghi':emp3? >>>

Re: Custom tag and map-backed action

2008-09-24 Thread Laurie Harper
L PROTECTED]>: I encountered a very strange situation today. I had the following in a web page: "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 http://www.nabble.com/Custom-t

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
gt;>>> >>>>>>>> Interesting. Seems it is a feature, as documented in [1]. >>>>>>>> >>>>>>>> Tested it myself: >>>

Re: Custom tag and map-backed action

2008-09-23 Thread Laurie Harper
sidered a literal for FLOAT and was being trimmed off the String. When I wrapped the variable in quotes is worked 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
work without the ( ), which I don't >>>> know >>>> >> if this is a necessity or a bug. >>>> >> What about Short and Byte data type? it doesn't say... >>>> >> >>&

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
t;> >> if this is a necessity or a bug. >>> >> What about Short and Byte data type? it doesn't say... >>> >> >>> >> However, I think is NOT a bug that employees[1234F].id returns >>> >> nothing, since the map key is a string and you

Re: Custom tag and map-backed action

2008-09-23 Thread Gabriel Belingueres
;> >> >> >> [1] >> >> >> http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/basicExpressions.html#constants >> >> >> >> 2008/9/22 stanlick <[EMAIL PROTECTED]>: >> >> > >> >> > I encountered a ver

Re: Custom tag and map-backed action

2008-09-23 Thread stanlick
nothing, since the map key is a string and you need to quote it > >> accordingly. > >> > >> [1] > >> > http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/basicExpressions.html#constants > >> > >> 2008/9/22 stanlick <[EMAIL PROTECTED

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
>: >> > >> > I encountered a very strange situation today. I had the following in a >> web >> > page: >> > >> > >> > >> >> was >> > apparently being considered a literal for FLOAT and was being trimmed off >> &

Re: Custom tag and map-backed action

2008-09-22 Thread stanlick
parently being considered a literal for FLOAT and was being trimmed off > > the String. > > > > When I wrapped the variable in quotes is worked > > > > http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html > > Sent from the Struts - Us

Re: Custom tag and map-backed action

2008-09-22 Thread Gabriel Belingueres
. I had the following in a web > page: > > > > apparently being considered a literal for FLOAT and was being trimmed off > the String. > > When I wrapped the variable in quotes is worked > > http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p1961408

Custom tag and map-backed action

2008-09-22 Thread stanlick
I encountered a very strange situation today. I had the following in a web page: http://www.nabble.com/Custom-tag-and-map-backed-action-tp19614086p19614086.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
idn't 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: > My understanding of struts is not as experienced so if I may ask, why would I need an ex

Re: [struts] parameter to custom tag

2008-02-28 Thread Dale Newfield
nside 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: > My understanding of struts is not as experienced so if I may ask, why would I need an extra jsp to pre-evaluate the OGNL as

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
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->string will be error-prone...

Re: [struts] parameter to custom tag

2008-02-27 Thread Dale Newfield
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->string will be error-prone...

Re: parameter to custom tag

2008-02-27 Thread Kropp, Henning
Hi, I figured it out. I used for this. Thanks. regards Kropp, Henning schrieb: Hi List, I am new to struts2. I iterate over a list of strings. Every string in that list is supposed to be executed by a custom tag. I tried it in many fashions but

parameter to custom tag

2008-02-27 Thread Kropp, Henning
Hi List, I am new to struts2. I iterate over a list of strings. 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: How to I get the value into my custom tag

Re: using param tag inside custom tag

2008-02-27 Thread mteccles
arent 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? > > /> name='user.cameFrom' value='test came' /> > -- View this message in

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? -- View this message in context: http

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, pageConte

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: encodechars com.web.taglib.Enco

Re: Accessing HTTPWrappedRequest on a custom tag

2007-09-20 Thread wild_oscar
ee/1.4/docs/api/javax/servlet/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 Ta

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: > &g

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: 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 of

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

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

2007-09-13 Thread kkjacks
e original caller's question. > > Actually, the original question 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 g

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.

[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*)

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

2007-09-13 Thread Dave Newton
nal question 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

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 Wesley Wannemacher
lto:[EMAIL 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 see

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

[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

Re: [S2] FreeMarker template and custom tag

2007-06-20 Thread Mark P Ashworth
f(dataUrl != null) addParameter("url", findString(dataUrl)); if(dataAction != null) addParameter("action", findString(dataAction)); if(bgColor != null) addParameter("bgcolor", findString(bgColor)); } Regards, Mark P Ashworth http://www.connext.co.za Ma

[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, <#if parameters.align?exists> align="${parameters.align?html}" </#if> This is used in the graph.ftl that is in template.simple. My ta

Re: Custom component - custom tag

2007-05-12 Thread Mansour
ephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Mansour" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, May 11, 2007 10:04 PM Subject: Custom component - custom tag where do I find tut

Re: Custom component - custom tag

2007-05-12 Thread Martin Gainty
sers Mailing List" 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 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

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 wo

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

Re: custom tag and html:rewrite

2006-09-25 Thread Van Stalle
message in error, please > notify > the sender immediately by telephone or email and destroy the original > message without making a copy. Thank you. > > > > - Original Message - > From: "Van Stalle" <[EMAIL PROTECTED]> > To: > Sent

  1   2   >