RE: Eclipse question about using taglibs in

2003-10-22 Thread James Mitchell
You might want to start with this first:
  
  http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:43 AM
 To: Struts Users Mailing List
 Subject: Eclipse question about using taglibs in 
 
 
 In order to get the output of a JSP, I want to try to call the struts
 Bean.IncludeTag from my struts action.  I've never tried 
 calling a taglib
 from java before, only used the TLDs in JSP's.  So, here is 
 my attempt:
 
 package org.nothing;
 
 import org.apache.struts.taglib.bean.IncludeTag;
 
 public class David {
   String pageURL = /index.jsp;
   IncludeTag includePage = new IncludeTag();
   includePage.setPage(pageURL);
 }
 
 It compiles okay BUT in the Eclipse IDE, the methods under 
 for includePage
 don't auto-complete and also give me syntax warnings.  I know 
 my tag is
 readable since I can click down through the
 org.apache.struts.taglib.bean.IncludeTag class in Eclipse.  
 Does anyone have
 any pointers on how to correct this since I'm clueless having 
 never tried to
 call a taglib inside an action before.  Any hints, 
 suggestions, tutorials,
 etc.?
 
 Regards,
 David
 
 
 -
 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: Eclipse question about using taglibs in

2003-10-22 Thread David Friedman
My bad, but thanks for the tutorial.
I am so tired at 2 A.M. that I didn't
even code it correctly.   (self: Jackass!)

It's working properly now.  

Good night all ( hey, I heard that 'good riddance!')
David

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 1:47 AM
To: 'Struts Users Mailing List'
Subject: RE: Eclipse question about using taglibs in 


You might want to start with this first:
  
  http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 1:43 AM
 To: Struts Users Mailing List
 Subject: Eclipse question about using taglibs in 
 
 
 In order to get the output of a JSP, I want to try to call the struts
 Bean.IncludeTag from my struts action.  I've never tried 
 calling a taglib
 from java before, only used the TLDs in JSP's.  So, here is 
 my attempt:
 
 package org.nothing;
 
 import org.apache.struts.taglib.bean.IncludeTag;
 
 public class David {
   String pageURL = /index.jsp;
   IncludeTag includePage = new IncludeTag();
   includePage.setPage(pageURL);
 }
 
 It compiles okay BUT in the Eclipse IDE, the methods under 
 for includePage
 don't auto-complete and also give me syntax warnings.  I know 
 my tag is
 readable since I can click down through the
 org.apache.struts.taglib.bean.IncludeTag class in Eclipse.  
 Does anyone have
 any pointers on how to correct this since I'm clueless having 
 never tried to
 call a taglib inside an action before.  Any hints, 
 suggestions, tutorials,
 etc.?
 
 Regards,
 David
 
 
 -
 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: Eclipse question about using taglibs in

2003-10-22 Thread Richard Yee
David,
I don't think you will be able to do that. The tag expects to be inside a 
JSP. It might be possible to do it from within a servlet filter too.  I 
think it will be difficult to do it from within the action class.

-Richard



At 01:42 AM 10/23/2003 -0400, you wrote:
In order to get the output of a JSP, I want to try to call the struts
Bean.IncludeTag from my struts action.  I've never tried calling a taglib
from java before, only used the TLDs in JSP's.  So, here is my attempt:
package org.nothing;

import org.apache.struts.taglib.bean.IncludeTag;

public class David {
String pageURL = /index.jsp;
IncludeTag includePage = new IncludeTag();
includePage.setPage(pageURL);
}
It compiles okay BUT in the Eclipse IDE, the methods under for includePage
don't auto-complete and also give me syntax warnings.  I know my tag is
readable since I can click down through the
org.apache.struts.taglib.bean.IncludeTag class in Eclipse.  Does anyone have
any pointers on how to correct this since I'm clueless having never tried to
call a taglib inside an action before.  Any hints, suggestions, tutorials,
etc.?
Regards,
David
-
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]