 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Steven Handerson Guest
|
Posted: Wed Oct 12, 2005 6:02 pm Post subject: Defining taglibs in .jsp (jbuilder X) breaks simplest .jsp |
|
|
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
|
Posted: Fri Oct 14, 2005 3:45 pm Post subject: Re: Defining taglibs in .jsp (jbuilder X) breaks simplest .j |
|
|
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 |
|
 |
|
|
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
|
|