taglib « API « JSP-Servlet Q&A





1. JSP in OSGi: How to load TLD from bundles?    stackoverflow.com

We're building a JSP web application, which runs inside the Apache Felix OSGi container (the web app itself is a OSGi Bundle). Now, we're facing the following problem: According to the JSP ...

2. How to get the value of a directive's attribute from properties file based on Locale?    stackoverflow.com

The task is to conditionally include a css file based on the Locale. To do this, I am going to put the path to the Locale dependent css file in the ...

3. is any jsp 2.0 implementation forcing an error if tagdir attribute has no trailing slash?    stackoverflow.com

In JSP 2.0 specification it says about "tagdir" attribute of the taglib directive (JSP.1.10.2):

Indicates this prefix is to be used to identify tag extensions installed in the ...

4. Exporting function to TLD    stackoverflow.com

I want to export this function to my custom-functions.tld file:

package com.site.vo;

public class Utils {
    public static String concat(String... values) {
        String ...

5. problem opening taglib tld    coderanch.com

I have a question about tag library descriptor. I specified in my JSP a URI for the taglibrary descriptor as "/hello". And I placed the tld file in Web-inf directory. The question is when I tried to open the JSP. Tomcat says can not open library descriptor "C:\tomcat\webapp\thisWebApp\hello" I don't know why tomcat doesn't recognize the taglib's uri and trace to ...

6. Reusing taglib tld files    coderanch.com

7. (Programming Taglib)Why I must place this object in constructor?    coderanch.com

If I delete the "public BookManager(){ }".The code report error:"Can't solve the charactor tbook" It means I must place the object "Testfor tbook" in the constructor ?(Testfor is a class that I wrote. //////////////////////////////////My code is:////////////////////////////////// public class BookManager{ private static BookManager instance=new BookManager(); Hashtable hbook=new Hashtable(); public BookManager(){ //<--------------If delete the sentence the compiler report error/////////////////////////////////////////// Testfor tbook; tbook=new Testfor("345463463","Beginning ...

8. How to pass values from JSP to TagLib attributes dynamicaly    coderanch.com

HI there first of all thank you for your help, I have already read a lot in your forums and learned a lot too! here my problem: i want a jsp page to pass attributes to a taglib dynamicaly my tld file looks like that: 1.0 1.1 mdu tags ...

9. taglib.tld    coderanch.com





10. Getting error accessing attributes in custom taglib    coderanch.com

I'm using a custom taglib with an attribute. When I try to refer to the attribute in the tag, then I get an error of type: org.apache.jasper.JasperException: jsp.error.beans.property.conversion org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:885) org.apache.jsp.content.includes.treetest_jsp._jspx_meth_odin_showNavTree_0(treetest_jsp.java:148) org.apache.jsp.content.includes.treetest_jsp._jspService(treetest_jsp.java:114) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) Please help Below is some pertinent code info. Let me know if you need more. Thanks, Sean --- from jsp ---

11. Problem with uri attribute of taglib    coderanch.com

I had similar problems until I found out that Websphere 5.x does not support jsp 2.0 or jstl 1.1. Instead I just removed everything taglib wise from my web.xml, WEB-INF/lib directory, and used the jstl 1.0 uri's. For instance: <%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %> Note the lack of the jsp in the uri. Also Websphere will help you out a little by ...

14. taglib to scriptlet attempt    coderanch.com

15. taglib.tld giving problems help!    coderanch.com

Hi, I am using Jboss 3. Am writing a custom tag library. This is how my taglib.tld looks 1.0 1.1 myTag tags.MyCustomTag empty A Hello World tag So when I put my war file in the jboss deploy directory, this is ...





18. HashMap in taglib    coderanch.com

19. Taglib file outside WEB-INF    coderanch.com

20. Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV    coderanch.com

Hi All, Again i need your help. Currently my application is on Tomcat5.0.16.I use struts1.2, jstl 1.1 , jsp-api 2.0. I tried to migrate my application from tomcat5.0 to tomcat 6.0.26.I didn't see any issue in deployment but when i tried to access jsp pages i got this exception. HTTP Status 500 - type Exception report message description The server encountered ...