Re: Tags creating Tags

2003-10-27 Thread Steve Apeero
] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Tags creating Tags Date: Sun, 26 Oct 2003 19:34:04 -0500 Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want

Re: Tags creating Tags

2003-10-27 Thread struts
=common_tags.jsp flush=true / where common_tags.jsp contain all the tags and html you wanted to declare in a seperate tag. Stephan From: Lukas Bradley [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Tags creating Tags

RE: Tags creating Tags

2003-10-27 Thread Mike Jasnowski
To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Tags creating Tags Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want is a custom tag that creates

Re: Tags creating Tags

2003-10-27 Thread Lukas Bradley
this w/o changing or subclassing a Struts tag, the only Custom tag work is myTag. HTH, Mike -Original Message- From: Lukas Bradley [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2003 7:34 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Tags creating Tags Hi all, Maybe

RE: Tags creating Tags

2003-10-27 Thread Edgar P Dollin
Message- From: Lukas Bradley [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 10:25 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Tags creating Tags Mike emailed me this idea last night, and I think it's the best yet. Brilliant solution, Mike. Lukas Mike

RE: Tags creating Tags

2003-10-27 Thread Mike Jasnowski
must enable it's body to be evaluated so the Struts tag is invoked. but other than that. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 10:51 AM To: 'Lukas Bradley'; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Tags creating Tags

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
One way of accomplishing what you want to do, I think, is simply making calls to the appropriate Struts classes that are called when html:link is parsed compiled. Instead of outputting an html:link - just call those methods with the arguments that you would write out as html:link attributes,

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
One way of accomplishing what you want to do, I think, is simply making calls to the appropriate Struts classes that are called when html:link is parsed compiled. Instead of outputting an html:link - just call those methods with the arguments that you would write out as html:link attributes,

Re: Tags creating Tags

2003-10-26 Thread matsuhashi
Craig R.McClanahan wrote: To accomplish what you are after, you would need another layer of compilation. You'll need to come up with a different approach to accomplish what you are after. I think this link ( an article by Jason Diamon at xml.com) presents an example of what Craig calls another

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
I think you'll still end up with a severe performance penalty. If you generate JSP dynamically, that JSP will have to be pre-compiled each time you re-generate it. [EMAIL PROTECTED] wrote: Craig R.McClanahan wrote: To accomplish what you are after, you would need another layer of

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
I apologize for the original cross-post. I was hoping there might be a Struts method to do what I wanted. Here is something I wrote to the other group, after a post from Felipe Leme. I think you can accomplish what you're looking for using JSP 2.0 and tag files. Yep. That's exactly what I'm

Re: Tags creating Tags

2003-10-26 Thread Mark Mahieu
I said, Hi Lukas, If I understand you correctly ... But I didn't (understand that is). I guess my reading comprehension skills at 6am just aren't up to it ;) So just disregard my last Mark - To unsubscribe, e-mail:

Tags creating Tags

2003-10-26 Thread Lukas Bradley
Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want is a custom tag that creates other custom tags. Here is a simple example: lukas:myTag lang=en /

Re: Tags creating Tags

2003-10-26 Thread Craig R. McClanahan
Lukas Bradley wrote: Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want is a custom tag that creates other custom tags. Here is a simple example:

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
Ruth, Craig, and lurkers, I think what I'm after boils down to a method like this: public String renderTag(PageContext pPageContext, Tag pTagToRender) throws JspException After creating the tag manually, you could pass it to this method, and have it rendered. The return value of a String

Re: Tags creating Tags

2003-10-26 Thread Craig R. McClanahan
Lukas Bradley wrote: Ruth, Craig, and lurkers, I think what I'm after boils down to a method like this: public String renderTag(PageContext pPageContext, Tag pTagToRender) throws JspException A look at the JSP Specification will tell you that this would not work at all for a classic tag