BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Defining taglibs in .jsp (jbuilder X) breaks simplest .jsp

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
Steven Handerson
Guest





PostPosted: Wed Oct 12, 2005 6:02 pm    Post subject: Defining taglibs in .jsp (jbuilder X) breaks simplest .jsp Reply with quote




What do you need to do in jbuilder X to use taglibs?
I can't get anything to work, in fact, if I include
a taglib definition in a jsp file, it will break the file
(no debug / exception reported, you just get effectively
empty output). Other people put the uri as /WEB-INF/c.tld,
which works elsewhere, but I've also tried using the
apparently standard real uri -- like http://java.sun.com/jstl/...
but this doesn't work either.
Like I said, just including the taglib declaration breaks everything, whether you actually use any of those tags or not.

I have things (certainly something simple like "Hello" as text)
which work on a barebones tomcat installation, although
I admit I didn't set that environment up.

Some possible questions:
do you need taglib definitions in the web.xml?
I've tried with and without.
You do need the .tld files in the WEB-INF directory, right?
It took me a while to figure out how to get jbuilder to put them there, but it also apparently included the appropriate
..jar files in the lib directory.

Help, I'm stuck!

Back to top
Paul Furbacher [TeamB]
Guest





PostPosted: Fri Oct 14, 2005 3:45 pm    Post subject: Re: Defining taglibs in .jsp (jbuilder X) breaks simplest .j Reply with quote



Steven Handerson wrote:

Quote:
What do you need to do in jbuilder X to use taglibs?
I can't get anything to work, in fact, if I include
a taglib definition in a jsp file, it will break the file
(no debug / exception reported, you just get effectively
empty output). Other people put the uri as /WEB-INF/c.tld,
which works elsewhere, but I've also tried using the
apparently standard real uri -- like http://java.sun.com/jstl/...
but this doesn't work either.
Like I said, just including the taglib declaration breaks
everything, whether you actually use any of those tags or not.

I'm not sure from your description whether you are using JSTL
or some custom tag library. But given you are using JBuilder X
which may not have built-in libraries for JSTL (I cannot remember
and don't have the ability right now to run JBuilder X to check),
you can do the following:

1. If JBuilder X comes with the JSTL lib (probably 1.0 if anything)
right-click on the Web Module's node in the Project Pane. Go to
the "Web" page and scroll down the list of JSP/frameworks. JSTL
should be in that list if it is supported. Select it. This will
add everything to your project needed to use JSTL: a) it will add
the right stuff to the web.xml file which JBuilder manages for you;
b) it will copy the tld files to the WEB-INF directory, and c) copy
to the JSTL lib (JAR) to the WEB-INF/lib folder.

2. If #1 doesn't apply, download the JSTL library version you
want to use, create JBuilder "library" definition for it. On
the framework tab, define the taglib. Read the on-line docs
on defining a framework. You can see an example of this if
you look at the Struts library which comes pre-defined in JBuilder:
just flip to the "Framework" tab and *view* (i.e., don't modify)
the settings as a take-home lesson.

If you are not referring to JSTL in your description above, follow
#2 to create a library for your specific tag library.


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.