Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

But you are required to specify their .TLD file location, in web.xml:
taglib
taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
taglib-locationWEB-INF/x.tld/taglib-location
/taglib

The problem here is that it requires you to copy the x.tld file manually
into WEB-INF directory. It you specify a JAR file, it searches for a
specific filename (I think its library.tld).


nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14797058.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread nicolas de loof
The URI is defined by the taglib developers

for example, Struts1 taglibs use :
%@ taglib  uri=http://struts.apache.org/tags-html;  prefix=html %
(@see http://struts.apache.org/1.x/userGuide/configuration.html)

You then don't have to specify anything in your web.xml

The web.xml taglib element is for your application tags, not for tags
imported from packaged libraries.

Nico.

2008/1/13, AsafM [EMAIL PROTECTED]:


 So basically, the URI is chosen arbitrary, as long as it's the same value
 in
 the web.xml and in the %@ taglib% directive?


 nicolas de loof-3 wrote:
 
  taglibs don't require to have TLD files extracted from jars as long as
 you
  use the taglib URI in your JSP %@ taglib % directives. Use maven to
 get
  jars in your web-inf/lib and all taglibs will be detected at server
  startup.
 
  Nico.
 
 
  2008/1/13, AsafM [EMAIL PROTECTED]:
 
 
  Hi All,
 
  I have a web application we're developing,  using servlets and JSP's on
  JBoss with embedded Tomcat.
 
  We want to use Jakarta taglib, which comes as a JAR file from maven
  repository (the global one).
 
  The problem is that using it requires a manual-copy step of the .TLD
  files
  from the META-INF directory in the JAR file to our
  src/main/webapp/WEB-INF
  directory.
 
  (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
  instructions for installing Jakara Taglibs )
 
  Has anyone used Jakarta Taglibs together with maven  and solved this?
  --
  View this message in context:
 
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

I found the solution, for using Jakarta Taglibs in JBoss/Tomcat with Maven:

1. Place the following dependencies in the pom.xml of your Web Application
project:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
/dependency

dependency
groupIdtaglibs/groupId
artifactIdx/artifactId
version1.1.2/version
typetld/type
/dependency

  Notice that the 2nd dependency saves you the trouble of extracting the TLD
from the jar file.

2. Maven-War-Plugin, copies the JAR file into WEB-INF/lib and the TLD file
into WEB-INF/tld:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.2-SNAPSHOT/version
/plugin
/plugins
/build

3. In the web.xml of your web application, place the following lines:
taglib
taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
taglib-locationtld/x-1.1.2.tld/taglib-location
/taglib

The taglib URI was taken from the uri element in the x-1.1.2.tld file.
the location is relative to WEB-INF directory.

4. Place the following line in the JSP file:
[EMAIL PROTECTED] uri=http://java.sun.com/jsp/jstl/xml; prefix=x %

5. Use the tags defines in the tld with x:tag-name/x:tag-name





AsafM wrote:
 
 But you are required to specify their .TLD file location, in web.xml:
   taglib
   taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
   taglib-locationWEB-INF/x.tld/taglib-location
   /taglib
 
 The problem here is that it requires you to copy the x.tld file manually
 into WEB-INF directory. It you specify a JAR file, it searches for a
 specific filename (I think its library.tld).
 
 
 nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as
 you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14797283.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

You are correct. I removed the reference from the web.xml and it worked.

To summarize what you said:
1. Place the taglibs jar file in your classpath
2. Use the [EMAIL PROTECTED] uri=...% with the string located in the uri 
element
in the .TLD file of the taglib you wish to use.

Just to verify:
The URI is no really referring to a real resource on the web, it's just
a unique name for the taglib, right?

Thank alot for your help! Saved me a few hours of research!

Asaf

nicolas de loof-3 wrote:
 
 The URI is defined by the taglib developers
 
 for example, Struts1 taglibs use :
 %@ taglib  uri=http://struts.apache.org/tags-html;  prefix=html %
 (@see http://struts.apache.org/1.x/userGuide/configuration.html)
 
 You then don't have to specify anything in your web.xml
 
 The web.xml taglib element is for your application tags, not for tags
 imported from packaged libraries.
 
 Nico.
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 So basically, the URI is chosen arbitrary, as long as it's the same value
 in
 the web.xml and in the %@ taglib% directive?


 nicolas de loof-3 wrote:
 
  taglibs don't require to have TLD files extracted from jars as long as
 you
  use the taglib URI in your JSP %@ taglib % directives. Use maven to
 get
  jars in your web-inf/lib and all taglibs will be detected at server
  startup.
 
  Nico.
 
 
  2008/1/13, AsafM [EMAIL PROTECTED]:
 
 
  Hi All,
 
  I have a web application we're developing,  using servlets and JSP's
 on
  JBoss with embedded Tomcat.
 
  We want to use Jakarta taglib, which comes as a JAR file from maven
  repository (the global one).
 
  The problem is that using it requires a manual-copy step of the .TLD
  files
  from the META-INF directory in the JAR file to our
  src/main/webapp/WEB-INF
  directory.
 
  (See instructions in 
 http://jakarta.apache.org/taglibs/binarydist.html
  instructions for installing Jakara Taglibs )
 
  Has anyone used Jakarta Taglibs together with maven  and solved this?
  --
  View this message in context:
 
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14799205.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread nicolas de loof
URI = Uniform Resource Identifier - just an identifier !

2008/1/14, AsafM [EMAIL PROTECTED]:


 You are correct. I removed the reference from the web.xml and it worked.

 To summarize what you said:
 1. Place the taglibs jar file in your classpath
 2. Use the [EMAIL PROTECTED] uri=...% with the string located in the uri
 element
 in the .TLD file of the taglib you wish to use.

 Just to verify:
 The URI is no really referring to a real resource on the web, it's
 just
 a unique name for the taglib, right?

 Thank alot for your help! Saved me a few hours of research!

 Asaf

 nicolas de loof-3 wrote:
 
  The URI is defined by the taglib developers
 
  for example, Struts1 taglibs use :
  %@ taglib  uri=http://struts.apache.org/tags-html;  prefix=html %
  (@see http://struts.apache.org/1.x/userGuide/configuration.html)
 
  You then don't have to specify anything in your web.xml
 
  The web.xml taglib element is for your application tags, not for tags
  imported from packaged libraries.
 
  Nico.
 
  2008/1/13, AsafM [EMAIL PROTECTED]:
 
 
  So basically, the URI is chosen arbitrary, as long as it's the same
 value
  in
  the web.xml and in the %@ taglib% directive?
 
 
  nicolas de loof-3 wrote:
  
   taglibs don't require to have TLD files extracted from jars as long
 as
  you
   use the taglib URI in your JSP %@ taglib % directives. Use maven to
  get
   jars in your web-inf/lib and all taglibs will be detected at server
   startup.
  
   Nico.
  
  
   2008/1/13, AsafM [EMAIL PROTECTED]:
  
  
   Hi All,
  
   I have a web application we're developing,  using servlets and JSP's
  on
   JBoss with embedded Tomcat.
  
   We want to use Jakarta taglib, which comes as a JAR file from maven
   repository (the global one).
  
   The problem is that using it requires a manual-copy step of the .TLD
   files
   from the META-INF directory in the JAR file to our
   src/main/webapp/WEB-INF
   directory.
  
   (See instructions in
  http://jakarta.apache.org/taglibs/binarydist.html
   instructions for installing Jakara Taglibs )
  
   Has anyone used Jakarta Taglibs together with maven  and solved
 this?
   --
   View this message in context:
  
 
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
   Sent from the Maven - Users mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14799205.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Working with Jakarta taglibs - question

2008-01-13 Thread AsafM

Hi All,

I have a web application we're developing,  using servlets and JSP's on
JBoss with embedded Tomcat.

We want to use Jakarta taglib, which comes as a JAR file from maven
repository (the global one).

The problem is that using it requires a manual-copy step of the .TLD files
from the META-INF directory in the JAR file to our src/main/webapp/WEB-INF
directory.

(See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
instructions for installing Jakara Taglibs )

Has anyone used Jakarta Taglibs together with maven  and solved this?
-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-13 Thread nicolas de loof
taglibs don't require to have TLD files extracted from jars as long as you
use the taglib URI in your JSP %@ taglib % directives. Use maven to get
jars in your web-inf/lib and all taglibs will be detected at server startup.

Nico.


2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD files
 from the META-INF directory in the JAR file to our src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Working with Jakarta taglibs - question

2008-01-13 Thread AsafM

So basically, the URI is chosen arbitrary, as long as it's the same value in
the web.xml and in the %@ taglib% directive?
 

nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]